Adds a new state to the current state set if it is not already present.
If the state is already in the state set, the state set is unchanged and
the return value is false
. Otherwise, the state is added to the
state set and the return value is true
.
state | the state to add to the state set |
true
if state is added to the state set; false
if
the state set is unchanged
Diagram: Support