Edited map, new efence tile
[sdlbotor.git] / Robot.h
blob940362f8f4fb7fc09a7d3280624a5e3ba5c84c91
1 #ifndef ROBOT_H
2 #define ROBOT_H
4 #include "LivingMapObject.h"
5 #include "DAnimation.h"
6 #include "Tileset.h"
8 namespace botor
11 class Robot : public LivingMapObject
14 anim_t ani_walking;
15 DAnimation *ani_player;
17 static Tileset ROBOTS_TILESET;
19 public:
21 static const float ROBOT_SPEED = 0.03f;
23 Robot( Uint8 X = 0, Uint8 Y = 0 );
25 private:
27 void MakeNewDir();
29 protected:
31 void StartMovement();
33 float SPEED();
35 bool isWalkable( Uint8 X, Uint8 Y );
37 public:
39 // void Update();
41 void OnTile( Tile *t );
47 #endif