source:
orxonox.OLD/trunk/src/util/game_rules.h
@
7030
| Last change on this file since 7030 was 7020, checked in by patrick, 20 years ago | |
|---|---|
| File size: 534 bytes | |
| Rev | Line | |
|---|---|---|
| [7017] | 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 | ||
| [7020] | 13 | class TiXmlElement; |
| 14 | class ObjectManager; | |
| [7017] | 15 | |
| 16 | ||
| 17 | class GameRules : public BaseObject | |
| 18 | { | |
| 19 | ||
| 20 | public: | |
| [7020] | 21 | GameRules(const TiXmlElement root); |
| [7017] | 22 | virtual ~GameRules(); |
| 23 | ||
| [7020] | 24 | virtual void loadParams(const TiXmlElement* root); |
| 25 | ||
| 26 | ||
| 27 | virtual void tick(float dt) = 0; | |
| 28 | ||
| 29 | ||
| [7017] | 30 | private: |
| [7020] | 31 | ObjectManager* pObjectManager; //!< reference to the current Object Manager |
| 32 | }; | |
| [7017] | 33 | |
| [7020] | 34 | |
| 35 | #endif /* _GAME_RULES_H */ |
Note: See TracBrowser
for help on using the repository browser.










