Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Animation.h

Go to the documentation of this file.
00001 #ifndef _ANIMATION_H_
00002 #define _ANIMATION_H_
00003 
00004 #include "Vector3.h"
00005 
00006 enum
00007 {
00008   LEFTHAND,
00009   RIGHTHAND,
00010   LEFTHIP,
00011   RIGHTHIP,
00012   LEFTSHOULDER,
00013   RIGHTSHOULDER,
00014   FLOOR
00015 };
00016 
00026 class Animation
00027 {
00028  public:
00029   Animation() { _mustFinish = false; _animation = 0; _position = LEFTHAND; }
00030   virtual ~Animation() { }
00031 
00032   void setAnimation(int t) { _animation = t; }
00033   int getAnimation() { return _animation; }
00034 
00035   void setPosition(int i) { _position = i; }
00036   int getPosition() { return _position; }
00037 
00038   void setExtraRotate(Vector3 v) { _extraRotate = v; }
00039   Vector3 getExtraRotate() { return _extraRotate; }
00040 
00041   void setMustFinish(bool t) { _mustFinish = t; }
00042   bool mustFinish() { return _mustFinish; }
00043 
00044  protected:
00045   int _animation;
00046   int _position;
00047 
00054   bool _mustFinish;
00055 
00060   Vector3 _extraRotate;
00061   Vector3 _extraTranslate;
00062 };
00063 
00064 #endif

Generated on Wed Apr 21 11:10:53 2004 for naturecalls by doxygen1.2.18