add_states


Description:

public void add_states (StateType[] types)

Adds the states of the specified types to the state set.

Note that because an StateSet is a read-only object, this method should be used to add states to a newly-created set which will then be returned by ref_state_set . It should not be used to modify the existing state of an object. See also notify_state_change.

Parameters:

this

an StateSet

types

an array of StateType

n_types

The number of elements in the array