Changeset 2181 for code/branches/overlay/src/orxonox/objects
- Timestamp:
- Nov 12, 2008, 12:56:15 AM (16 years ago)
- Location:
- code/branches/overlay/src/orxonox/objects/gametypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/overlay/src/orxonox/objects/gametypes/Gametype.cc
r2087 r2181 34 34 35 35 #include "core/CoreIncludes.h" 36 #include "core/ConfigValueIncludes.h" 37 #include "core/Loader.h" 38 #include "core/XMLFile.h" 36 39 #include "objects/infos/PlayerInfo.h" 37 40 #include "objects/worldentities/pawns/Spectator.h" … … 58 61 this->startCountdown_ = 0; 59 62 this->bStartCountdownRunning_ = false; 63 64 this->statsOverlay_ = 0; 65 66 setConfigValues(); 67 68 // load the corresponding score board 69 statsOverlay_ = new XMLFile(Settings::getDataPath() + "overlay/" + this->statsOverlayName_); 70 Loader::open(statsOverlay_); 71 } 72 73 void Gametype::setConfigValues() 74 { 75 SetConfigValue(statsOverlayName_, "stats.oxo"); 60 76 } 61 77 -
code/branches/overlay/src/orxonox/objects/gametypes/Gametype.h
r2087 r2181 44 44 { 45 45 friend class PlayerInfo; 46 friend class ClassIdentifier<Gametype>; 46 47 47 48 public: … … 82 83 83 84 private: 85 void setConfigValues(); 86 84 87 virtual SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const; 85 88 … … 105 108 std::set<SpawnPoint*> spawnpoints_; 106 109 SubclassIdentifier<ControllableEntity> defaultControllableEntity_; 110 111 XMLFile* statsOverlay_; 112 113 // Config Values 114 std::string statsOverlayName_; 107 115 }; 108 116 }
Note: See TracChangeset
for help on using the changeset viewer.