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

Method update

src/SB/Game/zDiscoFloor.cpp:754–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752}
753
754void z_disco_floor::update(xScene&, F32 dt)
755{
756 if (!flag.enabled)
757 {
758 flag.culled = true;
759 return;
760 }
761
762 distance_cull();
763
764 if (flag.culled)
765 {
766 return;
767 }
768
769 update_pulse(dt);
770
771 sound_delay += dt;
772
773 if (transition_time < transition_delay)
774 {
775 dt = update_transition(*this, dt);
776 }
777
778 if (dt > 0.0f)
779 {
780 update_state(*this, dt);
781 }
782}
783
784void z_disco_floor::set_state(size_t state, bool immediate)
785{

Callers

nothing calls this directly

Calls 3

distance_cullFunction · 0.85
update_transitionFunction · 0.85
update_stateFunction · 0.70

Tested by

no test coverage detected