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);
124 bool GetTimelineInterval(
int currentTick,
int &interval);
142 virtual bool Evaluate (
float currentTick,
int &interval,
float &fraction);
162 void Adjust(
int time,
int delta,
bool doall =
true);
170 void AdjustRelative(
int time,
int delta);
191 int AddKeyframeInternal(
int t,
bool *doesExist);
198 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:154
float GetCurrentTick()
Definition: HBhvTimeline.h:148
void DeleteKeyframe(int keyframe)
void SetCurrentRelativeTick(float tick)
Definition: HBhvTimeline.h:180
VArray< int > m_pTimelineArray
This is for internal use only.
Definition: HBhvTimeline.h:199
int GetTimelineArrayLength()
Definition: HBhvTimeline.h:75
float GetCurrentRelativeTick()
Definition: HBhvTimeline.h:174
float GetStartTick()
Definition: HBhvTimeline.h:133
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:145
float m_CurrentRelativeTick
This is for internal use only.
Definition: HBhvTimeline.h:206
HBhvTimeline * m_pInstancedTimeline
This is for internal use only.
Definition: HBhvTimeline.h:202
static void * XMLCallback(HUtilityXMLTag *xt, bool open, void *m_pExtraData)
void SetStartTick(float starttick)
Definition: HBhvTimeline.h:130
float m_CurrentTick
This is for internal use only.
Definition: HBhvTimeline.h:205
HBhvAnimation * m_pAnimation
This is for internal use only.
Definition: HBhvTimeline.h:201
float m_StartTick
This is for internal use only.
Definition: HBhvTimeline.h:204
void SetTimeline(HBhvTimeline *timeline)