MCPcopy Create free account
hub / github.com/bwapi/bwapi / conditionsCanBeMet

Method conditionsCanBeMet

bwapi/BWAPI/Source/BW/TriggerEngine.cpp:10–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 namespace Triggers
9 {
10 bool Trigger::conditionsCanBeMet() const
11 {
12 // iterate maximum number of conditions
13 for ( int i = 0; i < 16; ++i )
14 {
15 // return false if the condition can never be met
16 if ( !this->conditions[i].canBeTrue() )
17 return false;
18
19 // "None" also indicates the end of the list
20 if ( this->conditions[i].bConditionType == Conditions::None )
21 break;
22 }
23 return true;
24 }
25 bool Trigger::actionsAllowGameplay(DWORD dwExecutionPlayer, DWORD dwCheckingPlayer) const
26 {
27 // iterate maximum number of actions

Callers 1

onGameStartMethod · 0.80

Calls 1

canBeTrueMethod · 0.80

Tested by

no test coverage detected