This commit is contained in:
parent
13b2fbf0a8
commit
c59ef39aa0
17 changed files with 366 additions and 910 deletions
|
@ -18,11 +18,6 @@
|
|||
Includes
|
||||
-------- */
|
||||
|
||||
#ifndef _GLOBAL_HEADER_
|
||||
#include "system\global.h"
|
||||
#endif
|
||||
|
||||
|
||||
/* Std Lib
|
||||
------- */
|
||||
|
||||
|
@ -37,41 +32,8 @@
|
|||
class CPlayerState
|
||||
{
|
||||
public:
|
||||
virtual void enter(class CPlayer *_player) {;}
|
||||
virtual void think(class CPlayer *_player) {;}
|
||||
|
||||
|
||||
protected:
|
||||
const struct PlayerMetrics *getPlayerMetrics(class CPlayer *_player);
|
||||
int setState(class CPlayer *_player,int _state);
|
||||
void setMode(class CPlayer *_player,int _mode);
|
||||
int getFacing(class CPlayer *_player);
|
||||
void setFacing(class CPlayer *_player,int _facing);
|
||||
int getAnimNo(class CPlayer *_player);
|
||||
void setAnimNo(class CPlayer *_player,int _animNo);
|
||||
void setAnimFrame(class CPlayer *_player,int _animFrame);
|
||||
int advanceAnimFrameAndCheckForEndOfAnim(class CPlayer *_player);
|
||||
int retreatAnimFrameAndCheckForEndOfAnim(class CPlayer *_player);
|
||||
DVECTOR getMoveVelocity(class CPlayer *_player);
|
||||
void setMoveVelocity(class CPlayer *_player,DVECTOR *_moveVel);
|
||||
DVECTOR getPlayerPos(class CPlayer *_player);
|
||||
void setPlayerPos(class CPlayer *_player,DVECTOR *_pos);
|
||||
int getPadInputHeld(class CPlayer *_player);
|
||||
int getPadInputDown(class CPlayer *_player);
|
||||
|
||||
int isOnEdge(class CPlayer *_player);
|
||||
int canMoveLeft(class CPlayer *_player);
|
||||
int canMoveRight(class CPlayer *_player);
|
||||
|
||||
void moveLeft(class CPlayer *_player);
|
||||
void moveRight(class CPlayer *_player);
|
||||
void slowdown(class CPlayer *_player);
|
||||
void jump(class CPlayer *_player);
|
||||
void fall(class CPlayer *_player);
|
||||
|
||||
void respawn(class CPlayer *_player);
|
||||
|
||||
|
||||
virtual void enter(class CPlayerModeBasic *_playerMode) {;}
|
||||
virtual void think(class CPlayerModeBasic *_playerMode) {;}
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue