Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 9, 2015, 3:51:17 PM (9 years ago)
Author:
vaydin
Message:

added ability to attach second particle effect to explosionpart, added ability to define range of velocity of explosionpart

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/explosionChunksHS15/src/orxonox/worldentities/ExplosionPart.h

    r10752 r10786  
    4141#include "core/command/Executor.h"
    4242#include "Scene.h"
     43#include "tools/Timer.h"
    4344
    4445
     
    4950        public:
    5051            ExplosionPart(Context* context);
     52            ~ExplosionPart();
    5153            void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    5254            void Explode();
     55            void stop();
    5356
    5457            void setMesh(const std::string& newString);
    5558            std::string& getMesh();
    56             void setEffect(const std::string& newString);
    57             std::string& getEffect();
     59            void setEffect1(const std::string& newString);
     60            std::string& getEffect1();
     61            void setEffect2(const std::string& newString);
     62            std::string& getEffect2();
     63            void setMinSpeed(float speed);
     64            float getMinSpeed();
     65            void setMaxSpeed(float speed);
     66            float getMaxSpeed();
    5867         
    5968
     
    6574
    6675                Model* model_;
    67                 ParticleInterface* particleInterface_;
     76                ParticleInterface* effect1Particle_;
     77            ParticleInterface* effect2Particle_;
    6878
     79
     80            float minSpeed_;
     81            float maxSpeed_;
    6982                std::string mesh_;
    70                 std::string effect_;
     83                std::string effect1_;
     84            std::string effect2_;
    7185
    7286            MovableEntity* explosionEntity_;
     87
     88            Timer destroyTimer_;
    7389
    7490               
Note: See TracChangeset for help on using the changeset viewer.