diff --git a/source/triggers/tabemit.cpp b/source/triggers/tabemit.cpp new file mode 100644 index 000000000..c7be3a67a --- /dev/null +++ b/source/triggers/tabemit.cpp @@ -0,0 +1,39 @@ +/*========================================================================= + + tabemit.cpp + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __TRIGGERS_TABEMIT_H__ +#include "triggers\tabemit.h" +#endif + +#ifndef __GAME_GAME_H__ +#include "game\game.h" +#endif + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void CAcidBubbleEmitterTrigger::think(int _frames) +{ + CTrigger::think( _frames ); + + if ( m_timer <= 0 ) + { + CFX::Create( CFX::FX_TYPE_BUBBLE_ACID, Pos ); + + m_timer = GameState::getOneSecondInFrames() >> 2; + } + else + { + m_timer -= _frames; + } +} diff --git a/source/triggers/tabemit.h b/source/triggers/tabemit.h new file mode 100644 index 000000000..71cb13569 --- /dev/null +++ b/source/triggers/tabemit.h @@ -0,0 +1,59 @@ +/*========================================================================= + + tabemit.h + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __TRIGGERS_TABEMIT_H__ +#define __TRIGGERS_TABEMIT_H__ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#ifndef __THING_THING_H__ +#include "thing/thing.h" +#endif + +#ifndef __TRIGGERS_TBEMIT_H__ +#include "triggers\tbemit.h" +#endif + +/* Std Lib + ------- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +class CAcidBubbleEmitterTrigger : public CBubbleEmitterTrigger +{ +public: + virtual void think(int _frames); +}; + +/*---------------------------------------------------------------------- + Globals + ------- */ + +/*---------------------------------------------------------------------- + Functions + --------- */ + +/*---------------------------------------------------------------------- */ + +#endif + +/*=========================================================================== + end */ diff --git a/source/triggers/tlbemit.cpp b/source/triggers/tlbemit.cpp new file mode 100644 index 000000000..75b4a2792 --- /dev/null +++ b/source/triggers/tlbemit.cpp @@ -0,0 +1,39 @@ +/*========================================================================= + + tlbemit.cpp + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __TRIGGERS_TLBEMIT_H__ +#include "triggers\tlbemit.h" +#endif + +#ifndef __GAME_GAME_H__ +#include "game\game.h" +#endif + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void CLavaBubbleEmitterTrigger::think(int _frames) +{ + CTrigger::think( _frames ); + + if ( m_timer <= 0 ) + { + CFX::Create( CFX::FX_TYPE_BUBBLE_LAVA, Pos ); + + m_timer = GameState::getOneSecondInFrames() >> 2; + } + else + { + m_timer -= _frames; + } +} diff --git a/source/triggers/tlbemit.h b/source/triggers/tlbemit.h new file mode 100644 index 000000000..34ebe4edc --- /dev/null +++ b/source/triggers/tlbemit.h @@ -0,0 +1,59 @@ +/*========================================================================= + + tlbemit.h + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __TRIGGERS_TLBEMIT_H__ +#define __TRIGGERS_TLBEMIT_H__ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#ifndef __THING_THING_H__ +#include "thing/thing.h" +#endif + +#ifndef __TRIGGERS_TBEMIT_H__ +#include "triggers\tbemit.h" +#endif + +/* Std Lib + ------- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +class CLavaBubbleEmitterTrigger : public CBubbleEmitterTrigger +{ +public: + virtual void think(int _frames); +}; + +/*---------------------------------------------------------------------- + Globals + ------- */ + +/*---------------------------------------------------------------------- + Functions + --------- */ + +/*---------------------------------------------------------------------- */ + +#endif + +/*=========================================================================== + end */ diff --git a/source/triggers/tobemit.cpp b/source/triggers/tobemit.cpp new file mode 100644 index 000000000..048f05b2c --- /dev/null +++ b/source/triggers/tobemit.cpp @@ -0,0 +1,39 @@ +/*========================================================================= + + tobemit.cpp + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __TRIGGERS_TOBEMIT_H__ +#include "triggers\tobemit.h" +#endif + +#ifndef __GAME_GAME_H__ +#include "game\game.h" +#endif + + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void COilBubbleEmitterTrigger::think(int _frames) +{ + CTrigger::think( _frames ); + + if ( m_timer <= 0 ) + { + CFX::Create( CFX::FX_TYPE_BUBBLE_OIL, Pos ); + + m_timer = GameState::getOneSecondInFrames() >> 2; + } + else + { + m_timer -= _frames; + } +} diff --git a/source/triggers/tobemit.h b/source/triggers/tobemit.h new file mode 100644 index 000000000..2f01505ed --- /dev/null +++ b/source/triggers/tobemit.h @@ -0,0 +1,59 @@ +/*========================================================================= + + tobemit.h + + Author: CRB + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __TRIGGERS_TOBEMIT_H__ +#define __TRIGGERS_TOBEMIT_H__ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#ifndef __THING_THING_H__ +#include "thing/thing.h" +#endif + +#ifndef __TRIGGERS_TBEMIT_H__ +#include "triggers\tbemit.h" +#endif + +/* Std Lib + ------- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +class COilBubbleEmitterTrigger : public CBubbleEmitterTrigger +{ +public: + virtual void think(int _frames); +}; + +/*---------------------------------------------------------------------- + Globals + ------- */ + +/*---------------------------------------------------------------------- + Functions + --------- */ + +/*---------------------------------------------------------------------- */ + +#endif + +/*=========================================================================== + end */