Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7020 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Feb 3, 2006, 4:34:44 PM (19 years ago)
Author:
patrick
Message:

trunk: added the game rules

Location:
trunk/src/util
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/Makefile.am

    r6437 r7020  
    99                        state.cc \
    1010                        hud.cc \
     11                        game_rules.cc \
    1112                        animation/animation3d.cc \
    1213                        animation/animation.cc \
     
    2425                        state.h \
    2526                        hud.h \
     27                        game_rules.h \
    2628                        animation/animation3d.h \
    2729                        animation/animation.h \
  • trunk/src/util/game_rules.cc

    r7017 r7020  
    1313*/
    1414
    15 #define DEBUG_MODULE_STORY_ENTITY
     15#define DEBUG_MODULE_GAME_RULES
    1616
    1717#include "game_rules.h"
     18
     19#include "load_param.h"
    1820
    1921
     
    2123
    2224
    23 GameRules::GameRules()
     25/**
     26 * constructor
     27 */
     28GameRules::GameRules(const TiXmlElement root)
     29{}
     30
     31/**
     32 * decontsructor
     33 */
     34GameRules::~GameRules()
    2435{}
    2536
    2637
    27 GameRules::~GameRules()
     38
     39void GameRules::loadParams(const TiXmlElement* root)
    2840{}
     41
  • trunk/src/util/game_rules.h

    r7017 r7020  
    1111
    1212
     13class TiXmlElement;
     14class ObjectManager;
    1315
    1416
     
    1719
    1820  public:
    19     GameRules();
     21    GameRules(const TiXmlElement root);
    2022    virtual ~GameRules();
    2123
     24    virtual void loadParams(const TiXmlElement* root);
     25
     26
     27    virtual void tick(float dt) = 0;
     28
     29
    2230  private:
     31    ObjectManager*         pObjectManager;         //!< reference to the current Object Manager
     32};
    2333
    24 };
     34
     35#endif /* _GAME_RULES_H */
Note: See TracChangeset for help on using the changeset viewer.