From b22cdf459b7dd92a05c7ada416cab2324f8ea779 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 29 May 2001 15:53:50 +0000 Subject: [PATCH] --- source/player/{pscrouch.cpp => pslook.cpp} | 18 +++++++++--------- source/player/{pscrouch.h => pslook.h} | 16 ++++++++-------- 2 files changed, 17 insertions(+), 17 deletions(-) rename source/player/{pscrouch.cpp => pslook.cpp} (87%) rename source/player/{pscrouch.h => pslook.h} (80%) diff --git a/source/player/pscrouch.cpp b/source/player/pslook.cpp similarity index 87% rename from source/player/pscrouch.cpp rename to source/player/pslook.cpp index 467c06241..3c2d42237 100644 --- a/source/player/pscrouch.cpp +++ b/source/player/pslook.cpp @@ -1,7 +1,7 @@ /*========================================================================= - pscrouch.cpp + pslook.cpp Author: PKG Created: @@ -17,7 +17,7 @@ Includes -------- */ -#include "player\pscrouch.h" +#include "player\pslook.h" #ifndef __PLAYER_PLAYER_H__ #include "player\player.h" @@ -55,8 +55,8 @@ Vars ---- */ -CPlayerStateCrouchDown s_stateCrouchDown; -CPlayerStateCrouchUp s_stateCrouchUp; +CPlayerStateLookDown s_stateLookDown; +CPlayerStateLookDownRelax s_stateLookDownRelax; /*---------------------------------------------------------------------- @@ -65,7 +65,7 @@ CPlayerStateCrouchUp s_stateCrouchUp; Params: Returns: ---------------------------------------------------------------------- */ -void CPlayerStateCrouchDown::enter(CPlayerModeBase *_playerMode) +void CPlayerStateLookDown::enter(CPlayerModeBase *_playerMode) { _playerMode->setAnimNo(ANIM_SPONGEBOB_CROUCHDOWN); } @@ -77,7 +77,7 @@ void CPlayerStateCrouchDown::enter(CPlayerModeBase *_playerMode) Params: Returns: ---------------------------------------------------------------------- */ -void CPlayerStateCrouchDown::think(CPlayerModeBase *_playerMode) +void CPlayerStateLookDown::think(CPlayerModeBase *_playerMode) { int maxFrame; int controlDown,controlHeld; @@ -95,7 +95,7 @@ void CPlayerStateCrouchDown::think(CPlayerModeBase *_playerMode) { if(!(controlHeld&PI_DOWN)) { - _playerMode->setState(STATE_CROUCHUP); + _playerMode->setState(STATE_LOOKDOWNRELAX); } } @@ -122,7 +122,7 @@ void CPlayerStateCrouchDown::think(CPlayerModeBase *_playerMode) Params: Returns: ---------------------------------------------------------------------- */ -void CPlayerStateCrouchUp::enter(CPlayerModeBase *_playerMode) +void CPlayerStateLookDownRelax::enter(CPlayerModeBase *_playerMode) { _playerMode->setAnimNo(ANIM_SPONGEBOB_CROUCHUP); } @@ -134,7 +134,7 @@ void CPlayerStateCrouchUp::enter(CPlayerModeBase *_playerMode) Params: Returns: ---------------------------------------------------------------------- */ -void CPlayerStateCrouchUp::think(CPlayerModeBase *_playerMode) +void CPlayerStateLookDownRelax::think(CPlayerModeBase *_playerMode) { int controlDown,controlHeld; controlDown=_playerMode->getPadInputDown(); diff --git a/source/player/pscrouch.h b/source/player/pslook.h similarity index 80% rename from source/player/pscrouch.h rename to source/player/pslook.h index f02d925eb..cf357007b 100644 --- a/source/player/pscrouch.h +++ b/source/player/pslook.h @@ -1,6 +1,6 @@ /*========================================================================= - pscrouch.h + pslook.h Author: PKG Created: @@ -11,8 +11,8 @@ ===========================================================================*/ -#ifndef __PLAYER_PSCROUCH_H__ -#define __PLAYER_PSCROUCH_H__ +#ifndef __PLAYER_PSLOOK_H__ +#define __PLAYER_PSLOOK_H__ /*---------------------------------------------------------------------- Includes @@ -32,7 +32,7 @@ Structure defintions -------------------- */ -class CPlayerStateCrouchDown : public CPlayerState +class CPlayerStateLookDown : public CPlayerState { public: void enter(class CPlayerModeBase *_playerMode); @@ -41,7 +41,7 @@ public: }; -class CPlayerStateCrouchUp : public CPlayerState +class CPlayerStateLookDownRelax : public CPlayerState { public: void enter(class CPlayerModeBase *_playerMode); @@ -54,8 +54,8 @@ public: Globals ------- */ -extern CPlayerStateCrouchDown s_stateCrouchDown; -extern CPlayerStateCrouchUp s_stateCrouchUp; +extern CPlayerStateLookDown s_stateLookDown; +extern CPlayerStateLookDownRelax s_stateLookDownRelax; /*---------------------------------------------------------------------- @@ -64,7 +64,7 @@ extern CPlayerStateCrouchUp s_stateCrouchUp; /*---------------------------------------------------------------------- */ -#endif /* __PLAYER_PSCROUCH_H__ */ +#endif /* __PLAYER_PSLOOK_H__ */ /*=========================================================================== end */