Class DesertGuardCondition
Defined in File DesertGuardCondition.h
Class Documentation
-
class DesertGuardCondition
Public Functions
-
DesertGuardCondition()
Create a guard condition.
-
void trigger()
Trigger the guard condition.
The trigger function sets the status of the atomic bool variable _has_triggered to save the new status of the guard condition.
-
bool has_triggered()
Check if the guard condition has triggered.
The has_triggered function returns a bool value with the status of the guard condition. Its internal state is not modified.
- Returns:
True if the guard condition has triggered otherwise false
-
bool get_has_triggered()
Check if the guard condition has triggered.
The get_has_triggered function returns a bool value with the status of the guard condition and resets the internal state to false.
- Returns:
True if the guard condition has triggered otherwise false
-
DesertGuardCondition()