This commit is contained in:
Paul 2001-02-28 14:57:59 +00:00
parent 444cd3cb93
commit 20f32bda06

74
source/player/pmboots.cpp Normal file
View File

@ -0,0 +1,74 @@
/*=========================================================================
pmboots.cpp
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
/*----------------------------------------------------------------------
Includes
-------- */
#include "player/pmboots.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 boottime=60*20;
void CPlayerModeBoots::enter(class CPlayer *_player)
{
m_timer=boottime;
}
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
void CPlayerModeBoots::think(class CPlayer *_player)
{
if(--m_timer==0)
{
_player->setMode(PLAYER_MODE_FULLUNARMED);
}
}
/*===========================================================================
end */