Copyright VirtualSim 2004-2020 - All rights reserved
State
A State is a Logic object that contains a user code processed at a given frequency. Once a State is activated, the OnEnter part is executed once and the logical flow stops.
Several Transitions can raise from a State towards other logic objects. The first to be activated will make the State exits and the OnExit part be executed once.
Code Hints
scen() or S: is a macro that returns a pointer to the Scenario instance that holds the Entity instance that holds the Logic instance that holds the current State.
ent() or E: is a macro that returns a pointer to the Entity instance that holds the Logic instance that holds the current State.
logk() or L: is a macro that returns a pointer to the Logic instance that holds the current State.
group() or G: is a macro that returns a pointer to the current Group, if any, that holds the current State. NULL if none.