diff options
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFlyStraight.h')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFlyStraight.h | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFlyStraight.h b/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFlyStraight.h index 7a7fe81..04d66fd 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFlyStraight.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFlyStraight.h | |||
@@ -1,60 +1,60 @@ | |||
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_SCENE_NODE_ANIMATOR_FLY_STRAIGHT_H_INCLUDED__ | 5 | #ifndef __C_SCENE_NODE_ANIMATOR_FLY_STRAIGHT_H_INCLUDED__ |
6 | #define __C_SCENE_NODE_ANIMATOR_FLY_STRAIGHT_H_INCLUDED__ | 6 | #define __C_SCENE_NODE_ANIMATOR_FLY_STRAIGHT_H_INCLUDED__ |
7 | 7 | ||
8 | #include "ISceneNodeAnimatorFinishing.h" | 8 | #include "ISceneNodeAnimatorFinishing.h" |
9 | 9 | ||
10 | namespace irr | 10 | namespace irr |
11 | { | 11 | { |
12 | namespace scene | 12 | namespace scene |
13 | { | 13 | { |
14 | class CSceneNodeAnimatorFlyStraight : public ISceneNodeAnimatorFinishing | 14 | class CSceneNodeAnimatorFlyStraight : public ISceneNodeAnimatorFinishing |
15 | { | 15 | { |
16 | public: | 16 | public: |
17 | 17 | ||
18 | //! constructor | 18 | //! constructor |
19 | CSceneNodeAnimatorFlyStraight(const core::vector3df& startPoint, | 19 | CSceneNodeAnimatorFlyStraight(const core::vector3df& startPoint, |
20 | const core::vector3df& endPoint, | 20 | const core::vector3df& endPoint, |
21 | u32 timeForWay, | 21 | u32 timeForWay, |
22 | bool loop, u32 now, bool pingpong); | 22 | bool loop, u32 now, bool pingpong); |
23 | 23 | ||
24 | //! animates a scene node | 24 | //! animates a scene node |
25 | virtual void animateNode(ISceneNode* node, u32 timeMs); | 25 | virtual void animateNode(ISceneNode* node, u32 timeMs); |
26 | 26 | ||
27 | //! Writes attributes of the scene node animator. | 27 | //! Writes attributes of the scene node animator. |
28 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const; | 28 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const; |
29 | 29 | ||
30 | //! Reads attributes of the scene node animator. | 30 | //! Reads attributes of the scene node animator. |
31 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0); | 31 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0); |
32 | 32 | ||
33 | //! Returns type of the scene node animator | 33 | //! Returns type of the scene node animator |
34 | virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_FLY_STRAIGHT; } | 34 | virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_FLY_STRAIGHT; } |
35 | 35 | ||
36 | //! Creates a clone of this animator. | 36 | //! Creates a clone of this animator. |
37 | /** Please note that you will have to drop | 37 | /** Please note that you will have to drop |
38 | (IReferenceCounted::drop()) the returned pointer after calling this. */ | 38 | (IReferenceCounted::drop()) the returned pointer after calling this. */ |
39 | virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0); | 39 | virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0); |
40 | 40 | ||
41 | private: | 41 | private: |
42 | 42 | ||
43 | void recalculateIntermediateValues(); | 43 | void recalculateIntermediateValues(); |
44 | 44 | ||
45 | core::vector3df Start; | 45 | core::vector3df Start; |
46 | core::vector3df End; | 46 | core::vector3df End; |
47 | core::vector3df Vector; | 47 | core::vector3df Vector; |
48 | f32 TimeFactor; | 48 | f32 TimeFactor; |
49 | u32 StartTime; | 49 | u32 StartTime; |
50 | u32 TimeForWay; | 50 | u32 TimeForWay; |
51 | bool Loop; | 51 | bool Loop; |
52 | bool PingPong; | 52 | bool PingPong; |
53 | }; | 53 | }; |
54 | 54 | ||
55 | 55 | ||
56 | } // end namespace scene | 56 | } // end namespace scene |
57 | } // end namespace irr | 57 | } // end namespace irr |
58 | 58 | ||
59 | #endif | 59 | #endif |
60 | 60 | ||