arsa  2.7
IParticleGravityAffector.h
Go to the documentation of this file.
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 
5 #ifndef __I_PARTICLE_GRAVITY_AFFECTOR_H_INCLUDED__
6 #define __I_PARTICLE_GRAVITY_AFFECTOR_H_INCLUDED__
7 
8 #include "IParticleAffector.h"
9 
10 namespace irr
11 {
12 namespace scene
13 {
14 
17 {
18 public:
19 
21 
22  virtual void setTimeForceLost( f32 timeForceLost ) = 0;
23 
25  virtual void setGravity( const core::vector3df& gravity ) = 0;
26 
28  virtual f32 getTimeForceLost() const = 0;
29 
31  virtual const core::vector3df& getGravity() const = 0;
32 
35 };
36 
37 } // end namespace scene
38 } // end namespace irr
39 
40 
41 #endif // __I_PARTICLE_GRAVITY_AFFECTOR_H_INCLUDED__
42 
float f32
32 bit floating point variable.
Definition: irrTypes.h:108
E_PARTICLE_AFFECTOR_TYPE
Types of built in particle affectors.
virtual E_PARTICLE_AFFECTOR_TYPE getType() const _IRR_OVERRIDE_
Get emitter type.
Everything in the Irrlicht Engine can be found in this namespace.
Definition: CARSADPad.h:6
A particle affector modifies particles.
virtual f32 getTimeForceLost() const =0
Get the time in milliseconds when the gravity force is totally lost.
virtual void setTimeForceLost(f32 timeForceLost)=0
Set the time in milliseconds when the gravity force is totally lost.
virtual const core::vector3df & getGravity() const =0
Get the direction and force of gravity.
#define _IRR_OVERRIDE_
Defines an override macro, to protect virtual functions from typos and other mismatches.
Definition: irrTypes.h:216
virtual void setGravity(const core::vector3df &gravity)=0
Set the direction and force of gravity in all 3 dimensions.
#define const
Definition: zconf.h:217
A particle affector which applies gravity to particles.