Changeset 8996
- Timestamp:
- Dec 18, 2011, 1:18:51 AM (13 years ago)
- Location:
- code/branches/presentation2011
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2011/data/levels/lastTeamStandingII.oxw
r8981 r8996 1 1 <LevelInfo 2 name = " On the fly"3 description = " Survive as a team."2 name = "Last Team Standing II" 3 description = "Last Team Standing in an abstract level." 4 4 screenshot = "onthefly.png" 5 5 tags = "gametype" … … 16 16 17 17 <Level 18 name = "On the fly"19 description = "testmap for gametype last team standing"20 18 gametype = "LastTeamStanding" 21 19 > -
code/branches/presentation2011/data/levels/missionOne.oxw
r8994 r8996 21 21 22 22 <Level 23 name = "Mission One"24 description = "How to steer a spaceship."25 23 gametype = "Mission" 26 24 > -
code/branches/presentation2011/src/libraries/core/GUIManager.cc
r8980 r8996 223 223 224 224 GUIManager* GUIManager::singletonPtr_s = 0; 225 /*static*/ const std::string GUIManager::defaultScheme_ = " Orxonox"; //TaharezGreen225 /*static*/ const std::string GUIManager::defaultScheme_ = "TaharezGreen"; //Alternative: Orxonox (not fully complete yet, see the graphics menu) 226 226 227 227 SetConsoleCommand("showGUI", &GUIManager::showGUI).defaultValue(1, false).defaultValue(2, false); -
code/branches/presentation2011/src/orxonox/controllers/FormationController.cc
r8995 r8996 129 129 SUPER(FormationController, XMLPort, xmlelement, mode); 130 130 131 XMLPortParam(FormationController, "team", setTeam, getTeam, xmlelement, mode).defaultValues(-1); 131 132 XMLPortParam(FormationController, "formationFlight", setFormationFlight, getFormationFlight, xmlelement, mode).defaultValues(false); 132 133 XMLPortParam(FormationController, "formationSize", setFormationSize, getFormationSize, xmlelement, mode).defaultValues(STANDARD_MAX_FORMATION_SIZE); -
code/branches/presentation2011/src/orxonox/gametypes/TeamGametype.cc
r8995 r8996 49 49 this->allowFriendlyFire_ = false; 50 50 //this->playersPerTeam_ = 0; 51 this->maxPlayers_ = 2; //TEST51 this->maxPlayers_ = 0; //Value "0": no limit is set. 52 52 this->setConfigValues(); 53 53 } … … 75 75 void TeamGametype::playerEntered(PlayerInfo* player) 76 76 { 77 if(player == NULL) return; // catch null pointers 77 78 Gametype::playerEntered(player); 78 if(player == NULL) return;79 79 this->findAndSetTeam(player); 80 80 if( this->players_.size() <= maxPlayers_ || maxPlayers_ == 0) … … 91 91 void TeamGametype::findAndSetTeam(PlayerInfo* player) 92 92 { 93 std::vector<unsigned int> playersperteam(this->teams_, 0); 93 if(player == NULL) return; // catch null pointers 94 std::vector<unsigned int> playersperteam(this->teams_, 0); 94 95 95 96 for (std::map<PlayerInfo*, int>::iterator it = this->teamnumbers_.begin(); it != this->teamnumbers_.end(); ++it) … … 121 122 if(it->second == false) // waiting player found 122 123 {it->second = true; break;} // allow player to enter 123 124 124 } 125 } 125 126 126 127 if (valid_player) … … 140 141 if(allowedInGame_[it->first] == false)//check if dead player is allowed to enter 141 142 { 142 143 continue; 143 144 } 144 145 if (it->second.state_ == PlayerState::Dead)
Note: See TracChangeset
for help on using the changeset viewer.