| 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 |