/
Player.h
56 lines (42 loc) · 1.25 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef polukili_Players_Player_h_08f5452b_7458_424a_adf0_33de30429ebb
#define polukili_Players_Player_h_08f5452b_7458_424a_adf0_33de30429ebb
#include <Actor.h>
namespace Polukili
{
namespace Players
{
/**
* Represents a player.
*/
class Player : public Actor
{
public:
/**
* Constructor.
*/
Player(Level* level);
/**
* Destructor
*/
virtual ~Player();
/**
* Initialize physic data
*/
virtual void initPhysic(float x, float y);
/**
* Returns the path to the image for the sprite.
*/
virtual string getImagePath() const;
/**
* Returns the width of the tile in the image (must be multiple of 4).
*/
virtual int getImageWidth() const;
/**
* Returns the height of the tile in the image (must be multiple of 4).
*/
virtual int getImageHeight() const;
//end of class Player
};
} /* End of namespace Polukili::Players */
} /* End of namespace Polukili */
#endif // polukili_Players_Player_h_08f5452b_7458_424a_adf0_33de30429ebb