Click or drag to resize
ReferenceTask Class
Task which references another task. It's required to build a behavior tree in an editor where the concrete tasks are not known, but only their descriptions. Through this class it's possible to write a xml file for the application anyway.
Inheritance Hierarchy
SystemObject
  Slash.AI.BehaviorTrees.ImplementationsReferenceTask

Namespace: Slash.AI.BehaviorTrees.Implementations
Assembly: Slash.AI.BehaviorTrees (in Slash.AI.BehaviorTrees.dll) Version: 1.0.6018.40184
Syntax
[SerializableAttribute]
public class ReferenceTask : ITask, 
	IXmlSerializable

The ReferenceTask type exposes the following members.

Constructors
  NameDescription
Public methodReferenceTask
Initializes a new instance of the ReferenceTask class. Constructor.
Top
Properties
  NameDescription
Public propertyDecoratorTask
Capsuled task if referenced task is a decorator.
Public propertyName
Debug name.
Public propertyTaskDescription
Description of the task which is referenced.
Top
Methods
  NameDescription
Public methodActivate
Activation.
Public methodDeactivate
Deactivation.
Public methodDecide
Depending on the group policy of its parent, the floating point return value indicates whether the task will be activated.
Public methodEquals(Object)
The equals.
(Overrides ObjectEquals(Object).)
Public methodEquals(ReferenceTask)
The equals.
Public methodFindTasks
Searches for tasks which forfill the passed predicate.
Public methodGetActiveTasks
Generates a collection of active task nodes under this task. Used for debugging only.
Public methodGetHashCode
The get hash code.
(Overrides ObjectGetHashCode.)
Public methodGetSchema
The get schema.
Public methodGetValueOrDefault
Returns the stored parameter value or, if none is set, the default value.
Public methodStatic memberReadUnknownTask
Reads an unknown task from xml and tries to capsule it into a ReferenceTask object. If no task description for the task type was found, null is returned.
Public methodReadXml
The read xml.
Public methodSetValue
Sets the value for the parameter with the specified description.
Public methodTryGetValue(TaskParameterDescription, Object)
Tries to fetch the value of the parameter with the passed description.
Public methodTryGetValueT(TaskParameterDescription, T)
Tries to fetch the value of the parameter with the passed description.
Public methodUpdate
Per frame update.
Public methodWriteXml
The write xml.
Top
Events
  NameDescription
Public eventOnSuccess
Called when task finished successful.
Public eventParameterChanged
Called when the value of a task parameter changed.
Public eventTaskDescriptionChanged
Called when the task description of the reference task changed.
Top
See Also