Changeset 2181
- Timestamp:
- Nov 12, 2008, 12:56:15 AM (16 years ago)
- Location:
- code/branches/overlay/src/orxonox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/overlay/src/orxonox/gamestates/GSLevel.cc
r2140 r2181 60 60 , radar_(0) 61 61 , startFile_(0) 62 , stats_(0)63 62 , cameraManager_(0) 64 63 , levelManager_(0) … … 94 93 // Start the Radar 95 94 this->radar_ = new Radar(); 96 97 stats_ = new XMLFile(Settings::getDataPath() + "overlay/stats.oxo");98 Loader::open(stats_);99 95 } 100 96 -
code/branches/overlay/src/orxonox/gamestates/GSLevel.h
r2140 r2181 68 68 Radar* radar_; //!< represents the Radar (not the HUD part) 69 69 XMLFile* startFile_; //!< current hard coded default level 70 XMLFile* stats_;71 70 CameraManager* cameraManager_; 72 71 LevelManager* levelManager_; -
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 } -
code/branches/overlay/src/orxonox/overlays/OrxonoxOverlay.cc
r2087 r2181 87 87 setPosition(Vector2(0.0f, 0.0f)); 88 88 setRotation(Degree(0.0)); 89 setAspectCorrection( true);89 setAspectCorrection(false); 90 90 setBackgroundMaterial(""); 91 91 }
Note: See TracChangeset
for help on using the changeset viewer.