Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 4, 2015, 9:12:21 PM (9 years ago)
Author:
landauf
Message:

merged branch core7 back to trunk

Location:
code/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/libraries/tools/ParticleInterface.cc

    r9667 r10624  
    4949{
    5050    unsigned int ParticleInterface::counter_s = 0;
    51     ParticleInterface* ParticleInterface::currentParticleInterface_s = 0;
     51
     52    RegisterAbstractClass(ParticleInterface).inheritsFrom<TimeFactorListener>();
    5253
    5354    ParticleInterface::ParticleInterface(Ogre::SceneManager* scenemanager, const std::string& templateName, LODParticle::Value detaillevel)
  • code/trunk/src/libraries/tools/ParticleInterface.h

    r5781 r10624  
    3434#include "util/OgreForwardRefs.h"
    3535#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)
    4136
    4237namespace orxonox
     
    8075            void setDetailLevel(unsigned int level);
    8176
    82             inline void storeThisAsCurrentParticleInterface()
    83                 { ParticleInterface::currentParticleInterface_s = this; }
    84             inline static ParticleInterface* getCurrentParticleInterface()
    85                 { return ParticleInterface::currentParticleInterface_s; }
    86 
    8777        protected:
    8878            virtual void changedTimeFactor(float factor_new, float factor_old);
     
    10393            unsigned int              globalDetailLevel_; //!< Global maximum detail level of particle effects (0: off, 1: low, 2: normal, 3: high)
    10494
    105             static ParticleInterface* currentParticleInterface_s;
    10695            static unsigned int       counter_s;
    10796    };
  • code/trunk/src/libraries/tools/ResourceLocation.cc

    r9667 r10624  
    3535#include "util/Exception.h"
    3636#include "core/CoreIncludes.h"
    37 #include "core/PathConfig.h"
     37#include "core/ApplicationPaths.h"
     38#include "core/ConfigurablePaths.h"
    3839#include "core/XMLFile.h"
    3940#include "core/XMLPort.h"
     
    7475        namespace bf = boost::filesystem;
    7576        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();
    8081        else
    8182        {
  • code/trunk/src/libraries/tools/Timer.cc

    r9667 r10624  
    4040#include "util/Clock.h"
    4141#include "core/CoreIncludes.h"
    42 #include "core/command/ConsoleCommand.h"
     42#include "core/command/ConsoleCommandIncludes.h"
    4343#include "core/command/CommandExecutor.h"
    4444#include "core/command/Executor.h"
     
    247247    // RealTimer //
    248248    ///////////////
     249
     250    RegisterClassNoArgs(RealTimer);
     251
    249252    /// @copydoc Timer::Timer
    250253    RealTimer::RealTimer()
  • code/trunk/src/libraries/tools/interfaces/ToolsInterfaceCompilation.cc

    r9667 r10624  
    4646    float TimeFactorListener::timefactor_s = 1.0f;
    4747
    48     RegisterAbstractClass(TimeFactorListener).inheritsFrom(Class(Listable));
     48    RegisterAbstractClass(TimeFactorListener).inheritsFrom<Listable>();
    4949
    5050    TimeFactorListener::TimeFactorListener()
     
    6767    // Tickable
    6868    //----------------------------
    69     RegisterAbstractClass(Tickable).inheritsFrom(Class(OrxonoxInterface));
     69    RegisterAbstractClass(Tickable).inheritsFrom<OrxonoxInterface>();
    7070
    7171    /**
Note: See TracChangeset for help on using the changeset viewer.