stratgame

view src/part.h @ 2:369b51c9e4a8

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 23 May 2012 07:25:43 +0300
parents 86b53f76899f
children 8d95187cb3ee
line source
1 #ifndef GAME_H_
2 #define GAME_H_
4 class Part;
6 extern Part *cur_part;
7 extern Part *game_part, *menu_part;
9 class Part {
10 protected:
11 unsigned long current_time;
13 public:
14 virtual ~Part();
16 virtual bool init();
18 virtual void update(unsigned long msec);
19 virtual void draw() const = 0;
21 virtual void reshape(int x, int y);
22 virtual void key(int key, bool pressed);
23 virtual void mouse_button(int bn, bool pressed);
24 virtual void mouse_motion(int x, int y);
25 virtual void spaceball_motion(int x, int y, int z, int rx, int ry, int rz);
26 virtual void spaceball_button(int bn, bool pressed);
27 };
29 #endif /* GAME_H_ */