5#ifndef TEAM2026_TRANSITION_H
6#define TEAM2026_TRANSITION_H
11 class Transition :
public Node {
29 for (
int i = 0; i <
parent.size(); ++i) {
32 else parentReady |= node->enabled();
std::pmr::vector< Node * > parent
List of parents node of the current node.
Definition Node.h:38
bool isTransition
true if the current node is a transition
Definition Node.h:31
bool synchronize
true if the current node needs to wait for all its parent to be enabled before executing
Definition Node.h:33
void action() override
transition does nothing
Definition Transition.h:20
bool enabled() override
evaluate if the transition is enabled using the condition function, and the state of its parent will ...
Definition Transition.h:27
std::function< bool()> condition
std::function pointing toward a function returning true if the condition for the transition to be ena...
Definition Transition.h:39