Changeset 10624 for code/trunk/src/libraries/tools
- Timestamp:
- Oct 4, 2015, 9:12:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/src/libraries/tools/ParticleInterface.cc
r9667 r10624 49 49 { 50 50 unsigned int ParticleInterface::counter_s = 0; 51 ParticleInterface* ParticleInterface::currentParticleInterface_s = 0; 51 52 RegisterAbstractClass(ParticleInterface).inheritsFrom<TimeFactorListener>(); 52 53 53 54 ParticleInterface::ParticleInterface(Ogre::SceneManager* scenemanager, const std::string& templateName, LODParticle::Value detaillevel) -
code/trunk/src/libraries/tools/ParticleInterface.h
r5781 r10624 34 34 #include "util/OgreForwardRefs.h" 35 35 #include "tools/interfaces/TimeFactorListener.h" 36 37 #define getAllEmitters() \38 storeThisAsCurrentParticleInterface(); \39 for (unsigned int i = 0; i < ParticleInterface::getCurrentParticleInterface()->getNumEmitters(); ++i) \40 ParticleInterface::getCurrentParticleInterface()->getEmitter(i)41 36 42 37 namespace orxonox … … 80 75 void setDetailLevel(unsigned int level); 81 76 82 inline void storeThisAsCurrentParticleInterface()83 { ParticleInterface::currentParticleInterface_s = this; }84 inline static ParticleInterface* getCurrentParticleInterface()85 { return ParticleInterface::currentParticleInterface_s; }86 87 77 protected: 88 78 virtual void changedTimeFactor(float factor_new, float factor_old); … … 103 93 unsigned int globalDetailLevel_; //!< Global maximum detail level of particle effects (0: off, 1: low, 2: normal, 3: high) 104 94 105 static ParticleInterface* currentParticleInterface_s;106 95 static unsigned int counter_s; 107 96 }; -
code/trunk/src/libraries/tools/ResourceLocation.cc
r9667 r10624 35 35 #include "util/Exception.h" 36 36 #include "core/CoreIncludes.h" 37 #include "core/PathConfig.h" 37 #include "core/ApplicationPaths.h" 38 #include "core/ConfigurablePaths.h" 38 39 #include "core/XMLFile.h" 39 40 #include "core/XMLPort.h" … … 74 75 namespace bf = boost::filesystem; 75 76 bf::path path; 76 if (bf::exists( PathConfig::getDataPath() / this->getPath()))77 path = PathConfig::getDataPath() / this->getPath();78 else if ( PathConfig::buildDirectoryRun() && bf::exists(PathConfig::getExternalDataPath() / this->getPath()))79 path = PathConfig::getExternalDataPath() / this->getPath();77 if (bf::exists(ConfigurablePaths::getDataPath() / this->getPath())) 78 path = ConfigurablePaths::getDataPath() / this->getPath(); 79 else if (ApplicationPaths::buildDirectoryRun() && bf::exists(ConfigurablePaths::getExternalDataPath() / this->getPath())) 80 path = ConfigurablePaths::getExternalDataPath() / this->getPath(); 80 81 else 81 82 { -
code/trunk/src/libraries/tools/Timer.cc
r9667 r10624 40 40 #include "util/Clock.h" 41 41 #include "core/CoreIncludes.h" 42 #include "core/command/ConsoleCommand .h"42 #include "core/command/ConsoleCommandIncludes.h" 43 43 #include "core/command/CommandExecutor.h" 44 44 #include "core/command/Executor.h" … … 247 247 // RealTimer // 248 248 /////////////// 249 250 RegisterClassNoArgs(RealTimer); 251 249 252 /// @copydoc Timer::Timer 250 253 RealTimer::RealTimer() -
code/trunk/src/libraries/tools/interfaces/ToolsInterfaceCompilation.cc
r9667 r10624 46 46 float TimeFactorListener::timefactor_s = 1.0f; 47 47 48 RegisterAbstractClass(TimeFactorListener).inheritsFrom (Class(Listable));48 RegisterAbstractClass(TimeFactorListener).inheritsFrom<Listable>(); 49 49 50 50 TimeFactorListener::TimeFactorListener() … … 67 67 // Tickable 68 68 //---------------------------- 69 RegisterAbstractClass(Tickable).inheritsFrom (Class(OrxonoxInterface));69 RegisterAbstractClass(Tickable).inheritsFrom<OrxonoxInterface>(); 70 70 71 71 /**
Note: See TracChangeset
for help on using the changeset viewer.