Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/new_class_id/src/util/network_game_rules.h @ 9703

Last change on this file since 9703 was 9691, checked in by bensch, 18 years ago

new_class_id: adapted Network

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