2013-11-28 08:33:29 +01:00
|
|
|
//////////////////////////////////////////////////
|
|
|
|
//Created by Erik and Linda of the GameLogic team
|
|
|
|
//////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
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-27 16:17:47 +01:00
|
|
|
#include "IGame.h"
|
2013-11-19 18:35:35 +01:00
|
|
|
|
2013-11-25 11:03:06 +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-29 09:05:01 +01:00
|
|
|
|
|
|
|
/********************************************************
|
|
|
|
* Update the position of the rigid body
|
|
|
|
* This will be done with physics later
|
|
|
|
********************************************************/
|
2013-11-27 16:17:47 +01:00
|
|
|
void Update(keyInput keyPressed);
|
2013-11-19 11:07:14 +01:00
|
|
|
|
2013-11-29 09:05:01 +01:00
|
|
|
void Move(keyInput keyPressed);
|
2013-11-19 18:35:35 +01:00
|
|
|
void Shoot();
|
2013-11-21 12:05:39 +01:00
|
|
|
|
2013-11-19 18:35:35 +01:00
|
|
|
private:
|
2013-11-20 14:18:31 +01:00
|
|
|
int life;
|
|
|
|
Weapon *weapon;
|
2013-11-19 11:07:14 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|