This commit is contained in:
Charles 2001-06-07 18:41:16 +00:00
parent 61780e997e
commit 420a0a89b2
6 changed files with 294 additions and 0 deletions

View File

@ -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;
}
}

59
source/triggers/tabemit.h Normal file
View File

@ -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 */

View File

@ -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;
}
}

59
source/triggers/tlbemit.h Normal file
View File

@ -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 */

View File

@ -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;
}
}

59
source/triggers/tobemit.h Normal file
View File

@ -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 */