SBSPSS/source/player/pmjelly.h

89 lines
1.6 KiB
C
Raw Normal View History

2001-04-03 23:00:00 +02:00
/*=========================================================================
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
-------------------- */
2001-04-03 23:36:35 +02:00
class CPlayerModeJellyLauncher : public CPlayerModeBase
2001-04-03 23:00:00 +02:00
{
public:
virtual void enter();
virtual void think();
virtual void renderModeUi();
2001-04-08 20:57:16 +02:00
virtual int setState(int _state);
2001-04-03 23:00:00 +02:00
private:
2001-04-08 20:57:16 +02:00
enum
{
TIMEOUT_FOR_BIG_SHOT=60*4,
AMMO_AMOUNT_FOR_BIG_SHOT=3,
};
2001-04-03 23:00:00 +02:00
typedef enum
{
2001-04-08 20:57:16 +02:00
FIRING_STATE__NONE,
FIRING_STATE__POWERINGUP,
FIRING_STATE__FIRING,
}FIRING_STATE;
2001-04-03 23:00:00 +02:00
2001-04-08 20:57:16 +02:00
int canFireFromThisState();
2001-04-03 23:00:00 +02:00
2001-04-10 21:04:20 +02:00
void launchProjectile();
2001-04-08 20:57:16 +02:00
int m_firingFrame;
FIRING_STATE m_firingState;
int m_firingTime;
2001-04-03 23:00:00 +02:00
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __PLAYER_PMJELLY_H__ */
/*===========================================================================
end */