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

Method Reconfigure

src/SB/Game/zNPCHazard.cpp:198–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void NPCHazard::Reconfigure(en_npchaz haztype)
199{
200 HAZNotify* noter = this->cb_notify;
201 zNPCCommon* npc_old = this->npc_owner;
202 xVec3 old_pos;
203 xVec3Copy(&old_pos, &this->pos_hazard);
204 this->Cleanup();
205 this->WipeIt();
206 this->flg_hazard = 0x21;
207 this->ConfigHelper(haztype);
208 this->PosSet(&old_pos);
209 this->NotifyCBSet(noter);
210 this->SetNPCOwner(npc_old);
211 if (this->cb_notify != NULL)
212 {
213 this->cb_notify->Notify(HAZ_NOTE_RECONFIG, this);
214 }
215}
216
217void NPCHazard::FreeModel()
218{

Callers

nothing calls this directly

Calls 8

WipeItMethod · 0.95
ConfigHelperMethod · 0.95
PosSetMethod · 0.95
NotifyCBSetMethod · 0.95
SetNPCOwnerMethod · 0.95
xVec3CopyFunction · 0.85
CleanupMethod · 0.80
NotifyMethod · 0.45

Tested by

no test coverage detected