The BehaviorSequence class - specialized Behavior executing sequence of provided subbehaviors one by one.
More...
|
virtual Behavior | RecoveryBehavior => recoveryBehavior |
|
Behavior | recoveryBehavior |
|
BehaviorStatus | Status [get, set] |
|
The BehaviorSequence class - specialized Behavior executing sequence of provided subbehaviors one by one.
◆ AddBehavior()
void Grail.Core.BehaviorSequence.AddBehavior |
( |
Behavior |
behavior | ) |
|
|
inline |
AddBehavior - method emplacing new behavior in the sequence
- Parameters
-
behavior | behavior added to the sequence |
◆ Finish()
override void Grail.Core.BehaviorSequence.Finish |
( |
AIEntity |
owner, |
|
|
in BehaviorStatus |
status |
|
) |
| |
|
inlinevirtual |
Invoked after the behavior is finished or interrupted
- Parameters
-
owner | - the entity executing this behavior |
Reimplemented from Grail.Core.Behavior.
◆ IsFinished()
override bool Grail.Core.BehaviorSequence.IsFinished |
( |
AIEntity |
owner | ) |
|
|
inlinevirtual |
◆ IsInterruptible()
override bool Grail.Core.BehaviorSequence.IsInterruptible |
( |
| ) |
|
|
inlinevirtual |
IsInterruptible
- Returns
- true if current subbehavior is interruptible, false otherwise
Reimplemented from Grail.Core.Behavior.
◆ IsLegal()
override bool Grail.Core.BehaviorSequence.IsLegal |
( |
AIEntity |
owner | ) |
|
|
inlinevirtual |
IsLegal
- Parameters
-
- Returns
- true if current subbehavior is legal, false otherwise
Reimplemented from Grail.Core.Behavior.
◆ Start()
override void Grail.Core.BehaviorSequence.Start |
( |
AIEntity |
owner | ) |
|
|
inlinevirtual |
Invoked after the behavior is assigned to AIEntity
- Parameters
-
owner | - the entity executing this behavior |
Reimplemented from Grail.Core.Behavior.
◆ Update()
override void Grail.Core.BehaviorSequence.Update |
( |
AIEntity |
owner, |
|
|
float |
deltaTime |
|
) |
| |
|
inlinevirtual |
The documentation for this class was generated from the following file:
- GrailCore/source/BehaviorSequence.cs