Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Base class for any action that selected one object for the Sensor's pool.
Public Member Functions | |
override void | Init (Brain ai) |
Calling one time when AI initializing. More... | |
void | ApplyDetected (Brain ai) |
Applying object defined at the selectedObject to AI's memory. More... | |
sealed override Result | Pass (Brain ai) |
Performs base logic of sensor action. More... | |
virtual void | End (Brain ai) |
Occurs when action execution is ended. Calls each time the node got an explicit result as a Result.Success or Result.Fail More... | |
Public Attributes | |
bool | overrideOnlyIfEmpty = true |
If true than variable will overridden only if isEmpty. | |
string | selectedObjectVar |
Name of variable in AI's memory that contain the reference to found object. | |
bool | invertedResult = false |
Return inverted targetBuffer. Fail to Success, Success to Fail. | |
int | sensorID = 0 |
Target Sensor ID at the AISensorsManager. | |
Protected Member Functions | |
sealed override Result | InvertibleInternalPassLogic (Brain ai) |
Handler that should be used to define node's logic. More... | |
abstract Result | OnSelection (Brain ai) |
Handler that should select the object from the sensor. More... | |
sealed override Result | InternalPassLogic (Brain ai) |
Callback that calling by the pass More... | |
Protected Attributes | |
AISensorsManager | manager |
Reference to the manager. | |
Properties | |
GameObject | selectedObject [get, protected set] |
Reference to detected object. | |
Sensor | sensor [get, set] |
Manager that collect the sensor data. | |
PipelineItem | self [get, set] |
Reference to node that contains this action. | |
virtual DataManagement.DynamicResources.Version | version [get] |
Source version. More... | |
virtual string | author [get] |
Source author. | |
void Doloro.AI.Sensors.ASelectingSensorAction.ApplyDetected | ( | Brain | ai | ) |
Applying object defined at the selectedObject to AI's memory.
ai | Source AI instance. |
|
virtualinherited |
Occurs when action execution is ended. Calls each time the node got an explicit result as a Result.Success or Result.Fail
ai | Source AI entity. |
Reimplemented in Doloro.AI.Parallel, and Doloro.AI.LogicCoresRoot.
|
virtual |
Calling one time when AI initializing.
ai | Source AI entity. |
Reimplemented from Doloro.AI.Action.
Reimplemented in Doloro.AI.Sensors.Visual.
|
protectedvirtualinherited |
Callback that calling by the pass
ai |
Implements Doloro.AI.Sensors.ASensorAction.
|
protectedvirtual |
Handler that should be used to define node's logic.
ai | Source AI. |
Implements Doloro.AI.Sensors.AInvertibleSensorAction.
|
protectedpure virtual |
Handler that should select the object from the sensor.
ai | Source AI instance. |
In the handler you can be sure that Sensor.Count greater then 0, and selection required.
Implemented in Doloro.AI.Sensors.GetObjectFromZone, Doloro.AI.Sensors.SoundListener, and Doloro.AI.Sensors.Visual.
|
getinherited |
Source version.
Should be a constant value that defines what a version of relevant source is. Could be use for patching of the data according with version changes.