~baltix/+junk/irrlicht-test

« back to all changes in this revision

Viewing changes to include/IParticleGravityAffector.h

  • Committer: Mantas Kriaučiūnas
  • Date: 2011-07-18 13:06:25 UTC
  • Revision ID: mantas@akl.lt-20110718130625-c5pvifp61e7kj1ol
Included whole irrlicht SVN libraries to work around launchpad recipe issue with quilt, see https://answers.launchpad.net/launchpad/+question/165193

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (C) 2002-2011 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
 
 
15
//! A particle affector which applies gravity to particles.
 
16
class IParticleGravityAffector : public IParticleAffector
 
17
{
 
18
public:
 
19
 
 
20
        //! Set the time in milliseconds when the gravity force is totally lost
 
21
        /** At that point the particle does not move any more. */
 
22
        virtual void setTimeForceLost( f32 timeForceLost ) = 0;
 
23
 
 
24
        //! Set the direction and force of gravity in all 3 dimensions.
 
25
        virtual void setGravity( const core::vector3df& gravity ) = 0;
 
26
 
 
27
        //! Get the time in milliseconds when the gravity force is totally lost
 
28
        virtual f32 getTimeForceLost() const = 0;
 
29
 
 
30
        //! Get the direction and force of gravity.
 
31
        virtual const core::vector3df& getGravity() const = 0;
 
32
 
 
33
        //! Get emitter type
 
34
        virtual E_PARTICLE_AFFECTOR_TYPE getType() const { return EPAT_GRAVITY; }
 
35
};
 
36
 
 
37
} // end namespace scene
 
38
} // end namespace irr
 
39
 
 
40
 
 
41
#endif // __I_PARTICLE_GRAVITY_AFFECTOR_H_INCLUDED__
 
42