Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2013, 2:08:46 PM (11 years ago)
Author:
zifloria
Message:

new Explosions!!!

Location:
code/branches/invaders/src/orxonox/worldentities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/invaders/src/orxonox/worldentities/BigExplosion.cc

    r9667 r9837  
    4343    RegisterClass(BigExplosion);
    4444
    45     BigExplosion::BigExplosion(Context* context) : StaticEntity(context)
     45    BigExplosion::BigExplosion(Context* context) : MobileEntity(context)
    4646    {
    4747        RegisterObject(BigExplosion);
     
    100100        this->debris4_->setSyncMode(0);
    101101
    102         this->explosion_ = new StaticEntity(this->getContext());
     102        this->explosion_ = new MobileEntity(this->getContext());
    103103        this->explosion_->setSyncMode(0);
    104104
  • code/branches/invaders/src/orxonox/worldentities/BigExplosion.h

    r9667 r9837  
    2222 *   Author:
    2323 *      Benjamin de Capitani
    24  *   Co-authors:
     24 *   Co-authors:§
    2525 *      ...
    2626 *
     
    3333
    3434#include "tools/Timer.h"
    35 #include "StaticEntity.h"
     35#include "MobileEntity.h"
    3636
    3737namespace orxonox
    3838{
    39     class _OrxonoxExport BigExplosion : public StaticEntity
     39    class _OrxonoxExport BigExplosion : public MobileEntity
    4040    {
    4141        public:
     
    6060            bool                  bStop_;
    6161
    62             StaticEntity*         explosion_;
     62            MobileEntity*         explosion_;
    6363
    6464            MovableEntity*        debrisEntity1_;
  • code/branches/invaders/src/orxonox/worldentities/pawns/Pawn.cc

    r9667 r9837  
    367367        BigExplosion* chunk = new BigExplosion(this->getContext());
    368368        chunk->setPosition(this->getPosition());
     369        chunk->setVelocity(this->getVelocity());
    369370
    370371    }
Note: See TracChangeset for help on using the changeset viewer.