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

Function zMovePointEventCB

src/SB/Game/zMovePoint.cpp:75–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75S32 zMovePointEventCB(xBase* from, xBase* to, U32 toEvent, const F32* toParam, xBase* b3)
76{
77 switch (toEvent)
78 {
79 case eEventOn:
80 ((zMovePoint*)to)->on = true;
81 break;
82 case eEventOff:
83 ((zMovePoint*)to)->on = false;
84 break;
85 case eEventArrive:
86 break;
87 case eEventReset:
88 zMovePointReset((zMovePoint*)to);
89 break;
90 case eEventMakeASplash:
91 xVec3* pos = ((zMovePoint*)to)->pos;
92 if (pos != NULL)
93 {
94 if (*toParam < 1e-5f)
95 {
96 NPCC_MakeASplash(pos, -1.0f);
97 }
98 else
99 {
100 NPCC_MakeASplash(pos, *toParam);
101 }
102 }
103 break;
104 }
105 return eEventEnable;
106}
107
108F32 zMovePointGetNext(const zMovePoint* current, const zMovePoint* prev, zMovePoint** next,
109 xVec3* hdng)

Callers

nothing calls this directly

Calls 2

zMovePointResetFunction · 0.85
NPCC_MakeASplashFunction · 0.85

Tested by

no test coverage detected