14 #ifndef _H_HBhvTimeline_H
15 #define _H_HBhvTimeline_H
26 class HBhvTimelineInstance;
27 class HUtilityXMLGenerator;
33 template class MVO_API VArray< int >;
87 int AddKeyframe(
int t,
bool &doesExist);
93 int AddKeyframe(
int t);
106 int CheckKeyframe(
int t);
111 void Serialize(HUtilityXMLGenerator *xmlgen);
116 static void *
XMLCallback(HUtilityXMLTag *xt,
bool open,
void *m_pExtraData);
128 bool GetTimelineInterval(
int currentTick,
int &interval);
146 virtual bool Evaluate (
float currentTick,
int &interval,
float &fraction);
166 void Adjust(
int time,
int delta,
bool doall =
true);
174 void AdjustRelative(
int time,
int delta);
195 int AddKeyframeInternal(
int t,
bool *doesExist);
202 float AdjustTickToTimeline(
float tick);
The HBhvTimeline class encpasulates an animation timeline.
Definition: HBhvTimeline.h:42
void SetAnimation(HBhvAnimation *animation)
Definition: HBhvTimeline.h:63
void SetInstancedTimeline(HBhvTimeline *timeline)
Definition: HBhvTimeline.h:158
float GetCurrentTick()
Definition: HBhvTimeline.h:152
void DeleteKeyframe(int keyframe)
void SetCurrentRelativeTick(float tick)
Definition: HBhvTimeline.h:184
VArray< int > m_pTimelineArray
This is for internal use only.
Definition: HBhvTimeline.h:203
int GetTimelineArrayLength()
Definition: HBhvTimeline.h:79
float GetCurrentRelativeTick()
Definition: HBhvTimeline.h:178
float GetStartTick()
Definition: HBhvTimeline.h:137
HBhvAnimation * CreateInstance()
int * GetTimelineArray()
Definition: HBhvTimeline.h:76
virtual void Serialize(HUtilityXMLGenerator *xmlgen, HUtilityXMLTag *xmlt)
The HBhvAnimation class defines an animation.
Definition: HBhvAnimation.h:47
HBhvAnimation * GetAnimation()
Definition: HBhvTimeline.h:149
float m_CurrentRelativeTick
This is for internal use only.
Definition: HBhvTimeline.h:210
HBhvTimeline * m_pInstancedTimeline
This is for internal use only.
Definition: HBhvTimeline.h:206
static void * XMLCallback(HUtilityXMLTag *xt, bool open, void *m_pExtraData)
void SetStartTick(float starttick)
Definition: HBhvTimeline.h:134
float m_CurrentTick
This is for internal use only.
Definition: HBhvTimeline.h:209
HBhvAnimation * m_pAnimation
This is for internal use only.
Definition: HBhvTimeline.h:205
float m_StartTick
This is for internal use only.
Definition: HBhvTimeline.h:208
void SetTimeline(HBhvTimeline *timeline)