Arbor 3: FSM & BT Graph Editor  3.5.1
NodeBehaviourList< T > Class Template Reference

NodeBehaviour list More...

Public Member Functions

void Add (T behaviour)
 Adds the Behaviour. More...
 
void Insert (int index, T behaviour)
 Insert the Behaviour. More...
 
Object GetObject (int index)
 Get Object of NodeBehaviour from index. More...
 
void SetObject (int index, Object obj)
 Set Object of NodeBehaviour to index. More...
 
int IndexOf (Object obj)
 Return index of NodeBehaviour. More...
 
void Swap (int fromIndex, int toIndex)
 Swap the order of NodeBehaviour. More...
 
void Move (int fromIndex, int toIndex)
 Move the order of NodeBehaviour. More...
 
void Destroy (Node node, Object behaviour)
 Destroy NodeBehaviour More...
 
void Destroy (Node node, int behaviourIndex)
 Destroy NodeBehaviour More...
 
void DestroyAll (Node node)
 Destroy All NodeBehaviour. More...
 
void MoveBehaviour (Node node)
 Move NodeBehaviour to node. More...
 
bool Contains (T behaviour)
 Returns whether it contains behaviour. More...
 
bool ContainsObject (Object obj)
 Returns whether it contains obj. More...
 

Properties

int count [get]
 Count More...
 
this[int i] [get, set]
 Access to specified index More...
 

Detailed Description

NodeBehaviour list

Template Parameters
TNodeBehaviour type
Type Constraints
T :NodeBehaviour 

Member Function Documentation

void Add ( behaviour)

Adds the Behaviour.

Parameters
behaviourAdd NodeBehaviour
bool Contains ( behaviour)

Returns whether it contains behaviour.

Parameters
behaviourCheck target
Returns
Returns true if it contains.
bool ContainsObject ( Object  obj)

Returns whether it contains obj.

Parameters
objCheck target
Returns
Returns true if it contains.
void Destroy ( Node  node,
Object  behaviour 
)

Destroy NodeBehaviour

Parameters
nodeNode that has NodeBehaviour
behaviourObject of NodeBehaviour
void Destroy ( Node  node,
int  behaviourIndex 
)

Destroy NodeBehaviour

Parameters
nodeNode that has NodeBehaviour
behaviourIndexThe index to discard
void DestroyAll ( Node  node)

Destroy All NodeBehaviour.

Parameters
nodeNode that has NodeBehaviour
Object GetObject ( int  index)

Get Object of NodeBehaviour from index.

Parameters
indexIndex
Returns
Object
int IndexOf ( Object  obj)

Return index of NodeBehaviour.

Parameters
objThe NodeBehaviour to locate in the State.
Returns
Returns an index if found, -1 otherwise.
void Insert ( int  index,
behaviour 
)

Insert the Behaviour.

Parameters
indexInsertion destination index
behaviourInsert NodeBehaviour
void Move ( int  fromIndex,
int  toIndex 
)

Move the order of NodeBehaviour.

Parameters
fromIndexThe moving want index.
toIndexThe destination index.
void MoveBehaviour ( Node  node)

Move NodeBehaviour to node.

Valid only in Editor.

Parameters
nodeMoving destination node
void SetObject ( int  index,
Object  obj 
)

Set Object of NodeBehaviour to index.

Parameters
indexIndex
objObject
void Swap ( int  fromIndex,
int  toIndex 
)

Swap the order of NodeBehaviour.

Parameters
fromIndexThe swapping want index.
toIndexExchange destination index.

Property Documentation

int count
get

Count

T this[int i]
getset

Access to specified index

Parameters
iIndex
Returns
NodeBehaviour stored in the index