28 #ifndef HPL_ANIMATION_STATE_H 29 #define HPL_ANIMATION_STATE_H 31 #include "hpl1/engine/graphics/GraphicsTypes.h" 32 #include "hpl1/engine/math/MathTypes.h" 33 #include "hpl1/engine/system/SystemTypes.h" 35 #include "hpl1/engine/game/SaveGame.h" 40 class cAnimationManager;
63 float mfSpecialEventTime;
66 virtual int GetSaveCreatePrio();
74 eAnimationEventType mType;
88 const char *GetName() {
return msName.c_str(); }
90 void Update(
float afTimeStep);
99 void FadeIn(
float afTime);
100 void FadeOut(
float afTime);
102 void SetLength(
float afLength);
105 void SetWeight(
float afWeight);
108 void SetSpeed(
float afSpeed);
111 void SetBaseSpeed(
float afSpeed);
112 float GetBaseSpeed();
114 void SetTimePosition(
float afPosition);
115 float GetTimePosition();
116 float GetPreviousTimePosition();
122 void SetRelativeTimePosition(
float afPosition);
127 float GetRelativeTimePosition();
130 void SetActive(
bool abActive);
133 void SetLoop(
bool abLoop);
136 void SetPaused(
bool abPaused);
138 void SetSpecialEventTime(
float afT) { mfSpecialEventTime = afT; }
139 float GetSpecialEventTime() {
return mfSpecialEventTime; }
140 bool IsAfterSpecialEvent();
141 bool IsBeforeSpecialEvent();
143 void AddTimePosition(
float afAdd);
151 float GetFadeStep() {
return mfFadeStep; }
152 void SetFadeStep(
float afX) { mfFadeStep = afX; }
156 virtual void SaveToSaveData(
iSaveData *apSaveData);
157 virtual void LoadFromSaveData(
iSaveData *apSaveData);
178 float mfSpecialEventTime;
190 #endif // HPL_ANIMATION_STATE_H
Definition: AnimationState.h:80
Definition: SaveGame.h:130
Definition: Animation.h:44
Definition: AnimationManager.h:39
Definition: SaveGame.h:111
Definition: SaveGame.h:183
Definition: AnimationState.h:44
Definition: AnimationState.h:71