81 lines
1.6 KiB
C++
81 lines
1.6 KiB
C++
/*=========================================================================
|
|
|
|
pmbloon.h
|
|
|
|
Author: PKG
|
|
Created:
|
|
Project: Spongebob
|
|
Purpose:
|
|
|
|
Copyright (c) 2001 Climax Development Ltd
|
|
|
|
===========================================================================*/
|
|
|
|
#ifndef __PLAYER_PMBLOON_H__
|
|
#define __PLAYER_PMBLOON_H__
|
|
|
|
/*----------------------------------------------------------------------
|
|
Includes
|
|
-------- */
|
|
|
|
#ifndef __PLAYER_PMODES_H__
|
|
#include "player\pmodes.h"
|
|
#endif
|
|
|
|
|
|
/* Std Lib
|
|
------- */
|
|
|
|
/*----------------------------------------------------------------------
|
|
Tyepdefs && Defines
|
|
------------------- */
|
|
|
|
/*----------------------------------------------------------------------
|
|
Structure defintions
|
|
-------------------- */
|
|
|
|
class CPlayerModeBalloon : public CPlayerModeBase
|
|
{
|
|
public:
|
|
virtual void enter();
|
|
virtual void think();
|
|
virtual void render(DVECTOR *_pos);
|
|
virtual void renderModeUi();
|
|
|
|
virtual int canFallForever() {return true;}
|
|
virtual const struct PlayerMetrics *getPlayerMetrics();
|
|
|
|
virtual void setAnimNo(int _animNo);
|
|
|
|
|
|
private:
|
|
enum
|
|
{
|
|
BALLOON_TIMEOUT=8*60,
|
|
BALLOON_POP_FRAMES=4,
|
|
BALLOON_FLASH_TIME=2*60,
|
|
};
|
|
int m_timer;
|
|
int m_playedPopSound;
|
|
|
|
};
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
Globals
|
|
------- */
|
|
|
|
/*----------------------------------------------------------------------
|
|
Functions
|
|
--------- */
|
|
|
|
/*---------------------------------------------------------------------- */
|
|
|
|
#endif /* __PLAYER_PMBLOON_H__ */
|
|
|
|
/*===========================================================================
|
|
end */
|
|
|
|
|
|
|