diff options
author | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
commit | 959831f4ef5a3e797f576c3de08cd65032c997ad (patch) | |
tree | e7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/CParticleGravityAffector.h | |
parent | Add info about changes to Irrlicht. (diff) | |
download | SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2 SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz |
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CParticleGravityAffector.h | 128 |
1 files changed, 64 insertions, 64 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CParticleGravityAffector.h b/libraries/irrlicht-1.8/source/Irrlicht/CParticleGravityAffector.h index 5491b51..6eff340 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CParticleGravityAffector.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/CParticleGravityAffector.h | |||
@@ -1,64 +1,64 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | 1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt |
2 | // This file is part of the "Irrlicht Engine". | 2 | // This file is part of the "Irrlicht Engine". |
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | 3 | // For conditions of distribution and use, see copyright notice in irrlicht.h |
4 | 4 | ||
5 | #ifndef __C_PARTICLE_GRAVITY_AFFECTOR_H_INCLUDED__ | 5 | #ifndef __C_PARTICLE_GRAVITY_AFFECTOR_H_INCLUDED__ |
6 | #define __C_PARTICLE_GRAVITY_AFFECTOR_H_INCLUDED__ | 6 | #define __C_PARTICLE_GRAVITY_AFFECTOR_H_INCLUDED__ |
7 | 7 | ||
8 | #include "IParticleGravityAffector.h" | 8 | #include "IParticleGravityAffector.h" |
9 | #include "SColor.h" | 9 | #include "SColor.h" |
10 | 10 | ||
11 | namespace irr | 11 | namespace irr |
12 | { | 12 | { |
13 | namespace scene | 13 | namespace scene |
14 | { | 14 | { |
15 | 15 | ||
16 | //! Particle Affector for affecting direction of particle | 16 | //! Particle Affector for affecting direction of particle |
17 | class CParticleGravityAffector : public IParticleGravityAffector | 17 | class CParticleGravityAffector : public IParticleGravityAffector |
18 | { | 18 | { |
19 | public: | 19 | public: |
20 | 20 | ||
21 | CParticleGravityAffector( | 21 | CParticleGravityAffector( |
22 | const core::vector3df& gravity = core::vector3df(0.0f,-0.03f,0.0f), | 22 | const core::vector3df& gravity = core::vector3df(0.0f,-0.03f,0.0f), |
23 | u32 timeForceLost = 1000); | 23 | u32 timeForceLost = 1000); |
24 | 24 | ||
25 | //! Affects a particle. | 25 | //! Affects a particle. |
26 | virtual void affect(u32 now, SParticle* particlearray, u32 count); | 26 | virtual void affect(u32 now, SParticle* particlearray, u32 count); |
27 | 27 | ||
28 | //! Set the time in milliseconds when the gravity force is totally | 28 | //! Set the time in milliseconds when the gravity force is totally |
29 | //! lost and the particle does not move any more. | 29 | //! lost and the particle does not move any more. |
30 | virtual void setTimeForceLost( f32 timeForceLost ) { TimeForceLost = timeForceLost; } | 30 | virtual void setTimeForceLost( f32 timeForceLost ) { TimeForceLost = timeForceLost; } |
31 | 31 | ||
32 | //! Set the direction and force of gravity. | 32 | //! Set the direction and force of gravity. |
33 | virtual void setGravity( const core::vector3df& gravity ) { Gravity = gravity; } | 33 | virtual void setGravity( const core::vector3df& gravity ) { Gravity = gravity; } |
34 | 34 | ||
35 | //! Set the time in milliseconds when the gravity force is totally | 35 | //! Set the time in milliseconds when the gravity force is totally |
36 | //! lost and the particle does not move any more. | 36 | //! lost and the particle does not move any more. |
37 | virtual f32 getTimeForceLost() const { return TimeForceLost; } | 37 | virtual f32 getTimeForceLost() const { return TimeForceLost; } |
38 | 38 | ||
39 | //! Set the direction and force of gravity. | 39 | //! Set the direction and force of gravity. |
40 | virtual const core::vector3df& getGravity() const { return Gravity; } | 40 | virtual const core::vector3df& getGravity() const { return Gravity; } |
41 | 41 | ||
42 | //! Writes attributes of the object. | 42 | //! Writes attributes of the object. |
43 | //! Implement this to expose the attributes of your scene node animator for | 43 | //! Implement this to expose the attributes of your scene node animator for |
44 | //! scripting languages, editors, debuggers or xml serialization purposes. | 44 | //! scripting languages, editors, debuggers or xml serialization purposes. |
45 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; | 45 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; |
46 | 46 | ||
47 | //! Reads attributes of the object. | 47 | //! Reads attributes of the object. |
48 | //! Implement this to set the attributes of your scene node animator for | 48 | //! Implement this to set the attributes of your scene node animator for |
49 | //! scripting languages, editors, debuggers or xml deserialization purposes. | 49 | //! scripting languages, editors, debuggers or xml deserialization purposes. |
50 | //! \param startIndex: start index where to start reading attributes. | 50 | //! \param startIndex: start index where to start reading attributes. |
51 | //! \return: returns last index of an attribute read by this affector | 51 | //! \return: returns last index of an attribute read by this affector |
52 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); | 52 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); |
53 | 53 | ||
54 | private: | 54 | private: |
55 | f32 TimeForceLost; | 55 | f32 TimeForceLost; |
56 | core::vector3df Gravity; | 56 | core::vector3df Gravity; |
57 | }; | 57 | }; |
58 | 58 | ||
59 | } // end namespace scene | 59 | } // end namespace scene |
60 | } // end namespace irr | 60 | } // end namespace irr |
61 | 61 | ||
62 | 62 | ||
63 | #endif | 63 | #endif |
64 | 64 | ||