~ubuntu-branches/debian/sid/ember/sid

« back to all changes in this revision

Viewing changes to src/components/ogre/model/AnimationSet.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2009-10-22 23:21:17 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20091022232117-isr8u3402qmu7ilo
Tags: 0.5.7-1
* New upstream release.
  - Compile against current ogre (Closes: #551431)
  - Removed debian/patches/ember-gcc4.4.patch. Merged upstream.
  - Updated Depends on ember-media.
* Add libboost-thread-dev tp Build-Depends.
* Make debian/rules independent from upstream version.
* Updated watch file to allow automatic download of new upstream
  tarballs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
2
// C++ Interface: AnimationSet
3
3
//
4
 
// Description: 
 
4
// Description:
5
5
//
6
6
//
7
7
// Author: Erik Hjortsberg <erik.hjortsberg@gmail.com>, (C) 2005
10
10
// it under the terms of the GNU General Public License as published by
11
11
// the Free Software Foundation; either version 2 of the License, or
12
12
// (at your option) any later version.
13
 
// 
 
13
//
14
14
// This program is distributed in the hope that it will be useful,
15
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
17
// GNU General Public License for more details.
18
 
// 
 
18
//
19
19
// You should have received a copy of the GNU General Public License
20
20
// along with this program; if not, write to the Free Software
21
21
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.//
24
24
#define EMBEROGREANIMATIONSET_H
25
25
#include "components/ogre/EmberOgrePrerequisites.h"
26
26
 
 
27
#include <vector>
 
28
 
27
29
// #include "ModelDefinition.h"
28
30
 
29
31
namespace EmberOgre {
49
51
        Animation(int iterations);
50
52
        void addAnimationPart(AnimationPart part);
51
53
        void setEnabled(bool state);
52
 
        
 
54
 
53
55
        void addTime(Ogre::Real timeSlice);
54
56
        void setTime(Ogre::Real time);
55
 
        
 
57
 
56
58
        int getIterations() const;
57
59
        Ogre::Real getLengthOfOneIteration() const;
58
60
protected:
66
68
public:
67
69
        AnimationSet();
68
70
        ~AnimationSet();
69
 
        
 
71
 
70
72
        /**
71
 
         * Adds time to the animation, thus advancing it. 
72
 
         * @param timeSlice The time to add in seconds. 
73
 
         * @param continueAnimation Upon completion, this is either true if the animation hasn't been completed yet, or false if has completed. 
 
73
         * Adds time to the animation, thus advancing it.
 
74
         * @param timeSlice The time to add in seconds.
 
75
         * @param continueAnimation Upon completion, this is either true if the animation hasn't been completed yet, or false if has completed.
74
76
         */
75
77
        void addTime(Ogre::Real timeSlice, bool& continueAnimation);
76
 
        
 
78
 
77
79
        /**
78
 
         * Adds time to the animation, thus advancing it. 
79
 
         * @param timeSlice The time to add in seconds. 
 
80
         * Adds time to the animation, thus advancing it.
 
81
         * @param timeSlice The time to add in seconds.
80
82
         */
81
83
        void addTime(Ogre::Real timeSlice);
82
 
        
 
84
 
83
85
        /**
84
 
         * Adds a single animation to this set. 
85
 
         * @param animation 
 
86
         * Adds a single animation to this set.
 
87
         * @param animation
86
88
         */
87
89
        void addAnimation(Animation animation);
88
 
        
89
 
        
 
90
 
 
91
 
90
92
        /**
91
93
         *    Resets the animations to it's initial status, also disabling it.
92
94
         */
93
95
        void reset();
94
 
        
 
96
 
95
97
        /**
96
 
         *    returns true if all animation parts have been played 
97
 
         * @return 
 
98
         *    returns true if all animation parts have been played
 
99
         * @return
98
100
         */
99
101
//      bool hasCompleted() const;
100
102