This commit is contained in:
Paul 2001-05-29 15:53:50 +00:00
parent d57be650f7
commit b22cdf459b
2 changed files with 17 additions and 17 deletions

View File

@ -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();

View File

@ -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 */