source: trunk/mrpigeon/mrpigeon.h @ 1310

Last change on this file since 1310 was 1310, checked in by sam, 9 years ago

core: tick methods now use seconds, like any sane system.

  • Property svn:keywords set to Id
File size: 891 bytes
Line 
1//
2// MrPigeon
3//
4// Copyright: (c) 2012 Various People
5//
6
7#if !defined __MRPIGEON_H__
8#define __MRPIGEON_H__
9
10class MrPigeon : public WorldEntity
11{
12public:
13    MrPigeon();
14    virtual ~MrPigeon();
15
16    char const *GetName() { return "<mrpigeon>"; }
17
18    float GetSpeed() { return speed; }
19    class Enemy *const *GetEnemies() { return enemies; }
20
21protected:
22    virtual void TickGame(float seconds);
23    virtual void TickDraw(float seconds);
24
25    class Player *player;
26    class Enemy *enemies[10];
27
28    TileSet *hud_progress,
29            *hud_arrow;
30    TileSet *deco_campagneback,
31            *deco_cityback,
32            *deco_citybackdefense,
33            *deco_citybackpav,
34            *deco_floorrails;
35
36    TileSet *active_deco;
37    int active_deco_width;
38
39    int action;
40
41    double totaltime;
42    float railtime, backtime, spawntime;
43    float speed;
44};
45
46#endif // __MRPIGEON_H__
47
Note: See TracBrowser for help on using the repository browser.