2013-11-19 11:07:14 +01:00
|
|
|
#ifndef PLAYER_H
|
|
|
|
#define PLAYER_H
|
|
|
|
|
2013-11-19 18:35:35 +01:00
|
|
|
#include "Object.h"
|
2013-11-20 14:18:31 +01:00
|
|
|
#include "Weapon.h"
|
2013-11-19 18:35:35 +01:00
|
|
|
|
2013-11-19 11:07:14 +01:00
|
|
|
namespace GameLogic
|
|
|
|
{
|
|
|
|
|
2013-11-19 18:35:35 +01:00
|
|
|
class Player : public Object
|
2013-11-19 11:07:14 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
Player(void);
|
|
|
|
~Player(void);
|
|
|
|
|
2013-11-19 18:35:35 +01:00
|
|
|
void Update();
|
2013-11-19 11:07:14 +01:00
|
|
|
|
2013-11-19 18:35:35 +01:00
|
|
|
void Move();
|
|
|
|
void Shoot();
|
|
|
|
|
|
|
|
private:
|
2013-11-20 14:18:31 +01:00
|
|
|
int life;
|
|
|
|
Weapon *weapon;
|
2013-11-19 11:07:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif
|