5#ifndef DCPP_I_PARTICLE_ATTRACTION_AFFECTOR_HPP_INCLUDED
6#define DCPP_I_PARTICLE_ATTRACTION_AFFECTOR_HPP_INCLUDED
8#include <duckcpp/core/engine/IParticleAffector.hpp>
3d vector template class with lots of operators and methods.
Definition vector3d.hpp:32
A particle affector modifies particles.
Definition IParticleAffector.hpp:42
virtual void affect(dcpp::uint32_kt now, SParticle *particlearray, dcpp::uint32_kt count)=0
Affects an array of particles.
A particle affector which attracts or detracts particles.
Definition IParticleAttractionAffector.hpp:17
virtual void setAffectY(bool affect)=0
Set whether or not this will affect particles in the Y direction.
virtual void setPoint(const dcpp::nub::vector3df &point)=0
Set the point that particles will attract to.
virtual bool getAffectZ() const =0
Get whether or not the particles Z position are affected.
virtual dcpp::float32_kt getSpeed() const =0
Get the speed that points attract to the specified point.
virtual void setAffectZ(bool affect)=0
Set whether or not this will affect particles in the Z direction.
virtual const dcpp::nub::vector3df & getPoint() const =0
Get the point that particles are attracted to.
virtual bool getAffectX() const =0
Get whether or not the particles X position are affected.
virtual void setAffectX(bool affect)=0
Set whether or not this will affect particles in the X direction.
virtual bool getAttract() const =0
Get whether or not the particles are attracting or detracting.
virtual E_PARTICLE_AFFECTOR_TYPE getType() const override
Get emitter type.
Definition IParticleAttractionAffector.hpp:57
virtual void setSpeed(dcpp::float32_kt speed)=0
Set the speed, in game units per second that the particles will attract to the specified point.
virtual void setAttract(bool attract)=0
Set whether or not the particles are attracting or detracting.
virtual bool getAffectY() const =0
Get whether or not the particles Y position are affected.
E_PARTICLE_AFFECTOR_TYPE
Types of built in particle affectors.
Definition IParticleAffector.hpp:18
As of Duckcpp 1.6, position2d is a synonym for vector2d.
Definition shared_device.hpp:34
float float32_kt
32 bit floating point variable.
Definition irrTypes.hpp:108