Last change
on this file since 7036 was
7035,
checked in by patrick, 19 years ago
|
trunk: game rules loading problems
|
File size:
722 bytes
|
Rev | Line | |
---|
[7034] | 1 | |
---|
| 2 | /*! |
---|
[7035] | 3 | * @file multiplayer_team_deathmatch.h |
---|
[7034] | 4 | * Defines game rules for this game |
---|
| 5 | */ |
---|
| 6 | |
---|
| 7 | #ifndef _MULTIPLAYER_TEAM_DEATHMATCH_H |
---|
| 8 | #define _MULTIPLAYER_TEAM_DEATHMATCH_H |
---|
| 9 | |
---|
| 10 | #include "game_rules.h" |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | class TiXmlElement; |
---|
| 14 | class ObjectManager; |
---|
| 15 | class Player; |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | class MultiplayerTeamDeathmatch : public GameRules |
---|
| 19 | { |
---|
| 20 | |
---|
| 21 | public: |
---|
[7035] | 22 | MultiplayerTeamDeathmatch(const TiXmlElement* root = NULL); |
---|
[7034] | 23 | virtual ~MultiplayerTeamDeathmatch(); |
---|
| 24 | |
---|
| 25 | virtual void loadParams(const TiXmlElement* root); |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | virtual void onPlayerSpawn(Player* player); |
---|
| 29 | virtual void onPlayerDeath(Player* player); |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | virtual void tick(float dt); |
---|
| 33 | void draw(); |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | protected: |
---|
[7035] | 37 | virtual void checkGameRules(); |
---|
[7034] | 38 | }; |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | #endif /* _MULTIPLAYER_TEAM_DEATHMATCH_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.