Rewrote Makefile, LivingMapObject
[sdlbotor.git] / Player.h
blobff8ccc15186e1dbc2cf398a510c8f724ca972eca
1 #ifndef PLAYER_H
2 #define PLAYER_H
4 #include "LivingMapObject.h"
6 namespace botor
9 class Player : public LivingMapObject
12 protected:
15 bool immune;
17 public:
19 static const float PLAYER_SPEED = 0.1f;
21 Player( Uint8 X = 0, Uint8 Y = 0 );
23 protected:
25 float SPEED();
27 bool isWalkable( Uint8 X, Uint8 Y );
29 public:
31 void HandleInput( SDL_Event *event );
33 void OnTile( Tile *t );
34 void OnDead();
41 #endif