This commit is contained in:
Daveo 2001-06-19 21:35:02 +00:00
parent fed2acdd38
commit 3898864301
8 changed files with 37 additions and 29 deletions

View file

@ -1,8 +1,8 @@
/*=========================================================================
twdripemit.cpp
toilgeysor
Author: CRB
Author: Dave - based on the original story by CB
Created:
Project: Spongebob
Purpose:
@ -11,26 +11,27 @@
===========================================================================*/
#ifndef __TRIGGERS_TWDRIPEMIT_H__
#include "triggers\twdripemit.h"
#ifndef __TRIGGERS_TOILGEYSER_H__
#include "triggers\toilgeyser.h"
#endif
#ifndef __GAME_GAME_H__
#include "game\game.h"
#endif
#include "fx/fxgeyser.h"
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CWaterDripEmitterTrigger::think(int _frames)
void COilGeyserTrigger::think(int _frames)
{
CTrigger::think( _frames );
if ( m_timer <= 0 )
{
CFX::Create( CFX::FX_TYPE_DROP_WATER, Pos );
m_timer = GameState::getOneSecondInFrames() >> 2;
m_FX->setHeight(m_Height);
m_timer = GameState::getOneSecondInFrames() *5;
m_Height^=128;
}
else
{
@ -40,9 +41,11 @@ void CWaterDripEmitterTrigger::think(int _frames)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CWaterDripEmitterTrigger::setPositionAndSize(int _x,int _y,int _w,int _h)
void COilGeyserTrigger::setPositionAndSize(int _x,int _y,int _w,int _h)
{
CTrigger::setPositionAndSize( _x, _y, _w, _h );
m_FX=(CFXGeyser*)CFX::Create( CFX::FX_TYPE_GEYSER_OIL, Pos );
m_FX->setHeight(0);
m_timer = 0;
m_Height=128;
}