MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / reset

Method reset

src/SB/Core/x/xLaserBolt.cpp:49–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void xLaserBoltEmitter::reset()
50{
51 static_queue<bolt>::iterator it = this->bolts.begin();
52 while (it != this->bolts.end())
53 {
54 bolt& b = *it;
55
56 effect_data* itfx = this->fx[6];
57 effect_data* endfx = itfx + this->fxsize[6];
58 while (itfx != endfx)
59 {
60 emit_fx(*itfx, b, b.hit_dist, b.hit_dist, (1.0f / 60.0f));
61 itfx++;
62 }
63
64 ++it;
65 }
66
67 this->bolts.clear();
68 start_collide = 0;
69
70 for (S32 i = FX_WHEN_LAUNCH; i < MAX_FX_WHEN; i++)
71 {
72 reset_fx((fx_when_enum)i);
73 }
74}
75
76void xLaserBoltEmitter::refresh_config()
77{

Callers 2

par_sprite_updateFunction · 0.45
updateMethod · 0.45

Calls 3

beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected