MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / qGoalCompleted

Function qGoalCompleted

scripts/DallasFuncs.cpp:6614–6620  ·  view source on GitHub ↗

$$QUERY Level Goals b:Goal [l:LevelGoal] is complete qGoalCompleted Goal is enabled Determines if the specified goal is complete Parameters: LevelGoal: the goal to check $$END */

Source from the content-addressed store, hash-verified

6612$$END
6613*/
6614bool qGoalCompleted(int goal_index) {
6615 int flags;
6616
6617 LGoal_Value(VF_GET, LGSV_I_STATUS, &flags, goal_index);
6618
6619 return ((flags & LGF_COMPLETED) != 0);
6620}
6621
6622/*
6623$$QUERY

Callers 8

CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls 1

LGoal_ValueFunction · 0.85

Tested by

no test coverage detected