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

Method SelfSetup

src/SB/Game/zNPCTypeDutchman.cpp:1290–1303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1288}
1289
1290void zNPCDutchman::SelfSetup()
1291{
1292 xBehaveMgr* bmgr = xBehaveMgr_GetSelf();
1293 this->psy_instinct = bmgr->Subscribe(this, 0);
1294 xPsyche* psy = this->psy_instinct;
1295 psy->BrainBegin();
1296 S32 i;
1297 for (i = NPC_GOAL_DUTCHMANNIL; i <= NPC_GOAL_DUTCHMANDEATH; i++)
1298 {
1299 psy->AddGoal(i, this);
1300 }
1301 psy->BrainEnd();
1302 psy->SetSafety(NPC_GOAL_DUTCHMANIDLE);
1303}
1304
1305void zNPCDutchman::Damage(en_NPC_DAMAGE_TYPE, xBase*, const xVec3*)
1306{

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