Last change
on this file since 10258 was
9110,
checked in by bensch, 18 years ago
|
orxonox/trunk: merged the Presentation back
|
File size:
960 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file network_game_rules.h |
---|
3 | * @brief Definition of NetworkGameRules |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _NETWORK_GAME_RULES_H |
---|
7 | #define _NETWORK_GAME_RULES_H |
---|
8 | |
---|
9 | #include "game_rules.h" |
---|
10 | |
---|
11 | #include "player_stats.h" |
---|
12 | |
---|
13 | class TiXmlElement; |
---|
14 | |
---|
15 | class NetworkGameRules : public GameRules |
---|
16 | { |
---|
17 | |
---|
18 | public: |
---|
19 | NetworkGameRules( const TiXmlElement* root ); |
---|
20 | virtual ~NetworkGameRules(); |
---|
21 | |
---|
22 | virtual int getTeamForNewUser(); |
---|
23 | virtual ClassID getPlayableClassId( int userId, int team ); |
---|
24 | virtual std::string getPlayableModelFileName( int userId, int team, ClassID classId ); |
---|
25 | virtual std::string getPlayableModelTextureFileName( int userId, int team, ClassID classId ); |
---|
26 | |
---|
27 | virtual PlayerStats * getNewPlayerStats( int userId ){ return new PlayerStats( userId ); } |
---|
28 | |
---|
29 | virtual void handleChatMessage( int userId, const std::string & message, int messageType ) = 0; |
---|
30 | |
---|
31 | void shellSay( const std::string & message ); |
---|
32 | |
---|
33 | |
---|
34 | private: |
---|
35 | |
---|
36 | }; |
---|
37 | |
---|
38 | #endif /* _NETWORK_GAME_RULES_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.