Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/util/network_game_rules.h @ 10229

Last change on this file since 10229 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 1.1 KB
RevLine 
[8024]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
13class TiXmlElement;
14
15class NetworkGameRules : public GameRules
16{
[9869]17  ObjectListDeclaration(NetworkGameRules);
[8024]18
19  public:
20    NetworkGameRules( const TiXmlElement* root );
21    virtual ~NetworkGameRules();
[9869]22
[8067]23    virtual int getTeamForNewUser();
[8147]24    virtual ClassID getPlayableClassId( int userId, int team );
[9869]25    virtual std::string getPlayableModelFileName( int userId, int team, const ClassID& classId );
26    virtual std::string getPlayableModelTextureFileName( int userId, int team, const ClassID& classId );
27    virtual float getPlayableScale( int userId, int team, const ClassID& classId );
28
[8067]29    virtual PlayerStats * getNewPlayerStats( int userId ){ return new PlayerStats( userId ); }
[9869]30
[8623]31    virtual void handleChatMessage( int userId, const std::string & message, int messageType ) = 0;
[9869]32
[8623]33    void shellSay( const std::string & message );
[8024]34
35
36  private:
37
38};
39
40#endif /* _NETWORK_GAME_RULES_H */
Note: See TracBrowser for help on using the repository browser.