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

Method NPCMessage

src/SB/Game/zNPCGoalStd.cpp:425–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425S32 zNPCGoalIdle::NPCMessage(NPCMsg* mail)
426{
427 S32 handled = 0;
428
429 switch (mail->msgid)
430 {
431 case NPC_MID_BECOMESCARED:
432 case NPC_MID_NOLONGERSCARED:
433 {
434 zNPCGoalCommon* goal = (zNPCGoalCommon*)psyche->GetCurGoal();
435 if (goal != NULL)
436 {
437 goal->DoAutoAnim(NPC_GSPOT_RESUME, 0);
438 }
439 handled = 0;
440 break;
441 }
442 }
443
444 return handled;
445}
446
447S32 zNPCGoalPatrol::Enter(F32 dt, void* updCtxt)
448{

Callers 2

zNPCMsg_SendMsgFunction · 0.45
zNPCMsg_AreaNotifyFunction · 0.45

Calls 4

GetCurGoalMethod · 0.80
DoAutoAnimMethod · 0.80
GIDOfSafetyMethod · 0.80
GoalSetMethod · 0.80

Tested by

no test coverage detected