2001-03-30 19:21:04 +02:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
pmbubble.h
|
|
|
|
|
|
|
|
Author: PKG
|
|
|
|
Created:
|
|
|
|
Project: Spongebob
|
|
|
|
Purpose:
|
|
|
|
|
|
|
|
Copyright (c) 2001 Climax Development Ltd
|
|
|
|
|
|
|
|
===========================================================================*/
|
|
|
|
|
|
|
|
#ifndef __PLAYER_PMBUBBLE_H__
|
|
|
|
#define __PLAYER_PMBUBBLE_H__
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Includes
|
|
|
|
-------- */
|
|
|
|
|
|
|
|
#ifndef __PLAYER_PMODES_H__
|
|
|
|
#include "player\pmodes.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/* Std Lib
|
|
|
|
------- */
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Tyepdefs && Defines
|
|
|
|
------------------- */
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Structure defintions
|
|
|
|
-------------------- */
|
|
|
|
|
|
|
|
class CPlayerModeBubbleMixture : public CPlayerModeBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void enter();
|
|
|
|
virtual void think();
|
2001-03-31 20:22:38 +02:00
|
|
|
virtual void renderModeUi();
|
2001-03-30 19:21:04 +02:00
|
|
|
|
|
|
|
virtual void setAnimNo(int _animNo);
|
|
|
|
virtual void setAnimFrame(int _animFrame);
|
|
|
|
|
|
|
|
private:
|
2001-03-30 21:27:26 +02:00
|
|
|
enum
|
|
|
|
{
|
2001-03-31 04:05:24 +02:00
|
|
|
BUBBLE_DELAY=30*1,
|
2001-03-30 21:27:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
int canBlowBubbleFromThisState();
|
2001-03-30 19:21:04 +02:00
|
|
|
|
|
|
|
int m_savedAnimNo,m_savedAnimFrame;
|
2001-03-30 21:27:26 +02:00
|
|
|
int m_blowFrame;
|
|
|
|
int m_blowing;
|
|
|
|
int m_bubbleDelay;
|
|
|
|
|
2001-03-30 19:21:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Globals
|
|
|
|
------- */
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Functions
|
|
|
|
--------- */
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
#endif /* __PLAYER_PMBUBBLE_H__ */
|
|
|
|
|
|
|
|
/*===========================================================================
|
|
|
|
end */
|
|
|
|
|
|
|
|
|
|
|
|
|