SBSPSS/source/triggers/tsrightemit.cpp

38 lines
904 B
C++
Raw Normal View History

2001-06-08 15:34:33 +02:00
/*=========================================================================
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;
2001-06-08 18:51:31 +02:00
steam->SetSize( ( _h >> 4 ) * ONE );
2001-06-08 15:34:33 +02:00
DVECTOR velocity;
velocity.vx = _w >> 4;
velocity.vy = 0;
steam->SetVel( velocity );
steam->SetHorizontal( true );
}