SBSPSS/source/player/pmballoon.cpp

75 lines
1.6 KiB
C++
Raw Normal View History

2001-02-28 17:36:16 +01:00
/*=========================================================================
pmballoon.cpp
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
/*----------------------------------------------------------------------
Includes
-------- */
#include "player/pmballoon.h"
#ifndef __PLAYER_PLAYER_H__
#include "player/player.h"
#endif
/* Std Lib
------- */
/* Data
---- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
/*----------------------------------------------------------------------
Function Prototypes
------------------- */
/*----------------------------------------------------------------------
Vars
---- */
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
int balloontime=60*20;
void CPlayerModeBalloon::enter(class CPlayer *_player)
{
m_timer=balloontime;
}
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
void CPlayerModeBalloon::think(class CPlayer *_player)
{
if(--m_timer==0)
{
_player->setMode(PLAYER_MODE_FULLUNARMED);
}
}
/*===========================================================================
end */