This commit is contained in:
parent
95ad01a25c
commit
7e521cc0bf
6 changed files with 287 additions and 0 deletions
36
source/triggers/tsdownemit.cpp
Normal file
36
source/triggers/tsdownemit.cpp
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*=========================================================================
|
||||
|
||||
tsdownemit.cpp
|
||||
|
||||
Author: CRB
|
||||
Created:
|
||||
Project: Spongebob
|
||||
Purpose:
|
||||
|
||||
Copyright (c) 2001 Climax Development Ltd
|
||||
|
||||
===========================================================================*/
|
||||
|
||||
#ifndef __TRIGGERS_TSDOWNEMIT_H__
|
||||
#include "triggers\tsdownemit.h"
|
||||
#endif
|
||||
|
||||
#ifndef __GAME_GAME_H__
|
||||
#include "game\game.h"
|
||||
#endif
|
||||
|
||||
#include "fx\fxsteam.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CSteamDownEmitterTrigger::setPositionAndSize(int _x,int _y,int _w,int _h)
|
||||
{
|
||||
CSteamEmitterTrigger::setPositionAndSize( _x, _y, _w, _h );
|
||||
|
||||
CFXSteam *steam = (CFXSteam *) m_effect;
|
||||
steam->SetSize( ( _h >> 4 ) * ONE );
|
||||
DVECTOR velocity;
|
||||
velocity.vx = 0;
|
||||
velocity.vy = _h >> 4;
|
||||
steam->SetVel( velocity );
|
||||
}
|
59
source/triggers/tsdownemit.h
Normal file
59
source/triggers/tsdownemit.h
Normal file
|
@ -0,0 +1,59 @@
|
|||
/*=========================================================================
|
||||
|
||||
tsdownemit.h
|
||||
|
||||
Author: CRB
|
||||
Created:
|
||||
Project: Spongebob
|
||||
Purpose:
|
||||
|
||||
Copyright (c) 2001 Climax Development Ltd
|
||||
|
||||
===========================================================================*/
|
||||
|
||||
#ifndef __TRIGGERS_TSDOWNEMIT_H__
|
||||
#define __TRIGGERS_TSDOWNEMIT_H__
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Includes
|
||||
-------- */
|
||||
|
||||
#ifndef __THING_THING_H__
|
||||
#include "thing/thing.h"
|
||||
#endif
|
||||
|
||||
#ifndef __TRIGGERS_TSEMIT_H__
|
||||
#include "triggers\tsemit.h"
|
||||
#endif
|
||||
|
||||
/* Std Lib
|
||||
------- */
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Tyepdefs && Defines
|
||||
------------------- */
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Structure defintions
|
||||
-------------------- */
|
||||
|
||||
class CSteamDownEmitterTrigger : public CSteamEmitterTrigger
|
||||
{
|
||||
public:
|
||||
virtual void setPositionAndSize(int _x,int _y,int _w,int _h);
|
||||
};
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Globals
|
||||
------- */
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Functions
|
||||
--------- */
|
||||
|
||||
/*---------------------------------------------------------------------- */
|
||||
|
||||
#endif
|
||||
|
||||
/*===========================================================================
|
||||
end */
|
37
source/triggers/tsleftemit.cpp
Normal file
37
source/triggers/tsleftemit.cpp
Normal file
|
@ -0,0 +1,37 @@
|
|||
/*=========================================================================
|
||||
|
||||
tsleftemit.cpp
|
||||
|
||||
Author: CRB
|
||||
Created:
|
||||
Project: Spongebob
|
||||
Purpose:
|
||||
|
||||
Copyright (c) 2001 Climax Development Ltd
|
||||
|
||||
===========================================================================*/
|
||||
|
||||
#ifndef __TRIGGERS_TSLEFTEMIT_H__
|
||||
#include "triggers\tsleftemit.h"
|
||||
#endif
|
||||
|
||||
#ifndef __GAME_GAME_H__
|
||||
#include "game\game.h"
|
||||
#endif
|
||||
|
||||
#include "fx\fxsteam.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CSteamLeftEmitterTrigger::setPositionAndSize(int _x,int _y,int _w,int _h)
|
||||
{
|
||||
CSteamEmitterTrigger::setPositionAndSize( _x, _y, _w, _h );
|
||||
|
||||
CFXSteam *steam = (CFXSteam *) m_effect;
|
||||
steam->SetSize( ( _w >> 4 ) * ONE );
|
||||
DVECTOR velocity;
|
||||
velocity.vx = -_w >> 4;
|
||||
velocity.vy = 0;
|
||||
steam->SetVel( velocity );
|
||||
steam->SetHorizontal( true );
|
||||
}
|
59
source/triggers/tsleftemit.h
Normal file
59
source/triggers/tsleftemit.h
Normal file
|
@ -0,0 +1,59 @@
|
|||
/*=========================================================================
|
||||
|
||||
tsleftemit.h
|
||||
|
||||
Author: CRB
|
||||
Created:
|
||||
Project: Spongebob
|
||||
Purpose:
|
||||
|
||||
Copyright (c) 2001 Climax Development Ltd
|
||||
|
||||
===========================================================================*/
|
||||
|
||||
#ifndef __TRIGGERS_TSLEFTEMIT_H__
|
||||
#define __TRIGGERS_TSLEFTEMIT_H__
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Includes
|
||||
-------- */
|
||||
|
||||
#ifndef __THING_THING_H__
|
||||
#include "thing/thing.h"
|
||||
#endif
|
||||
|
||||
#ifndef __TRIGGERS_TSEMIT_H__
|
||||
#include "triggers\tsemit.h"
|
||||
#endif
|
||||
|
||||
/* Std Lib
|
||||
------- */
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Tyepdefs && Defines
|
||||
------------------- */
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Structure defintions
|
||||
-------------------- */
|
||||
|
||||
class CSteamLeftEmitterTrigger : public CSteamEmitterTrigger
|
||||
{
|
||||
public:
|
||||
virtual void setPositionAndSize(int _x,int _y,int _w,int _h);
|
||||
};
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Globals
|
||||
------- */
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Functions
|
||||
--------- */
|
||||
|
||||
/*---------------------------------------------------------------------- */
|
||||
|
||||
#endif
|
||||
|
||||
/*===========================================================================
|
||||
end */
|
37
source/triggers/tsrightemit.cpp
Normal file
37
source/triggers/tsrightemit.cpp
Normal file
|
@ -0,0 +1,37 @@
|
|||
/*=========================================================================
|
||||
|
||||
tsrightemit.cpp
|
||||
|
||||
Author: CRB
|
||||
Created:
|
||||
Project: Spongebob
|
||||
Purpose:
|
||||
|
||||
Copyright (c) 2001 Climax Development Ltd
|
||||
|
||||
===========================================================================*/
|
||||
|
||||
#ifndef __TRIGGERS_TSRIGHTEMIT_H__
|
||||
#include "triggers\tsrightemit.h"
|
||||
#endif
|
||||
|
||||
#ifndef __GAME_GAME_H__
|
||||
#include "game\game.h"
|
||||
#endif
|
||||
|
||||
#include "fx\fxsteam.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CSteamRightEmitterTrigger::setPositionAndSize(int _x,int _y,int _w,int _h)
|
||||
{
|
||||
CSteamEmitterTrigger::setPositionAndSize( _x, _y, _w, _h );
|
||||
|
||||
CFXSteam *steam = (CFXSteam *) m_effect;
|
||||
steam->SetSize( ( _w >> 4 ) * ONE );
|
||||
DVECTOR velocity;
|
||||
velocity.vx = _w >> 4;
|
||||
velocity.vy = 0;
|
||||
steam->SetVel( velocity );
|
||||
steam->SetHorizontal( true );
|
||||
}
|
59
source/triggers/tsrightemit.h
Normal file
59
source/triggers/tsrightemit.h
Normal file
|
@ -0,0 +1,59 @@
|
|||
/*=========================================================================
|
||||
|
||||
tsrightemit.h
|
||||
|
||||
Author: CRB
|
||||
Created:
|
||||
Project: Spongebob
|
||||
Purpose:
|
||||
|
||||
Copyright (c) 2001 Climax Development Ltd
|
||||
|
||||
===========================================================================*/
|
||||
|
||||
#ifndef __TRIGGERS_TSRIGHTEMIT_H__
|
||||
#define __TRIGGERS_TSRIGHTEMIT_H__
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Includes
|
||||
-------- */
|
||||
|
||||
#ifndef __THING_THING_H__
|
||||
#include "thing/thing.h"
|
||||
#endif
|
||||
|
||||
#ifndef __TRIGGERS_TSEMIT_H__
|
||||
#include "triggers\tsemit.h"
|
||||
#endif
|
||||
|
||||
/* Std Lib
|
||||
------- */
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Tyepdefs && Defines
|
||||
------------------- */
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Structure defintions
|
||||
-------------------- */
|
||||
|
||||
class CSteamRightEmitterTrigger : public CSteamEmitterTrigger
|
||||
{
|
||||
public:
|
||||
virtual void setPositionAndSize(int _x,int _y,int _w,int _h);
|
||||
};
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Globals
|
||||
------- */
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Functions
|
||||
--------- */
|
||||
|
||||
/*---------------------------------------------------------------------- */
|
||||
|
||||
#endif
|
||||
|
||||
/*===========================================================================
|
||||
end */
|
Loading…
Add table
Reference in a new issue