This commit is contained in:
parent
d57be650f7
commit
b22cdf459b
2 changed files with 17 additions and 17 deletions
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
/*=========================================================================
|
/*=========================================================================
|
||||||
|
|
||||||
pscrouch.cpp
|
pslook.cpp
|
||||||
|
|
||||||
Author: PKG
|
Author: PKG
|
||||||
Created:
|
Created:
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
Includes
|
Includes
|
||||||
-------- */
|
-------- */
|
||||||
|
|
||||||
#include "player\pscrouch.h"
|
#include "player\pslook.h"
|
||||||
|
|
||||||
#ifndef __PLAYER_PLAYER_H__
|
#ifndef __PLAYER_PLAYER_H__
|
||||||
#include "player\player.h"
|
#include "player\player.h"
|
||||||
|
@ -55,8 +55,8 @@
|
||||||
Vars
|
Vars
|
||||||
---- */
|
---- */
|
||||||
|
|
||||||
CPlayerStateCrouchDown s_stateCrouchDown;
|
CPlayerStateLookDown s_stateLookDown;
|
||||||
CPlayerStateCrouchUp s_stateCrouchUp;
|
CPlayerStateLookDownRelax s_stateLookDownRelax;
|
||||||
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
|
@ -65,7 +65,7 @@ CPlayerStateCrouchUp s_stateCrouchUp;
|
||||||
Params:
|
Params:
|
||||||
Returns:
|
Returns:
|
||||||
---------------------------------------------------------------------- */
|
---------------------------------------------------------------------- */
|
||||||
void CPlayerStateCrouchDown::enter(CPlayerModeBase *_playerMode)
|
void CPlayerStateLookDown::enter(CPlayerModeBase *_playerMode)
|
||||||
{
|
{
|
||||||
_playerMode->setAnimNo(ANIM_SPONGEBOB_CROUCHDOWN);
|
_playerMode->setAnimNo(ANIM_SPONGEBOB_CROUCHDOWN);
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ void CPlayerStateCrouchDown::enter(CPlayerModeBase *_playerMode)
|
||||||
Params:
|
Params:
|
||||||
Returns:
|
Returns:
|
||||||
---------------------------------------------------------------------- */
|
---------------------------------------------------------------------- */
|
||||||
void CPlayerStateCrouchDown::think(CPlayerModeBase *_playerMode)
|
void CPlayerStateLookDown::think(CPlayerModeBase *_playerMode)
|
||||||
{
|
{
|
||||||
int maxFrame;
|
int maxFrame;
|
||||||
int controlDown,controlHeld;
|
int controlDown,controlHeld;
|
||||||
|
@ -95,7 +95,7 @@ void CPlayerStateCrouchDown::think(CPlayerModeBase *_playerMode)
|
||||||
{
|
{
|
||||||
if(!(controlHeld&PI_DOWN))
|
if(!(controlHeld&PI_DOWN))
|
||||||
{
|
{
|
||||||
_playerMode->setState(STATE_CROUCHUP);
|
_playerMode->setState(STATE_LOOKDOWNRELAX);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ void CPlayerStateCrouchDown::think(CPlayerModeBase *_playerMode)
|
||||||
Params:
|
Params:
|
||||||
Returns:
|
Returns:
|
||||||
---------------------------------------------------------------------- */
|
---------------------------------------------------------------------- */
|
||||||
void CPlayerStateCrouchUp::enter(CPlayerModeBase *_playerMode)
|
void CPlayerStateLookDownRelax::enter(CPlayerModeBase *_playerMode)
|
||||||
{
|
{
|
||||||
_playerMode->setAnimNo(ANIM_SPONGEBOB_CROUCHUP);
|
_playerMode->setAnimNo(ANIM_SPONGEBOB_CROUCHUP);
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,7 @@ void CPlayerStateCrouchUp::enter(CPlayerModeBase *_playerMode)
|
||||||
Params:
|
Params:
|
||||||
Returns:
|
Returns:
|
||||||
---------------------------------------------------------------------- */
|
---------------------------------------------------------------------- */
|
||||||
void CPlayerStateCrouchUp::think(CPlayerModeBase *_playerMode)
|
void CPlayerStateLookDownRelax::think(CPlayerModeBase *_playerMode)
|
||||||
{
|
{
|
||||||
int controlDown,controlHeld;
|
int controlDown,controlHeld;
|
||||||
controlDown=_playerMode->getPadInputDown();
|
controlDown=_playerMode->getPadInputDown();
|
|
@ -1,6 +1,6 @@
|
||||||
/*=========================================================================
|
/*=========================================================================
|
||||||
|
|
||||||
pscrouch.h
|
pslook.h
|
||||||
|
|
||||||
Author: PKG
|
Author: PKG
|
||||||
Created:
|
Created:
|
||||||
|
@ -11,8 +11,8 @@
|
||||||
|
|
||||||
===========================================================================*/
|
===========================================================================*/
|
||||||
|
|
||||||
#ifndef __PLAYER_PSCROUCH_H__
|
#ifndef __PLAYER_PSLOOK_H__
|
||||||
#define __PLAYER_PSCROUCH_H__
|
#define __PLAYER_PSLOOK_H__
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
Includes
|
Includes
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
Structure defintions
|
Structure defintions
|
||||||
-------------------- */
|
-------------------- */
|
||||||
|
|
||||||
class CPlayerStateCrouchDown : public CPlayerState
|
class CPlayerStateLookDown : public CPlayerState
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void enter(class CPlayerModeBase *_playerMode);
|
void enter(class CPlayerModeBase *_playerMode);
|
||||||
|
@ -41,7 +41,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class CPlayerStateCrouchUp : public CPlayerState
|
class CPlayerStateLookDownRelax : public CPlayerState
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void enter(class CPlayerModeBase *_playerMode);
|
void enter(class CPlayerModeBase *_playerMode);
|
||||||
|
@ -54,8 +54,8 @@ public:
|
||||||
Globals
|
Globals
|
||||||
------- */
|
------- */
|
||||||
|
|
||||||
extern CPlayerStateCrouchDown s_stateCrouchDown;
|
extern CPlayerStateLookDown s_stateLookDown;
|
||||||
extern CPlayerStateCrouchUp s_stateCrouchUp;
|
extern CPlayerStateLookDownRelax s_stateLookDownRelax;
|
||||||
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
|
@ -64,7 +64,7 @@ extern CPlayerStateCrouchUp s_stateCrouchUp;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------- */
|
/*---------------------------------------------------------------------- */
|
||||||
|
|
||||||
#endif /* __PLAYER_PSCROUCH_H__ */
|
#endif /* __PLAYER_PSLOOK_H__ */
|
||||||
|
|
||||||
/*===========================================================================
|
/*===========================================================================
|
||||||
end */
|
end */
|
Loading…
Add table
Add a link
Reference in a new issue