4 #include "LivingMapObject.h"
5 #include "DAnimation.h"
13 class Player
: public LivingMapObject
21 anim_t
*p_ani_walking
;
26 anim_t ani_immuneIdle
;
27 anim_t ani_immuneWalking
;
29 DAnimation
*ani_player
;
33 static Tileset PLAYER_TILESET
;
42 static const float PLAYER_SPEED
= 0.1f
;
46 Player( Uint8 X
= 0, Uint8 Y
= 0 );
51 void InitWalking( Sint8 X
, Sint8 Y
);
59 bool isWalkable( Uint8 X
, Uint8 Y
);
65 void HandleInput( SDL_Event
*event
);
67 void OnTile( Tile
*t
);
72 void Pickup( Object
*o
);
73 void Drop( Object
*o
);
74 void Use( Object
*o
);
76 void SetImmune( bool newstate
);
78 unsigned int getLives();