source: trunk/mrpigeon/player.h @ 1211

Last change on this file since 1211 was 1211, checked in by sam, 8 years ago

mrpigeon: split enemy into red and blue enemies.

  • Property svn:keywords set to Id
File size: 908 bytes
Line 
1#if !defined __PLAYER_H__
2#define __PLAYER_H__
3
4#include "mrpigeon.h"
5
6class Player : public WorldEntity
7{
8public:
9    Player(MrPigeon *game);
10    virtual ~Player();
11
12    char const *GetName() { return "<player>"; }
13
14    void Action();
15
16protected:
17    virtual void TickGame(float deltams);
18    virtual void TickDraw(float deltams);
19
20    MrPigeon *game;
21
22    TileSet *pigeon_flying;
23    TileSet *player_dashdown,
24            *player_death,
25            *player_fall,
26            *player_jump,
27            *player_kickair,
28            *player_kickfloor,
29            *player_walkb,
30            *player_walk,
31            *player_walkraisefist;
32
33    TileSet *active_set;
34    int active_frame;
35
36    enum {
37       WALKING,
38       FUNKING,
39       KICKFLOOR,
40       FALLING,
41       JUMPING,
42       DASHDOWN,
43       KICKAIR,
44    }
45    state;
46
47    vec3 velocity;
48    float walktime, flytime;
49};
50
51#endif // __PLAYER_H__
52
Note: See TracBrowser for help on using the repository browser.