Class: CALifeMonsterDetailPathManager
ALife monster detail-path manager binding.
Source
C++ class CALifeMonsterDetailPathManager
Custom Constructor
CALifeMonsterDetailPathManager
Remarks
Owned by an offline monster brain. Targets are validated against the game graph and current level graph.
Constructors
Constructor
new CALifeMonsterDetailPathManager(): CALifeMonsterDetailPathManager;Returns
CALifeMonsterDetailPathManager
Methods
actual()
actual(): boolean;Check whether the current detail path still matches the target.
Returns
boolean
Whether the path is actual.
completed()
completed(): boolean;Check whether the detail path reached its target.
Returns
boolean
Whether detail movement is complete.
failed()
failed(): boolean;Check whether the last path build failed.
Returns
boolean
Whether detail movement failed.
speed()
Call Signature
speed(speed: number): void;Set detail movement speed.
Parameters
| Parameter | Type | Description |
|---|---|---|
speed | number | New movement speed. |
Returns
void
Call Signature
speed(): number;Get detail movement speed.
Returns
number
Current movement speed.
target()
Call Signature
target(
game_vertex_id: number,
level_vertex_id: number,
position: vector): void;Set a target by graph vertex, level vertex, and position.
Parameters
| Parameter | Type | Description |
|---|---|---|
game_vertex_id | number | Target game graph vertex id. |
level_vertex_id | number | Target level vertex id. |
position | vector | Target position. |
Returns
void
Throws
If the graph vertex is invalid or does not match the level vertex and position on the current level.
Call Signature
target(game_vertex_id: number): void;Set a target by game graph vertex.
Parameters
| Parameter | Type | Description |
|---|---|---|
game_vertex_id | number | Target game graph vertex id. |
Returns
void
Throws
If game_vertex_id is not valid.
Call Signature
target(task: CALifeSmartTerrainTask): void;Set a target from a smart-terrain task.
Parameters
| Parameter | Type | Description |
|---|---|---|
task | CALifeSmartTerrainTask | Smart-terrain task. |
Returns
void
Remarks
The task is resolved to graph vertex, level vertex, and position before assigning the target.