SBSPSS/source/player/psrun.h

85 lines
1.9 KiB
C
Raw Normal View History

2001-01-19 23:54:48 +01:00
/*=========================================================================
psjump.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PLAYER_PSRUN_H__
#define __PLAYER_PSRUN_H__
/*----------------------------------------------------------------------
Includes
-------- */
#include "player\pstates.h"
2001-04-03 18:47:07 +02:00
#ifndef __ANIM_SPONGEBOB_HEADER__
#include <ACTOR_SPONGEBOB_ANIM.h>
#endif
2001-01-19 23:54:48 +01:00
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
class CPlayerStateRun : public CPlayerState
{
public:
2001-03-25 22:36:28 +02:00
void enter(class CPlayerModeBase *_playerMode);
void think(class CPlayerModeBase *_playerMode);
2001-01-25 16:25:46 +01:00
2001-04-03 18:47:07 +02:00
protected:
2001-04-04 00:53:27 +02:00
virtual int getStartFrame() {return ANIM_SPONGEBOB_RUNSTART;}
2001-04-03 18:47:07 +02:00
virtual int getLoopFrame() {return ANIM_SPONGEBOB_RUN;}
2001-04-04 00:53:27 +02:00
virtual int getEndFrame() {return ANIM_SPONGEBOB_RUNSTOP;}
2001-04-03 18:47:07 +02:00
2001-01-25 16:25:46 +01:00
private:
2001-04-03 18:47:07 +02:00
int m_numberOfTimesAnimHasLooped;
};
class CPlayerStateWalk : public CPlayerStateRun
{
protected:
virtual int getStartFrame() {return -1;}
2001-04-09 18:25:44 +02:00
virtual int getLoopFrame() {return ANIM_SPONGEBOB_WALK;}
2001-04-03 18:47:07 +02:00
virtual int getEndFrame() {return -1;}
2001-01-19 23:54:48 +01:00
};
/*----------------------------------------------------------------------
Globals
------- */
2001-04-03 18:47:07 +02:00
extern CPlayerStateRun s_stateRun;
extern CPlayerStateWalk s_stateWalk;
2001-01-19 23:54:48 +01:00
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __PLAYER_PSRUN_H__ */
/*===========================================================================
end */