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

Method SelfSetup

src/SB/Game/zNPCTypeBossPlankton.cpp:1195–1207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1193}
1194
1195void zNPCBPlankton::SelfSetup()
1196{
1197 xBehaveMgr* bmgr = xBehaveMgr_GetSelf();
1198 this->psy_instinct = bmgr->Subscribe(this, NULL);
1199 xPsyche* psy = this->psy_instinct;
1200 psy->BrainBegin();
1201 for (S32 i = NPC_GOAL_BPLANKTONIDLE; i <= NPC_GOAL_BPLANKTONBOMB; i++)
1202 {
1203 psy->AddGoal(i, this);
1204 }
1205 psy->BrainEnd();
1206 psy->SetSafety(NPC_GOAL_BPLANKTONIDLE);
1207}
1208
1209U32 zNPCBPlankton::AnimPick(S32 rawgoal, en_NPC_GOAL_SPOT gspot, xGoal* goal)
1210{

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