- Timestamp:
- Feb 5, 2006, 9:56:04 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world_data.cc
r7033 r7034 30 30 #include "camera.h" 31 31 #include "environment.h" 32 #include "terrain.h" storyI32 #include "terrain.h" 33 33 #include "test_entity.h" 34 34 #include "terrain.h" -
trunk/src/util/Makefile.am
r7020 r7034 10 10 hud.cc \ 11 11 game_rules.cc \ 12 multiplayer_team_deathmatch.cc \ 12 13 animation/animation3d.cc \ 13 14 animation/animation.cc \ … … 26 27 hud.h \ 27 28 game_rules.h \ 29 multiplayer_team_deathmatch.h \ 28 30 animation/animation3d.h \ 29 31 animation/animation.h \ -
trunk/src/util/game_rules.h
r7020 r7034 13 13 class TiXmlElement; 14 14 class ObjectManager; 15 class Player; 15 16 16 17 … … 25 26 26 27 27 virtual void tick(float dt) = 0; 28 virtual void onPlayerSpawn(Player* player) {} 29 virtual void onPlayerDeath(Player* player) {} 28 30 29 31 30 private: 32 virtual void tick(float dt) = 0; 33 /** draws the stuff from the game rules if there is any need to */ 34 void draw() {} 35 36 37 protected: 38 virtual void checkGameRules() {} 39 40 41 protected: 31 42 ObjectManager* pObjectManager; //!< reference to the current Object Manager 43 Player* localPlayer; //!< reference to the local player 32 44 }; 33 45
Note: See TracChangeset
for help on using the changeset viewer.