10 #ifndef _H_HBhvTimeline_H 11 #define _H_HBhvTimeline_H 22 class HBhvTimelineInstance;
23 class HUtilityXMLGenerator;
29 template class MVO_API VArray< int >;
83 int AddKeyframe(
int t,
bool &doesExist);
89 int AddKeyframe(
int t);
102 int CheckKeyframe(
int t);
107 void Serialize(HUtilityXMLGenerator *xmlgen);
112 static void *
XMLCallback(HUtilityXMLTag *xt,
bool open,
void *m_pExtraData);
127 bool GetTimelineInterval(
int currentTick,
int &interval);
145 virtual bool Evaluate (
float currentTick,
int &interval,
float &fraction);
165 void Adjust(
int time,
int delta,
bool doall =
true);
173 void AdjustRelative(
int time,
int delta);
194 int AddKeyframeInternal(
int t,
bool *doesExist);
201 float AdjustTickToTimeline(
float tick);
The HBhvTimeline class encpasulates an animation timeline.
Definition: HBhvTimeline.h:38
void SetAnimation(HBhvAnimation *animation)
Definition: HBhvTimeline.h:59
void SetInstancedTimeline(HBhvTimeline *timeline)
Definition: HBhvTimeline.h:157
float GetCurrentTick()
Definition: HBhvTimeline.h:151
void DeleteKeyframe(int keyframe)
void SetCurrentRelativeTick(float tick)
Definition: HBhvTimeline.h:183
VArray< int > m_pTimelineArray
This is for internal use only.
Definition: HBhvTimeline.h:202
int GetTimelineArrayLength()
Definition: HBhvTimeline.h:75
float GetCurrentRelativeTick()
Definition: HBhvTimeline.h:177
float GetStartTick()
Definition: HBhvTimeline.h:136
HBhvAnimation * CreateInstance()
int * GetTimelineArray()
Definition: HBhvTimeline.h:72
virtual void Serialize(HUtilityXMLGenerator *xmlgen, HUtilityXMLTag *xmlt)
The HBhvAnimation class defines an animation.
Definition: HBhvAnimation.h:43
HBhvAnimation * GetAnimation()
Definition: HBhvTimeline.h:148
float m_CurrentRelativeTick
This is for internal use only.
Definition: HBhvTimeline.h:209
HBhvTimeline * m_pInstancedTimeline
This is for internal use only.
Definition: HBhvTimeline.h:205
static void * XMLCallback(HUtilityXMLTag *xt, bool open, void *m_pExtraData)
void SetStartTick(float starttick)
Definition: HBhvTimeline.h:133
float m_CurrentTick
This is for internal use only.
Definition: HBhvTimeline.h:208
HBhvAnimation * m_pAnimation
This is for internal use only.
Definition: HBhvTimeline.h:204
float m_StartTick
This is for internal use only.
Definition: HBhvTimeline.h:207
void SetTimeline(HBhvTimeline *timeline)