MCPcopy Create free account
hub / github.com/crossuo/crossuo / CreateExplodeEffect

Method CreateExplodeEffect

src/Managers/EffectManager.cpp:114–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void CEffectManager::CreateExplodeEffect(CGameEffect *effect, const EFFECT_TYPE &type)
115{
116 CGameEffect *newEffect = new CGameEffect();
117
118 newEffect->EffectType = type;
119 newEffect->Serial = effect->DestSerial;
120 newEffect->SetX(effect->DestX);
121 newEffect->SetY(effect->DestY);
122 newEffect->SetZ(effect->DestZ);
123 newEffect->Graphic = 0x36CB;
124 newEffect->Speed = 50;
125 newEffect->Duration = g_Ticks + 400;
126 newEffect->FixedDirection = effect->FixedDirection;
127
128 newEffect->Color = effect->Color;
129 newEffect->RenderMode = effect->RenderMode;
130
131 AddEffect(newEffect);
132}
133
134void CEffectManager::UpdateEffects()
135{

Callers 1

UpdateMethod · 0.80

Calls 3

SetXMethod · 0.80
SetYMethod · 0.80
SetZMethod · 0.80

Tested by

no test coverage detected