SBSPSS/source/player/pstates.h

89 lines
2.3 KiB
C
Raw Normal View History

2001-01-19 23:54:48 +01:00
/*=========================================================================
pstates.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PLAYER_PSTATES_H__
#define __PLAYER_PSTATES_H__
/*----------------------------------------------------------------------
Includes
-------- */
#ifndef _GLOBAL_HEADER_
#include "system\global.h"
#endif
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
class CPlayerState
{
public:
2001-01-25 16:25:46 +01:00
virtual void enter(class CPlayer *_player) {;}
virtual void think(class CPlayer *_player) {;}
2001-01-19 23:54:48 +01:00
protected:
2001-01-22 23:58:12 +01:00
const struct PlayerMetrics *getPlayerMetrics(class CPlayer *_player);
2001-01-19 23:54:48 +01:00
void setState(class CPlayer *_player,int _state);
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);
2001-01-25 16:25:46 +01:00
int retreatAnimFrameAndCheckForEndOfAnim(class CPlayer *_player);
2001-01-19 23:54:48 +01:00
DVECTOR getMoveVelocity(class CPlayer *_player);
void setMoveVelocity(class CPlayer *_player,DVECTOR *_moveVel);
2001-01-26 19:20:41 +01:00
DVECTOR getPlayerPos(class CPlayer *_player);
2001-01-29 23:35:18 +01:00
int getPadInputHeld(class CPlayer *_player);
int getPadInputDown(class CPlayer *_player);
2001-01-19 23:54:48 +01:00
int isOnSolidGround(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);
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __PLAYER_PSTATES_H__ */
/*===========================================================================
end */