SBSPSS/source/triggers/tsemit.cpp
Charles 01fca54fb1
2001-06-08 13:35:08 +00:00

35 lines
805 B
C++

/*=========================================================================
tsemit.cpp
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __TRIGGERS_TSEMIT_H__
#include "triggers\tsemit.h"
#endif
#ifndef __GAME_GAME_H__
#include "game\game.h"
#endif
#include "fx\fxsteam.h"
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CSteamEmitterTrigger::setPositionAndSize(int _x,int _y,int _w,int _h)
{
CTrigger::setPositionAndSize( _x, _y, _w, _h );
m_effect = CFX::Create( CFX::FX_TYPE_STEAM, Pos );
CFXSteam *steam = (CFXSteam *) m_effect;
steam->SetSize( ( _h >> 4 ) * ONE );
}