/*************/ /*** Steam ***/ /*************/ #include "system\global.h" #include #include "utils\utils.h" #include "gfx\prim.h" #include "gfx\sprbank.h" #include #include "level\level.h" #include "FX\FXSteam.h" static const int DefSize=4*ONE; static const int DefAngleInc=999; static const int DefShadeBase=255; static const int DefShadeDec=8; static const int DefShadeDieDec=24; /*****************************************************************************/ /*****************************************************************************/ /*****************************************************************************/ void CFXSteam::init(DVECTOR const &_Pos) { CFXTrail::init(_Pos); Trans=3; ShadeDec=DefShadeDec; DieOut=false; SetSize(DefSize); } /*****************************************************************************/ void CFXSteam::shutdown() { CFX::shutdown(); } /*****************************************************************************/ void CFXSteam::SetSize(int Size) { Size>>=12; ScaleInc=(4096/LIST_SIZE)*Size; BaseVel.vx=0; BaseVel.vy=-Size; } /*****************************************************************************/ void CFXSteam::setDie() { CFXTrail::setDie(); for (int i=0; i