Changeset 7284 for code/trunk/src/modules
- Timestamp:
- Aug 31, 2010, 3:37:40 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/designtools/ScreenshotManager.cc
r7163 r7284 9 9 #include <OgreRoot.h> 10 10 11 #include "util/ScopedSingletonManager.h" 11 12 #include "core/GraphicsManager.h" 12 13 #include "core/PathConfig.h" 13 #include "core/ScopedSingletonManager.h" 14 #include "core/ConsoleCommand.h" 14 #include "core/command/ConsoleCommand.h" 15 15 16 16 #include "CameraManager.h" … … 20 20 { 21 21 ManageScopedSingleton(ScreenshotManager, ScopeID::Graphics, false); 22 SetConsoleCommand Alias(ScreenshotManager, makeScreenshot_s, "printScreenHD", true);22 SetConsoleCommand("printScreenHD", &ScreenshotManager::makeScreenshot_s); 23 23 24 24 ScreenshotManager::ScreenshotManager() -
code/trunk/src/modules/designtools/SkyboxGenerator.cc
r7163 r7284 34 34 #include <OgreCamera.h> 35 35 36 #include " core/ConsoleCommand.h"36 #include "util/ScopedSingletonManager.h" 37 37 #include "core/CoreIncludes.h" 38 38 #include "core/ConfigValueIncludes.h" 39 #include "core/ScopedSingletonManager.h" 39 #include "core/GraphicsManager.h" 40 #include "core/command/ConsoleCommand.h" 41 #include "core/command/CommandExecutor.h" 40 42 #include "controllers/HumanController.h" 41 43 #include "worldentities/CameraPosition.h" 42 44 #include "worldentities/ControllableEntity.h" 43 #include "core/GraphicsManager.h"44 #include "core/CommandExecutor.h"45 45 #include "graphics/Camera.h" 46 46 … … 50 50 { 51 51 52 SetConsoleCommand( SkyboxGenerator, createSkybox, true);52 SetConsoleCommand("SkyboxGenerator", "createSkybox", &SkyboxGenerator::createSkybox).addShortcut(); 53 53 54 54 ManageScopedSingleton(SkyboxGenerator, ScopeID::Graphics, false); … … 79 79 if(!this->captionsRemoved_) 80 80 { 81 CommandExecutor::execute(" setGametypeStatusfalse");81 CommandExecutor::execute("GametypeStatus displayCaption false"); 82 82 this->captionsRemoved_ = true; 83 83 return; … … 145 145 takeScreenshot_ = false; 146 146 CommandExecutor::execute("pause"); 147 CommandExecutor::execute(" setGametypeStatustrue");147 CommandExecutor::execute("GametypeStatus displayCaption true"); 148 148 this->captionsRemoved_ = false; 149 149 } -
code/trunk/src/modules/notifications/NotificationManager.cc
r7163 r7284 36 36 #include <set> 37 37 38 #include "util/ScopedSingletonManager.h" 38 39 #include "core/CoreIncludes.h" 39 #include "core/ScopedSingletonManager.h"40 40 #include "Notification.h" 41 41 #include "interfaces/NotificationListener.h" -
code/trunk/src/modules/objects/triggers/Trigger.cc
r6417 r7284 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/ConsoleCommand.h"33 32 #include "core/GameMode.h" 34 33 #include "core/XMLPort.h" 34 #include "core/command/ConsoleCommand.h" 35 35 #include "Scene.h" 36 36 … … 38 38 { 39 39 40 SetConsoleCommand( Trigger, debugFlares, false).defaultValues(false);40 SetConsoleCommand("Trigger", "debugFlares", &Trigger::debugFlares).defaultValues(false); 41 41 42 42 CreateFactory(Trigger); -
code/trunk/src/modules/overlays/OverlaysPrecompiledHeaders.h
r5781 r7284 58 58 /////////////////////////////////////////// 59 59 60 #include "core/ Executor.h" // 1360 #include "core/command/Executor.h" // 13 61 61 //#include "network/synchronisable/Synchronisable.h" // 13 62 62 //#include "core/XMLPort.h" // 9 -
code/trunk/src/modules/overlays/hud/ChatOverlay.cc
r6417 r7284 36 36 #include "core/CoreIncludes.h" 37 37 #include "core/ConfigValueIncludes.h" 38 #include "core/ Executor.h"38 #include "core/command/Executor.h" 39 39 40 40 #include "tools/Timer.h" … … 91 91 Timer* timer = new Timer(); 92 92 this->timers_.insert(timer); // store the timer in a set to destroy it in the destructor 93 Executor*executor = createExecutor(createFunctor(&ChatOverlay::dropMessage, this));93 const ExecutorPtr& executor = createExecutor(createFunctor(&ChatOverlay::dropMessage, this)); 94 94 executor->setDefaultValues(timer); 95 95 timer->setTimer(this->displayTime_, false, executor, true); -
code/trunk/src/modules/overlays/hud/GametypeStatus.cc
r7163 r7284 30 30 31 31 #include "util/Convert.h" 32 #include "core/ConsoleCommand.h"33 32 #include "core/CoreIncludes.h" 33 #include "core/command/ConsoleCommand.h" 34 34 #include "infos/GametypeInfo.h" 35 35 #include "infos/PlayerInfo.h" … … 41 41 CreateFactory(GametypeStatus); 42 42 43 /*static*/ bool GametypeStatus::noCaption_s = false; 44 SetConsoleCommand(GametypeStatus, setGametypeStatus, true); 43 static const std::string __CC_GametypeStatus_name = "GametypeStatus"; 44 static const std::string __CC_displayCaption_name = "displayCaption"; 45 46 SetConsoleCommand(__CC_GametypeStatus_name, __CC_displayCaption_name, &GametypeStatus::setDisplayCaption); 45 47 46 48 GametypeStatus::GametypeStatus(BaseObject* creator) : OverlayText(creator) … … 49 51 50 52 this->owner_ = 0; 53 this->bNoCaption_ = false; 54 55 ModifyConsoleCommand(__CC_GametypeStatus_name, __CC_displayCaption_name).setObject(this); 51 56 } 52 57 53 58 GametypeStatus::~GametypeStatus() 54 59 { 60 ModifyConsoleCommand(__CC_GametypeStatus_name, __CC_displayCaption_name).setObject(0); 55 61 } 56 62 … … 64 70 ControllableEntity* ce = this->owner_->getControllableEntity(); 65 71 66 if (GametypeStatus::noCaption_s) // No captions are displayed.72 if (this->bNoCaption_) // No captions are displayed. 67 73 { 68 74 this->setCaption(""); … … 105 111 If true captions are displayed, if false, not. 106 112 */ 107 /*static*/ void GametypeStatus::setGametypeStatus(bool bValue)113 void GametypeStatus::setDisplayCaption(bool bValue) 108 114 { 109 GametypeStatus::noCaption_s= !bValue;115 this->bNoCaption_ = !bValue; 110 116 } 111 117 -
code/trunk/src/modules/overlays/hud/GametypeStatus.h
r7163 r7284 46 46 virtual void changedOwner(); 47 47 48 static void setGametypeStatus(bool bValue); //!< Toggles whether the gametype status is displayed.48 void setDisplayCaption(bool bValue); //!< Toggles whether the gametype status is displayed. 49 49 50 50 private: 51 51 PlayerInfo* owner_; 52 static bool noCaption_s;52 bool bNoCaption_; 53 53 54 54 }; -
code/trunk/src/modules/pickup/PickupManager.cc
r7209 r7284 34 34 #include "PickupManager.h" 35 35 36 #include "util/Convert.h" 37 #include "util/ScopedSingletonManager.h" 36 38 #include "core/CoreIncludes.h" 37 39 #include "core/LuaState.h" 38 40 #include "core/GUIManager.h" 39 #include "core/ScopedSingletonManager.h"40 41 #include "core/Identifier.h" 41 #include "util/Convert.h"42 42 #include "interfaces/PickupCarrier.h" 43 43 #include "infos/PlayerInfo.h" -
code/trunk/src/modules/pong/Pong.cc
r6417 r7284 31 31 #include "core/CoreIncludes.h" 32 32 #include "core/EventIncludes.h" 33 #include "core/ Executor.h"33 #include "core/command/Executor.h" 34 34 #include "PongCenterpoint.h" 35 35 #include "PongBall.h" -
code/trunk/src/modules/questsystem/QuestManager.cc
r7163 r7284 37 37 38 38 #include "util/Exception.h" 39 #include "util/ScopedSingletonManager.h" 39 40 #include "core/CoreIncludes.h" 40 41 #include "core/GUIManager.h" 41 #include "core/ConsoleCommand.h"42 42 #include "core/LuaState.h" 43 #include "core/ ScopedSingletonManager.h"43 #include "core/command/ConsoleCommand.h" 44 44 #include "infos/PlayerInfo.h" 45 45 #include "overlays/GUIOverlay.h" -
code/trunk/src/modules/questsystem/QuestsystemPrecompiledHeaders.h
r5929 r7284 65 65 /////////////////////////////////////////// 66 66 67 #include "core/ Executor.h" // 1567 #include "core/command/Executor.h" // 15 68 68 //#include "core/XMLPort.h" // 14 69 69 -
code/trunk/src/modules/weapons/MuzzleFlash.cc
r5929 r7284 31 31 32 32 #include "core/CoreIncludes.h" 33 #include "core/ Executor.h"33 #include "core/command/Executor.h" 34 34 35 35 namespace orxonox -
code/trunk/src/modules/weapons/projectiles/Projectile.cc
r6540 r7284 31 31 #include "core/CoreIncludes.h" 32 32 #include "core/ConfigValueIncludes.h" 33 #include "core/Executor.h"34 33 #include "core/GameMode.h" 34 #include "core/command/Executor.h" 35 35 #include "objects/collisionshapes/SphereCollisionShape.h" 36 36 #include "worldentities/pawns/Pawn.h" -
code/trunk/src/modules/weapons/weaponmodes/EnergyDrink.cc
r6732 r7284 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/Executor.h"33 32 #include "core/XMLPort.h" 33 #include "core/command/Executor.h" 34 34 #include "graphics/Model.h" 35 35 -
code/trunk/src/modules/weapons/weaponmodes/HsW01.cc
r6732 r7284 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/Executor.h"33 32 #include "core/XMLPort.h" 33 #include "core/command/Executor.h" 34 34 #include "graphics/Model.h" 35 35
Note: See TracChangeset
for help on using the changeset viewer.