Changeset 588 for code/branches/FICN/src
- Timestamp:
- Dec 17, 2007, 6:38:36 PM (17 years ago)
- Location:
- code/branches/FICN/src/orxonox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/hud/HUD.cc
r587 r588 2 2 #include <Ogre.h> 3 3 #include <OIS/OIS.h> 4 #include <CEGUI/CEGUI.h>5 #include <CEGUIRenderer.h>4 //#include <CEGUI/CEGUI.h> 5 //#include <CEGUIRenderer.h> 6 6 7 7 -
code/branches/FICN/src/orxonox/orxonox.cc
r584 r588 64 64 65 65 #include "particle/ParticleInterface.h" 66 67 #include "hud/HUD.h" 66 68 67 69 //network stuff … … 402 404 void Orxonox::setupRenderSystem() 403 405 { 404 if ( /*!root_->restoreConfig() &&*/!root_->showConfigDialog())406 if (!root_->restoreConfig() && !root_->showConfigDialog()) 405 407 throw Exception(52, "User canceled the config dialog!", "OrxApplication::setupRenderSystem()"); 406 408 } … … 430 432 loader_->loadLevel(); 431 433 432 auMan_->ambientStart(); 434 Overlay* hudOverlay = OverlayManager::getSingleton().getByName("Orxonox/HUD1.2"); 435 hud::HUD* orxonoxHud; 436 orxonoxHud = new hud::HUD(); 437 orxonoxHud->setEnergyValue(20); 438 orxonoxHud->setEnergyDistr(20,20,60); 439 hudOverlay->show(); 440 441 442 /* 443 auMan_->ambientAdd("a1"); 444 auMan_->ambientAdd("a2"); 445 auMan_->ambientAdd("a3"); 446 //auMan->ambientAdd("ambient1"); 447 auMan_->ambientStart();*/ 433 448 } 434 449 -
code/branches/FICN/src/orxonox/run_manager.cc
r513 r588 54 54 #include "weapon/base_weapon.h" 55 55 56 #include "hud/hud_overlay.h" 57 #include "hud/test_overlay.h" 56 //#include "hud/hud_overlay.h" 57 //#include "hud/test_overlay.h" 58 #include "hud/HUD.h" 58 59 59 60 #include "run_manager.h" … … 142 143 143 144 // create HUD 144 hud_ = new hud::TestOverlay(window_); 145 hud_->show(); 145 //hud_ = new hud::TestOverlay(window_); 146 //hud_->show(); 147 /*hud_ = new hud::HUD(); 148 hud_->show();*/ 146 149 147 150 … … 206 209 if (bulletManager_) 207 210 delete bulletManager_; 208 if (hud_)209 delete hud_; 211 /*if (hud_) 212 delete hud_;*/ 210 213 } 211 214 … … 241 244 + " | Ammo stock = " 242 245 + StringConverter::toString(playerShip_->getAmmoStock()); 243 hud_->setDebugText(tempStr);244 245 hud_->tick(time, deltaTime);246 //hud_->setDebugText(tempStr); 247 248 //hud_->tick(time, deltaTime); 246 249 247 250 // update the bullet positions … … 444 447 void RunManager::showDebugOverlay(bool show) 445 448 { 446 if (hud_)449 /*if (hud_) 447 450 { 448 451 if (show) … … 450 453 else 451 454 hud_->hide(); 452 } 455 }*/ 453 456 } 454 457 -
code/branches/FICN/src/orxonox/run_manager.h
r342 r588 47 47 public: 48 48 virtual ~RunManager(); 49 49 50 50 void initialise(OgreControl*); 51 51 … … 109 109 OrxonoxScene *backgroundScene_; 110 110 OrxonoxShip *playerShip_; 111 hud::TestOverlay *hud_; 111 //hud::TestOverlay *hud_; 112 //hud::HUD *hud_; 112 113 113 114 // Bullet manager
Note: See TracChangeset
for help on using the changeset viewer.