This commit is contained in:
Paul 2001-01-25 17:43:10 +00:00
parent 61f98dba74
commit 5ce690c469
2 changed files with 130 additions and 5 deletions

View file

@ -38,6 +38,31 @@ public:
void enter(class CPlayer *_player);
void think(class CPlayer *_player);
private:
typedef struct
{
int m_startFrame; // Or -1 for none
int m_loopFrame; // Must exist
int m_endFrame; // Or -1 for none
int m_loopCount; // Number of times to run m_loopFrame;
} IdleAnims;
typedef enum
{
ANIMSTATE_START,
ANIMSTATE_LOOP,
ANIMSTATE_END,
} ANIMSTATE;
void setNextIdleAnim(class CPlayer *_player);
int m_idleTime; // Number of idle anims that have been started
int m_currentIdleAnim;
ANIMSTATE m_animState;
int m_loopCount; // Number of times to loop middle section of anim
static IdleAnims s_idleAnims[];
static int s_numIdleAnims;
};