-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player.h
42 lines (32 loc) · 1009 Bytes
/
Player.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* Class that implements the behavior required for the player.
*
* @author Francis BISSON
*/
#ifndef PLAYER_H
#define PLAYER_H
// INCLUDES ////////////////////////////////////////////////////////////////////
#include <boost/shared_ptr.hpp>
#include "GameObject.h"
#include "Point.hpp"
#include "Rectangle.h"
// FORWARD DECLARATIONS ////////////////////////////////////////////////////////
class DisplayContext;
class Game;
// CLASS DEFINITION ////////////////////////////////////////////////////////////
class Player : public GameObject
{
public:
Player(Game* game);
virtual ~Player();
virtual bool Init();
virtual void Update(double deltaTime);
virtual void Render(DisplayContext* displayContext);
protected:
Rectangle m_CollisionRect;
double m_Velocity;
PrecisePoint m_Position;
};
// UTILITY TYPEDEFS ////////////////////////////////////////////////////////////
typedef boost::shared_ptr<Player> PlayerPtr;
#endif // PLAYER_H