Line | |
---|
1 | |
---|
2 | /*! |
---|
3 | * @file game_rules.h |
---|
4 | * Defines game rules for this game |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _GAME_RULES_H |
---|
8 | #define _GAME_RULES_H |
---|
9 | |
---|
10 | #include "base_object.h" |
---|
11 | |
---|
12 | |
---|
13 | class TiXmlElement; |
---|
14 | class ObjectManager; |
---|
15 | |
---|
16 | |
---|
17 | class GameRules : public BaseObject |
---|
18 | { |
---|
19 | |
---|
20 | public: |
---|
21 | GameRules(const TiXmlElement root); |
---|
22 | virtual ~GameRules(); |
---|
23 | |
---|
24 | virtual void loadParams(const TiXmlElement* root); |
---|
25 | |
---|
26 | |
---|
27 | virtual void tick(float dt) = 0; |
---|
28 | |
---|
29 | |
---|
30 | private: |
---|
31 | ObjectManager* pObjectManager; //!< reference to the current Object Manager |
---|
32 | }; |
---|
33 | |
---|
34 | |
---|
35 | #endif /* _GAME_RULES_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.