diff --git a/source/player/pschop.cpp b/source/player/pschop.cpp new file mode 100644 index 000000000..5a6adedb8 --- /dev/null +++ b/source/player/pschop.cpp @@ -0,0 +1,88 @@ + +/*========================================================================= + + pschop.cpp + + Author: PKG + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#include "player\pschop.h" + +#ifndef __PLAYER_PLAYER_H__ +#include "player\player.h" +#endif + +#ifndef __PAD_PADS_H__ +#include "pad\pads.h" +#endif + + + + +/* Std Lib + ------- */ + +/* Data + ---- */ + +#ifndef __ANIM_PLAYER_ANIM_HEADER__ +#include +#endif + + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +/*---------------------------------------------------------------------- + Function Prototypes + ------------------- */ + +/*---------------------------------------------------------------------- + Vars + ---- */ + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ +void CPlayerStateChop::enter(CPlayer *_player) +{ + setAnimNo(_player,ANIM_PLAYER_ANIM_KARATE); +} + + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ +void CPlayerStateChop::think(CPlayer *_player) +{ + if(advanceAnimFrameAndCheckForEndOfAnim(_player)) + { + setState(_player,STATE_IDLE); + } +} + + +/*=========================================================================== + end */ diff --git a/source/player/pschop.h b/source/player/pschop.h new file mode 100644 index 000000000..f4802f030 --- /dev/null +++ b/source/player/pschop.h @@ -0,0 +1,60 @@ +/*========================================================================= + + pschop.h + + Author: PKG + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __PLAYER_PSCHOP_H__ +#define __PLAYER_PSCHOP_H__ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#include "player\pstates.h" + + +/* Std Lib + ------- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +class CPlayerStateChop : public CPlayerState +{ +public: + void enter(class CPlayer *_player); + void think(class CPlayer *_player); + +}; + + +/*---------------------------------------------------------------------- + Globals + ------- */ + +/*---------------------------------------------------------------------- + Functions + --------- */ + +/*---------------------------------------------------------------------- */ + +#endif /* __PLAYER_PSCHOP_H__ */ + +/*=========================================================================== + end */ + + +