From 6128fbd94342befc1265675e72f652565cd19273 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 3 Jul 2001 20:38:36 +0000 Subject: [PATCH] --- source/player/pmswal.cpp | 79 ++++++++++++++++++++++++++++++++++ source/player/pmswal.h | 58 +++++++++++++++++++++++++ source/player/psswal.cpp | 92 ++++++++++++++++++++++++++++++++++++++++ source/player/psswal.h | 58 +++++++++++++++++++++++++ 4 files changed, 287 insertions(+) create mode 100644 source/player/pmswal.cpp create mode 100644 source/player/pmswal.h create mode 100644 source/player/psswal.cpp create mode 100644 source/player/psswal.h diff --git a/source/player/pmswal.cpp b/source/player/pmswal.cpp new file mode 100644 index 000000000..c18810948 --- /dev/null +++ b/source/player/pmswal.cpp @@ -0,0 +1,79 @@ +/*========================================================================= + + pmswal.cpp + + Author: PKG + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#include "player\pmswal.h" + +#ifndef __GAME_GAME_H__ +#include "game\game.h" +#endif + +#ifndef __PLATFORM_PLATFORM_H__ +#include "platform\platform.h" +#endif + + +/* Std Lib + ------- */ + +/* Data + ---- */ + +#ifndef __ANIM_SPONGEBOB_HEADER__ +#include +#endif + + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +/*---------------------------------------------------------------------- + Function Prototypes + ------------------- */ + +/*---------------------------------------------------------------------- + Vars + ---- */ + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ +void CPlayerModeSwallow::enter() +{ + setState( STATE_SWALLOW ); +} + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ +void CPlayerModeSwallow::think() +{ + setState( STATE_SWALLOW ); +} + +/*=========================================================================== +end */ diff --git a/source/player/pmswal.h b/source/player/pmswal.h new file mode 100644 index 000000000..5239d74df --- /dev/null +++ b/source/player/pmswal.h @@ -0,0 +1,58 @@ +/*========================================================================= + + pmswal.h + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __PLAYER_PMSWAL_H__ +#define __PLAYER_PMSWAL_H__ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#ifndef __PLAYER_PMODES_H__ +#include "player\pmodes.h" +#endif + + +/* Std Lib + ------- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +class CPlayerModeSwallow : public CPlayerModeBase +{ +public: + virtual void enter(); + virtual void think(); +}; + + +/*---------------------------------------------------------------------- + Globals + ------- */ + +/*---------------------------------------------------------------------- + Functions + --------- */ + +/*---------------------------------------------------------------------- */ + +#endif /* __PLAYER_PMSWAL_H__ */ + +/*=========================================================================== + end */ diff --git a/source/player/psswal.cpp b/source/player/psswal.cpp new file mode 100644 index 000000000..14ccb37f1 --- /dev/null +++ b/source/player/psswal.cpp @@ -0,0 +1,92 @@ +/*========================================================================= + + psswal.cpp + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#include "player\psswal.h" + +#ifndef __PLAYER_PLAYER_H__ +#include "player\player.h" +#endif + +#ifndef __PLAYER_PMODES_H__ +#include "player\pmodes.h" +#endif + +#ifndef __SOUND_SOUND_H__ +#include "sound\sound.h" +#endif + +#ifndef __PLATFORM_PLATFORM_H__ +#include "platform\platform.h" +#endif + + +/* Std Lib + ------- */ + +/* Data + ---- */ + +#ifndef __ANIM_SPONGEBOB_HEADER__ +#include +#endif + + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +/*---------------------------------------------------------------------- + Function Prototypes + ------------------- */ + +/*---------------------------------------------------------------------- + Vars + ---- */ + +CPlayerStateSwallow s_stateSwallow; + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ +void CPlayerStateSwallow::enter(CPlayerModeBase *_playerMode) +{ + _playerMode->setAnimNo(ANIM_SPONGEBOB_DONOTDRAW); +} + + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ +void CPlayerStateSwallow::think(CPlayerModeBase *_playerMode) +{ + _playerMode->setAnimNo(ANIM_SPONGEBOB_DONOTDRAW); +} + + +/*=========================================================================== + end */ diff --git a/source/player/psswal.h b/source/player/psswal.h new file mode 100644 index 000000000..430aebcd6 --- /dev/null +++ b/source/player/psswal.h @@ -0,0 +1,58 @@ +/*========================================================================= + + psswal.h + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __PLAYER_PSSWAL_H__ +#define __PLAYER_PSSWAL_H__ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#include "player\pstates.h" + + +/* Std Lib + ------- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +class CPlayerStateSwallow : public CPlayerState +{ +public: + void enter(class CPlayerModeBase *_playerMode); + void think(class CPlayerModeBase *_playerMode); +}; + + +/*---------------------------------------------------------------------- + Globals + ------- */ + +extern CPlayerStateSwallow s_stateSwallow; + +/*---------------------------------------------------------------------- + Functions + --------- */ + +/*---------------------------------------------------------------------- */ + +#endif /* __PLAYER_PSSWAL_H__ */ + +/*=========================================================================== + end */