Arbor 3: FSM & BT Graph Editor  3.7.8
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

◆ Add()

void Add ( behaviour)

Adds the Behaviour.

Parameters
behaviourAdd NodeBehaviour

◆ Contains()

bool Contains ( behaviour)

Returns whether it contains behaviour.

Parameters
behaviourCheck target
Returns
Returns true if it contains.

◆ ContainsObject()

bool ContainsObject ( Object  obj)

Returns whether it contains obj.

Parameters
objCheck target
Returns
Returns true if it contains.

◆ Destroy() [1/2]

void Destroy ( Node  node,
int  behaviourIndex 
)

Destroy NodeBehaviour

Parameters
nodeNode that has NodeBehaviour
behaviourIndexThe index to discard

◆ Destroy() [2/2]

void Destroy ( Node  node,
Object  behaviour 
)

Destroy NodeBehaviour

Parameters
nodeNode that has NodeBehaviour
behaviourObject of NodeBehaviour

◆ DestroyAll()

void DestroyAll ( Node  node)

Destroy All NodeBehaviour.

Parameters
nodeNode that has NodeBehaviour

◆ GetObject()

Object GetObject ( int  index)

Get Object of NodeBehaviour from index.

Parameters
indexIndex
Returns
Object

◆ IndexOf()

int IndexOf ( Object  obj)

Return index of NodeBehaviour.

Parameters
objThe NodeBehaviour to locate in the State.
Returns
Returns an index if found, -1 otherwise.

◆ Insert()

void Insert ( int  index,
behaviour 
)

Insert the Behaviour.

Parameters
indexInsertion destination index
behaviourInsert NodeBehaviour

◆ Move()

void Move ( int  fromIndex,
int  toIndex 
)

Move the order of NodeBehaviour.

Parameters
fromIndexThe moving want index.
toIndexThe destination index.

◆ MoveBehaviour()

void MoveBehaviour ( Node  node)

Move NodeBehaviour to node.

Valid only in Editor.

Parameters
nodeMoving destination node

◆ SetObject()

void SetObject ( int  index,
Object  obj 
)

Set Object of NodeBehaviour to index.

Parameters
indexIndex
objObject

◆ Swap()

void Swap ( int  fromIndex,
int  toIndex 
)

Swap the order of NodeBehaviour.

Parameters
fromIndexThe swapping want index.
toIndexExchange destination index.

Property Documentation

◆ count

int count
get

Count

◆ this[int i]

T this[int i]
getset

Access to specified index

Parameters
iIndex
Returns
NodeBehaviour stored in the index