| Rev | Line |   | 
|---|
| [8024] | 1 | /* | 
|---|
 | 2 |    orxonox - the future of 3D-vertical-scrollers | 
|---|
 | 3 |  | 
|---|
 | 4 |    Copyright (C) 2004 orx | 
|---|
 | 5 |  | 
|---|
 | 6 |    This program is free software; you can redistribute it and/or modify | 
|---|
 | 7 |    it under the terms of the GNU General Public License as published by | 
|---|
 | 8 |    the Free Software Foundation; either version 2, or (at your option) | 
|---|
 | 9 |    any later version. | 
|---|
 | 10 |  | 
|---|
 | 11 | ### File Specific: | 
|---|
 | 12 |    main-programmer: ... | 
|---|
 | 13 |    co-programmer: ... | 
|---|
 | 14 | */ | 
|---|
 | 15 |  | 
|---|
 | 16 | //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ | 
|---|
 | 17 |  | 
|---|
 | 18 | #include "network_game_rules.h" | 
|---|
 | 19 |  | 
|---|
| [8623] | 20 | #include "network_game_manager.h" | 
|---|
 | 21 |  | 
|---|
| [8024] | 22 | using namespace std; | 
|---|
 | 23 |  | 
|---|
 | 24 |  | 
|---|
 | 25 | /** | 
|---|
 | 26 |  * standard constructor | 
|---|
 | 27 |  */ | 
|---|
 | 28 | NetworkGameRules::NetworkGameRules ( const TiXmlElement* root ) | 
|---|
 | 29 |   : GameRules( root ) | 
|---|
 | 30 | { | 
|---|
 | 31 |   this->setClassID( CL_NETWORK_GAME_RULES, "NetworkGameRules"); | 
|---|
 | 32 | } | 
|---|
 | 33 |  | 
|---|
 | 34 |  | 
|---|
 | 35 | /** | 
|---|
 | 36 |  * standard deconstructor | 
|---|
 | 37 |  */ | 
|---|
 | 38 | NetworkGameRules::~NetworkGameRules () | 
|---|
 | 39 | { | 
|---|
 | 40 | } | 
|---|
 | 41 |  | 
|---|
| [8147] | 42 | std::string NetworkGameRules::getPlayableModelFileName( int uesrId, int team, ClassID classId ) | 
|---|
| [8024] | 43 | { | 
|---|
 | 44 |   return "models/ships/reap_#.obj"; | 
|---|
 | 45 | } | 
|---|
 | 46 |  | 
|---|
| [8147] | 47 | ClassID NetworkGameRules::getPlayableClassId( int userId, int team ) | 
|---|
| [8024] | 48 | { | 
|---|
 | 49 |   return CL_SPACE_SHIP; | 
|---|
 | 50 | } | 
|---|
 | 51 |  | 
|---|
 | 52 | int NetworkGameRules::getTeamForNewUser( ) | 
|---|
 | 53 | { | 
|---|
 | 54 |   return 0; | 
|---|
 | 55 | } | 
|---|
 | 56 |  | 
|---|
| [8623] | 57 |  | 
|---|
 | 58 | void NetworkGameRules::shellSay( const std::string & message ) | 
|---|
 | 59 | { | 
|---|
 | 60 |   NetworkGameManager::getInstance()->sendChatMessage( message, 0 ); | 
|---|
 | 61 | } | 
|---|
 | 62 |  | 
|---|
 | 63 |  | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.