ParticuleSimple.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 namespace ege {
9  class ParticuleSimple;
10 };
11 
12 #include <etk/types.hpp>
13 #include <etk/math/Vector2D.hpp>
14 #include <etk/math/Vector3D.hpp>
15 #include <etk/math/Vector4D.hpp>
16 #include <ege/Environement.hpp>
17 #include <ege/Particule.hpp>
18 
19 
20 namespace ege {
26  class ParticuleSimple : public Particule {
27  public:
33  ParticuleSimple(ege::ParticuleEngine* _particuleEngine, const char* _particuleType);
37  virtual ~ParticuleSimple() { };
38  public: // herited elements:
39  virtual void update(float _delta);
40  //virtual void draw() { };
41  virtual bool needRemove();
42  virtual void init();
43  protected:
44  float m_lifeFull;
45  float m_life;
46  float m_level;
47  vec3 m_pos;
48  float m_angle;
49  vec3 m_speed;
50  vec3 m_scale;
51  vec3 m_scaleExpand;
52  public:
56  virtual void setLife(float _life);
57  virtual void setLevel(float _level);
58  virtual void setPosition(const vec3& _pos);
59  virtual void setAngle(float _angle);
60  virtual void setMoveSpeed(const vec3& _speed);
61  virtual void setScale(const vec3& _scale);
62  virtual void setScaleExpend(const vec3& _scaleExpand);
63  };
64 }
65 
66 
virtual ~ParticuleSimple()
Destructor.
Definition: ParticuleSimple.hpp:37
virtual void update(float _delta)
update the paticule properties
Definition: AudioElement.hpp:8
Definition: ParticuleEngine.hpp:16
virtual bool needRemove()
Check if the element might be removed.
The particule class is an element with no control, when it will be created, it does not have any cont...
Definition: ParticuleSimple.hpp:26
The particule class is an element with no control, when it will be created, it does not have any cont...
Definition: Particule.hpp:23
virtual void init()
init the particule
ParticuleSimple(ege::ParticuleEngine *_particuleEngine, const char *_particuleType)
Constructor.