Files
src/miniquake2/game/ai/trail.ml
Provides miniquake2 game ai trail facilities for this project.
- Package
miniquake2.game.ai.trail- Reachable
- Yes
Imports
miniquake2/game/ai/types.ml as aitrailtypes → src/miniquake2/game/ai/types.mlstd/math.ml as aitrailmath → ../MiniLangCompilerML/std/math.ml external dependency
Declarations
# Add
function Add(trail, spot, time)
Adds add to the state managed by the miniquake2 game ai trail module.
| Parameter | Type | Default | Description |
|---|
trail | dynamic | — | trail value consumed by this operation. |
spot | dynamic | — | spot value consumed by this operation. |
time | dynamic | — | time value consumed by this operation. |
View source
# create
function create(active)
Creates create for the miniquake2 game ai trail module.
| Parameter | Type | Default | Description |
|---|
active | dynamic | — | active value consumed by this operation. |
View source
# LastSpot
function LastSpot(trail)
Return the last spot value.
| Parameter | Type | Default | Description |
|---|
trail | dynamic | — | trail value consumed by this operation. |
View source
# New
function New(trail, spot, time)
Return the new value.
| Parameter | Type | Default | Description |
|---|
trail | dynamic | — | trail value consumed by this operation. |
spot | dynamic | — | spot value consumed by this operation. |
time | dynamic | — | time value consumed by this operation. |
View source
# PickFirst
function PickFirst(trail, actor, visible)
Choose first.
| Parameter | Type | Default | Description |
|---|
trail | dynamic | — | trail value consumed by this operation. |
actor | dynamic | — | actor value consumed by this operation. |
visible | dynamic | — | visible value consumed by this operation. |
View source
# PickNext
function PickNext(trail, actor)
Choose next.
| Parameter | Type | Default | Description |
|---|
trail | dynamic | — | trail value consumed by this operation. |
actor | dynamic | — | actor value consumed by this operation. |
View source
miniquake2.game.ai.trail.PlayerTrail struct
# Reset
function Reset(trail, active)
Performs the Reset operation for the miniquake2 game ai trail module.
| Parameter | Type | Default | Description |
|---|
trail | dynamic | — | trail value consumed by this operation. |
active | dynamic | — | active value consumed by this operation. |
View source
# TRAIL_LENGTH
const TRAIL_LENGTH = 8
Defines the trail length constant used by the miniquake2 game ai trail module.
View source