Copyright VirtualSim 2004-2020 - All rights reserved
Action
An Action is a Logic object that is called once and performs a specific action defined in a user code. An Action is a one-shot execution. It is triggered from another object connector or Transition.
The difference with a State is that an action always exit and activate its connector. The exit process can be delayed using the embedded Delay (see Properties).
When Actions are sequenced, each of them occupies one cycle, unless the Immediate option is checked.
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 Action.
ent() or E: is a macro that returns a pointer to the Entity instance that holds the Logic instance that holds the current Action.
logk() or L: is a macro that returns a pointer to the Logic instance that holds the current Action.
group() or G: is a macro that returns a pointer to the current Group, if any, that holds the current Action. NULL if none.