IParticleAttractionAffector.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 __I_PARTICLE_ATTRACTION_AFFECTOR_H_INCLUDED__
  5. #define __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 whether or not the particles are attracting or detracting
  18. virtual void setAttract( bool attract ) = 0;
  19. //! Set whether or not this will affect particles in the X direction
  20. virtual void setAffectX( bool affect ) = 0;
  21. //! Set whether or not this will affect particles in the Y direction
  22. virtual void setAffectY( bool affect ) = 0;
  23. //! Set whether or not this will affect particles in the Z direction
  24. virtual void setAffectZ( bool affect ) = 0;
  25. //! Get the point that particles are attracted to
  26. virtual const core::vector3df& getPoint() const = 0;
  27. //! Get whether or not the particles are attracting or detracting
  28. virtual bool getAttract() const = 0;
  29. //! Get whether or not the particles X position are affected
  30. virtual bool getAffectX() const = 0;
  31. //! Get whether or not the particles Y position are affected
  32. virtual bool getAffectY() const = 0;
  33. //! Get whether or not the particles Z position are affected
  34. virtual bool getAffectZ() const = 0;
  35. //! Get emitter type
  36. virtual E_PARTICLE_AFFECTOR_TYPE getType() const { return EPAT_ATTRACT; }
  37. };
  38. } // end namespace scene
  39. } // end namespace irr
  40. #endif // __I_PARTICLE_ATTRACTION_AFFECTOR_H_INCLUDED__