SBSPSS/source/player/pmjelly.h
2001-06-25 20:25:28 +00:00

92 lines
1.7 KiB
C++

/*=========================================================================
pmjelly.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PLAYER_PMJELLY_H__
#define __PLAYER_PMJELLY_H__
/*----------------------------------------------------------------------
Includes
-------- */
#ifndef __PLAYER_PMODES_H__
#include "player\pmodes.h"
#endif
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
class CPlayerModeJellyLauncher : public CPlayerModeBase
{
public:
virtual void enter();
virtual void think();
virtual void renderModeUi();
virtual int setState(int _state);
private:
enum
{
TIMEOUT_FOR_BIG_SHOT=60*4,
AMMO_AMOUNT_FOR_BIG_SHOT=3,
};
typedef enum
{
FIRING_STATE__NONE,
FIRING_STATE__POWERINGUP,
FIRING_STATE__FIRING,
}FIRING_STATE;
int canFireFromThisState();
void launchProjectile();
int m_firingFrame;
FIRING_STATE m_firingState;
int m_firingTime;
protected:
virtual class CPlayerState **getStateTable();
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __PLAYER_PMJELLY_H__ */
/*===========================================================================
end */