Difference between revisions of "CBrain"

From King Arthur's Gold Wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 31: Line 31:
 
| {{:CBrain::SetTarget|SetTarget}}
 
| {{:CBrain::SetTarget|SetTarget}}
 
|-
 
|-
| [[CBrain::SetPathtTo|SetPathtTo]]
+
| [[CBrain::SetPathTo|SetPathTo]]
| {{:CBrain::SetPathtTo|SetPathtTo}}
+
| {{:CBrain::SetPathTo|SetPathTo}}
 
|-
 
|-
 
| [[CBrain::getNextPathPosition|getNextPathPosition]]
 
| [[CBrain::getNextPathPosition|getNextPathPosition]]
Line 48: Line 48:
 
| [[CBrain::getState|getState]]
 
| [[CBrain::getState|getState]]
 
| {{:CBrain::getState|getState}}
 
| {{:CBrain::getState|getState}}
 +
|-
 +
|}
 +
 +
Enum (BrainState):
 +
 +
This is an enum, accessed by referencing CBrain::state_name, e.g. CBrain::idle. Generally it will be used for comparison with the value returned by [[CBrain::getState|getState]].
 +
{| class="wikitableShiny" border="1"
 +
|-
 +
! '''Name'''
 +
! '''Description'''
 +
|-
 +
| idle
 +
|
 +
|-
 +
| searching
 +
|
 +
|-
 +
| wrong_path
 +
|
 +
|-
 +
| has_path
 +
|
 +
|-
 +
| stuck
 +
|
 
|-
 
|-
 
|}
 
|}

Latest revision as of 13:24, 8 September 2012



Methods:

Method Description
getBlob

Returns a reference to the CBlob that owns this object. It is a method common to several object types that are considered 'components'.

SetActive


RemoveScript


AddScript


getVars


getTarget


SetTarget


SetPathTo


getNextPathPosition


getPathSize


getPathPositionAtIndex


SetSuggestedKeys


getState


Enum (BrainState):

This is an enum, accessed by referencing CBrain::state_name, e.g. CBrain::idle. Generally it will be used for comparison with the value returned by getState.

Name Description
idle
searching
wrong_path
has_path
stuck