Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2009, 2:45:54 PM (15 years ago)
Author:
landauf
Message:

merged particles branch back to trunk

Location:
code/trunk
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/objects/worldentities/BigExplosion.cc

    • Property svn:eol-style set to native
    r3086 r3087  
    3636#include <sstream>
    3737
    38 #include "core/Core.h"
     38#include "core/GameMode.h"
    3939#include "core/CoreIncludes.h"
    4040#include "core/Executor.h"
     
    5353        RegisterObject(BigExplosion);
    5454
    55         if ( Core::showsGraphics() && ( !this->getScene() || !this->getScene()->getSceneManager() ) )
     55        if ( GameMode::showsGraphics() && ( !this->getScene() || !this->getScene()->getSceneManager() ) )
    5656            ThrowException(AbortLoading, "Can't create BigExplosion, no scene or no scene manager given.");
    5757/*
     
    7070*/
    7171
    72         if ( Core::showsGraphics() )
     72        if ( GameMode::showsGraphics() )
    7373        {
    7474            try
     
    8787        }
    8888
    89         if (Core::isMaster())
     89        if (GameMode::isMaster())
    9090        {
    9191            Vector3 velocity(rnd(-1, 1), rnd(-1, 1), rnd(-1, 1));
     
    9494            this->setVelocity(velocity);
    9595
    96             this->destroyTimer_.setTimer(rnd(4, 7), false, this, createExecutor(createFunctor(&BigExplosion::stop)));
     96            this->destroyTimer_.setTimer(rnd(2, 4), false, this, createExecutor(createFunctor(&BigExplosion::stop)));
    9797        }
    9898        this->registerVariables();
     
    366366            this->debrisSmoke4_->setEnabled(false);
    367367
    368         if (Core::isMaster())
     368        if (GameMode::isMaster())
    369369        {
    370370            this->bStop_ = true;
     
    395395
    396396
    397 /*        if (Core::isMaster() && rnd() < dt*(this->cps_))
     397/*        if (GameMode::isMaster() && rnd() < dt*(this->cps_))
    398398        {
    399399
Note: See TracChangeset for help on using the changeset viewer.