IParticleAttractionAffector.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // Copyright (C) 2002-2012 Nikolaus Gebhardt
  2. // This file is part of the "Irrlicht Engine".
  3. // For conditions of distribution and use, see copyright notice in irrlicht.h
  4. #ifndef IRR_I_PARTICLE_ATTRACTION_AFFECTOR_H_INCLUDED
  5. #define IRR_I_PARTICLE_ATTRACTION_AFFECTOR_H_INCLUDED
  6. #include "IParticleAffector.h"
  7. namespace irr
  8. {
  9. namespace scene
  10. {
  11. //! A particle affector which attracts or detracts particles.
  12. class IParticleAttractionAffector : public IParticleAffector
  13. {
  14. public:
  15. //! Set the point that particles will attract to
  16. virtual void setPoint( const core::vector3df& point ) = 0;
  17. //! Set the speed, in game units per second that the particles will attract to the specified point
  18. virtual void setSpeed( f32 speed ) =0;
  19. //! Set whether or not the particles are attracting or detracting
  20. virtual void setAttract( bool attract ) = 0;
  21. //! Set whether or not this will affect particles in the X direction
  22. virtual void setAffectX( bool affect ) = 0;
  23. //! Set whether or not this will affect particles in the Y direction
  24. virtual void setAffectY( bool affect ) = 0;
  25. //! Set whether or not this will affect particles in the Z direction
  26. virtual void setAffectZ( bool affect ) = 0;
  27. //! Get the point that particles are attracted to
  28. virtual const core::vector3df& getPoint() const = 0;
  29. //! Get the speed that points attract to the specified point
  30. virtual f32 getSpeed() const =0;
  31. //! Get whether or not the particles are attracting or detracting
  32. virtual bool getAttract() const = 0;
  33. //! Get whether or not the particles X position are affected
  34. virtual bool getAffectX() const = 0;
  35. //! Get whether or not the particles Y position are affected
  36. virtual bool getAffectY() const = 0;
  37. //! Get whether or not the particles Z position are affected
  38. virtual bool getAffectZ() const = 0;
  39. //! Get emitter type
  40. virtual E_PARTICLE_AFFECTOR_TYPE getType() const IRR_OVERRIDE { return EPAT_ATTRACT; }
  41. };
  42. } // end namespace scene
  43. } // end namespace irr
  44. #endif // IRR_I_PARTICLE_ATTRACTION_AFFECTOR_H_INCLUDED