4 #include "LivingMapObject.h"
5 #include "DAnimation.h"
16 class Player
: public LivingMapObject
24 anim_t
*p_ani_walking
;
29 anim_t ani_immuneIdle
;
30 anim_t ani_immuneWalking
;
32 DAnimation
*ani_player
;
36 static Tileset PLAYER_TILESET
;
45 static const float PLAYER_SPEED
= 0.1f
;
49 Player( Uint8 X
= 0, Uint8 Y
= 0 );
54 void InitWalking( Uint8 X
, Uint8 Y
);
62 bool isWalkable( Uint8 X
, Uint8 Y
);
68 void HandleInput( SDL_Event
*event
);
70 void OnTile( Tile
*t
);
75 void Pickup( Object
*o
);
76 void Drop( Object
*o
);
77 void Use( Object
*o
);
79 void SetImmune( bool newstate
);
81 unsigned int getLives();