This commit is contained in:
parent
04e3ffa7bb
commit
a75e84604c
18 changed files with 183 additions and 118 deletions
|
@ -20,6 +20,10 @@
|
|||
|
||||
#include "player\pstates.h"
|
||||
|
||||
#ifndef __ANIM_SPONGEBOB_HEADER__
|
||||
#include <ACTOR_SPONGEBOB_ANIM.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Std Lib
|
||||
------- */
|
||||
|
@ -38,8 +42,22 @@ public:
|
|||
void enter(class CPlayerModeBase *_playerMode);
|
||||
void think(class CPlayerModeBase *_playerMode);
|
||||
|
||||
protected:
|
||||
virtual int getStartFrame() {return ANIM_SPONGEBOB_FIRE;}
|
||||
virtual int getLoopFrame() {return ANIM_SPONGEBOB_RUN;}
|
||||
virtual int getEndFrame() {return ANIM_SPONGEBOB_FIRE;}
|
||||
|
||||
private:
|
||||
int m_numberOfTimeAnimHasLooped;
|
||||
int m_numberOfTimesAnimHasLooped;
|
||||
};
|
||||
|
||||
|
||||
class CPlayerStateWalk : public CPlayerStateRun
|
||||
{
|
||||
protected:
|
||||
virtual int getStartFrame() {return -1;}
|
||||
virtual int getLoopFrame() {return ANIM_SPONGEBOB_WALK;}
|
||||
virtual int getEndFrame() {return -1;}
|
||||
};
|
||||
|
||||
|
||||
|
@ -47,6 +65,10 @@ private:
|
|||
Globals
|
||||
------- */
|
||||
|
||||
extern CPlayerStateRun s_stateRun;
|
||||
extern CPlayerStateWalk s_stateWalk;
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Functions
|
||||
--------- */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue