SBSPSS/source/player/pmcoral.h

96 lines
2.0 KiB
C
Raw Normal View History

2001-03-30 18:09:02 +02:00
/*=========================================================================
pmcoral.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PLAYER_PMCORAL_H__
#define __PLAYER_PMCORAL_H__
/*----------------------------------------------------------------------
Includes
-------- */
#ifndef __PLAYER_PMODES_H__
#include "player\pmodes.h"
#endif
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
class CPlayerModeCoralBlower : public CPlayerModeBase
{
public:
virtual void enter();
virtual void think();
2001-03-31 20:22:38 +02:00
virtual void renderModeUi();
2001-05-24 00:03:53 +02:00
virtual int canDoLookAround();
2001-07-10 21:56:51 +02:00
virtual int canConverse() {return m_blowerState==BLOWER_STATE__EMPTY||m_blowerState==BLOWER_STATE__FULL;}
2001-03-30 18:09:02 +02:00
virtual const struct PlayerMetrics *getPlayerMetrics();
2001-04-03 18:47:07 +02:00
protected:
virtual class CPlayerState **getStateTable();
2001-03-30 18:09:02 +02:00
private:
2001-03-30 19:47:00 +02:00
typedef enum
{
BLOWER_STATE__EMPTY,
BLOWER_STATE__SUCKING,
BLOWER_STATE__FULL,
BLOWER_STATE__AIMING,
} BlowerState;
2001-05-24 00:03:53 +02:00
enum
{
BLOWER_TARGET_DISTANCE=40,
BLOWER_MINIMUM_AIM_ANGLE=-768,
BLOWER_MAXIMUM_AIM_ANGLE=768,
2001-06-19 17:31:18 +02:00
BLOWER_AIM_MOVE_AMOUNT=256,
2001-05-24 00:03:53 +02:00
};
2001-05-05 00:11:44 +02:00
DVECTOR *getSuckUpPoint();
2001-03-30 19:47:00 +02:00
BlowerState m_blowerState;
2001-05-16 23:15:50 +02:00
class CNpcEnemy *m_enemy;
u8 m_enemyFrame;
2001-05-05 00:11:44 +02:00
2001-05-24 00:03:53 +02:00
int m_launchHeading;
2001-03-30 18:09:02 +02:00
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __PLAYER_PMCORAL_H__ */
/*===========================================================================
end */