Last change
on this file since 6502 was
6502,
checked in by patrick, 18 years ago
|
network: the simple menu is a game world, that is a little more performant and much smaller
|
File size:
1.2 KB
|
Line | |
---|
1 | /*! |
---|
2 | * @file simple_game_menu.h |
---|
3 | * a StoryEntity that contains a simple game menu |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _SIMPLE_GAME_MENU_H |
---|
7 | #define _SIMPLE_GAME_MENU_H |
---|
8 | |
---|
9 | |
---|
10 | #include "game_world.h" |
---|
11 | #include "game_world_data.h" |
---|
12 | |
---|
13 | |
---|
14 | class SimpleGameMenuData; |
---|
15 | class TiXmlElement; |
---|
16 | |
---|
17 | |
---|
18 | //! a simple game menu based on a story entity |
---|
19 | /** |
---|
20 | * This is a simple menu, that is based on the StoryEntity. Therefore this menu is absolutly |
---|
21 | * loadable and is exchangeable very easely :D |
---|
22 | */ |
---|
23 | class SimpleGameMenu : public GameWorld |
---|
24 | { |
---|
25 | |
---|
26 | public: |
---|
27 | SimpleGameMenu(const TiXmlElement* root = NULL); |
---|
28 | virtual ~SimpleGameMenu(); |
---|
29 | |
---|
30 | void loadParams(const TiXmlElement* root); |
---|
31 | |
---|
32 | virtual void collide(); |
---|
33 | }; |
---|
34 | |
---|
35 | |
---|
36 | |
---|
37 | //! the simple game menu data |
---|
38 | class SimpleGameMenuData : public GameWorldData |
---|
39 | { |
---|
40 | |
---|
41 | public: |
---|
42 | SimpleGameMenuData(); |
---|
43 | virtual ~SimpleGameMenuData(); |
---|
44 | |
---|
45 | virtual ErrorMessage init(); |
---|
46 | |
---|
47 | |
---|
48 | protected: |
---|
49 | virtual ErrorMessage loadGUI(TiXmlElement* root); |
---|
50 | virtual ErrorMessage loadWorldEntities(TiXmlElement* root); |
---|
51 | virtual ErrorMessage loadScene(TiXmlElement* root); |
---|
52 | |
---|
53 | virtual ErrorMessage unloadGUI(); |
---|
54 | virtual ErrorMessage unloadWorldEntities(); |
---|
55 | virtual ErrorMessage unloadScene(); |
---|
56 | |
---|
57 | }; |
---|
58 | |
---|
59 | |
---|
60 | #endif /* _GAME_WORLD_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.