variable
The behavior
variables define the state of the behavior.
They are sometime referred to as state variables.
variable ::= (type identifier = expression | data-type identifier = data-expression | data-type identifier) ";"
where type
and expression
must match.
For example:
bool idle = true;
Note: The
expression
used in the definition of a behavior variable must be a constant expression, i.e.: noaction
,call
orvariable
-reference is allowed.