Changeset 8875 for code/branches/ai2/src/orxonox
- Timestamp:
- Sep 4, 2011, 10:27:17 PM (13 years ago)
- Location:
- code/branches/ai2/src/orxonox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai2/src/orxonox/LevelManager.cc
r8706 r8875 87 87 void LevelManager::setConfigValues() 88 88 { 89 SetConfigValue(defaultLevelName_, " presentationDM.oxw")89 SetConfigValue(defaultLevelName_, "missionOne.oxw") 90 90 .description("Sets the pre selection of the level in the main menu."); 91 91 } … … 158 158 if (this->levels_.size() > 0) 159 159 { 160 // Activate the level that is the first in the list of levels whose activity has been requested. 160 // Activate the level that is the first in the list of levels whose activity has been requested. 161 161 this->levels_.front()->setActive(true); 162 162 // Make every player enter the newly activated level. … … 272 272 Loader::unload(&file); 273 273 274 if(info == NULL) 274 if(info == NULL) 275 275 { 276 276 // Create a default LevelInfoItem object that merely contains the name -
code/branches/ai2/src/orxonox/interfaces/RadarViewable.h
r7163 r8875 38 38 #include "core/OrxonoxClass.h" 39 39 #include "core/SmartPtr.h" 40 40 //TODO: if a RadarViewable changes visibility or activity, the event is not correctly working 41 41 namespace orxonox 42 42 { -
code/branches/ai2/src/orxonox/worldentities/pawns/Pawn.cc
r8758 r8875 452 452 this->isHumanShip_ = true; 453 453 } 454 455 void Pawn::changedActivity(void) 456 { 457 SUPER(Pawn, changedActivity); 458 459 this->setRadarVisibility(this->isActive()); 460 } 461 462 void Pawn::changedVisibility(void) 463 { 464 SUPER(Pawn, changedVisibility); 465 //this->setVisible(this->isVisible()); 466 this->setRadarVisibility(this->isVisible()); 467 } 468 454 469 } -
code/branches/ai2/src/orxonox/worldentities/pawns/Pawn.h
r8852 r8875 170 170 virtual const Vector3& getCarrierPosition(void) const 171 171 { return this->getWorldPosition(); }; 172 virtual void changedActivity(void); //!< To enable radarviewability when the activity is changed 173 virtual void changedVisibility(void); //!< To enable proper radarviewability when the visibility is changed 172 174 173 175 protected:
Note: See TracChangeset
for help on using the changeset viewer.