2001-05-14 18:32:45 +02:00
|
|
|
/*=========================================================================
|
|
|
|
|
2001-05-29 17:53:50 +02:00
|
|
|
pslook.h
|
2001-05-14 18:32:45 +02:00
|
|
|
|
|
|
|
Author: PKG
|
|
|
|
Created:
|
|
|
|
Project: Spongebob
|
|
|
|
Purpose:
|
|
|
|
|
|
|
|
Copyright (c) 2001 Climax Development Ltd
|
|
|
|
|
|
|
|
===========================================================================*/
|
|
|
|
|
2001-05-29 17:53:50 +02:00
|
|
|
#ifndef __PLAYER_PSLOOK_H__
|
|
|
|
#define __PLAYER_PSLOOK_H__
|
2001-05-14 18:32:45 +02:00
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Includes
|
|
|
|
-------- */
|
|
|
|
|
|
|
|
#include "player\pstates.h"
|
|
|
|
|
|
|
|
|
|
|
|
/* Std Lib
|
|
|
|
------- */
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Tyepdefs && Defines
|
|
|
|
------------------- */
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Structure defintions
|
|
|
|
-------------------- */
|
|
|
|
|
2001-05-29 17:53:50 +02:00
|
|
|
class CPlayerStateLookDown : public CPlayerState
|
2001-05-14 18:32:45 +02:00
|
|
|
{
|
|
|
|
public:
|
2001-06-19 17:23:50 +02:00
|
|
|
virtual void enter(class CPlayerModeBase *_playerMode);
|
|
|
|
virtual void think(class CPlayerModeBase *_playerMode);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual int getNextState();
|
|
|
|
virtual int controlThatMustBeHeld();
|
2001-05-14 18:32:45 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-05-29 17:53:50 +02:00
|
|
|
class CPlayerStateLookDownRelax : public CPlayerState
|
2001-05-14 18:32:45 +02:00
|
|
|
{
|
|
|
|
public:
|
2001-06-19 17:23:50 +02:00
|
|
|
virtual void enter(class CPlayerModeBase *_playerMode);
|
|
|
|
virtual void think(class CPlayerModeBase *_playerMode);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class CPlayerStateLookUp : public CPlayerStateLookDown
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void enter(class CPlayerModeBase *_playerMode);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual int getNextState();
|
|
|
|
virtual int controlThatMustBeHeld();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class CPlayerStateLookUpRelax : public CPlayerStateLookDownRelax
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void enter(class CPlayerModeBase *_playerMode);
|
2001-05-14 18:32:45 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Globals
|
|
|
|
------- */
|
|
|
|
|
2001-05-29 17:53:50 +02:00
|
|
|
extern CPlayerStateLookDown s_stateLookDown;
|
|
|
|
extern CPlayerStateLookDownRelax s_stateLookDownRelax;
|
2001-06-19 17:23:50 +02:00
|
|
|
extern CPlayerStateLookUp s_stateLookUp;
|
|
|
|
extern CPlayerStateLookUpRelax s_stateLookUpRelax;
|
2001-05-14 18:32:45 +02:00
|
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Functions
|
|
|
|
--------- */
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------- */
|
|
|
|
|
2001-05-29 17:53:50 +02:00
|
|
|
#endif /* __PLAYER_PSLOOK_H__ */
|
2001-05-14 18:32:45 +02:00
|
|
|
|
|
|
|
/*===========================================================================
|
|
|
|
end */
|
|
|
|
|
|
|
|
|
|
|
|
|