This commit is contained in:
Charles 2001-06-07 16:31:54 +00:00
parent 6bd6a949e5
commit 3a10910187
8 changed files with 412 additions and 0 deletions

View file

@ -0,0 +1,39 @@
/*=========================================================================
tadripemit.cpp
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __TRIGGERS_TADRIPEMIT_H__
#include "triggers\tadripemit.h"
#endif
#ifndef __GAME_GAME_H__
#include "game\game.h"
#endif
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CAcidDripEmitterTrigger::think(int _frames)
{
CTrigger::think( _frames );
if ( m_timer <= 0 )
{
CFX::Create( CFX::FX_TYPE_DROP_ACID, Pos );
m_timer = GameState::getOneSecondInFrames();
}
else
{
m_timer -= _frames;
}
}