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

Method SelfSetup

src/SB/Game/zNPCTypeBossSB2.cpp:1214–1227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1212}
1213
1214void zNPCB_SB2::SelfSetup()
1215{
1216 xBehaveMgr* bmgr = xBehaveMgr_GetSelf();
1217 xPsyche* psy = 0;
1218 this->psy_instinct = bmgr->Subscribe(this, NULL);
1219 this->psy_instinct->BrainBegin();
1220 for (S32 i = NPC_GOAL_BOSSSB2INTRO; i <= NPC_GOAL_BOSSSB2DEATH; i++)
1221 {
1222 psy_instinct->AddGoal(i, this);
1223 }
1224 psy_instinct->AddGoal(NPC_GOAL_LIMBO, this);
1225 psy_instinct->BrainEnd();
1226 psy_instinct->SetSafety(NPC_GOAL_BOSSSB2IDLE);
1227}
1228
1229void zNPCB_SB2::Reset()
1230{

Callers

nothing calls this directly

Calls 6

xBehaveMgr_GetSelfFunction · 0.85
BrainBeginMethod · 0.80
AddGoalMethod · 0.80
BrainEndMethod · 0.80
SetSafetyMethod · 0.80
SubscribeMethod · 0.45

Tested by

no test coverage detected