MiniQuake2

src/miniquake2/game/ai/trail.ml

Provides miniquake2 game ai trail facilities for this project.

Package
miniquake2.game.ai.trail
Reachable
Yes

Imports

Declarations

Add

function Add(trail, spot, time)

Adds add to the state managed by the miniquake2 game ai trail module.

ParameterTypeDefaultDescription
traildynamic—trail value consumed by this operation.
spotdynamic—spot value consumed by this operation.
timedynamic—time value consumed by this operation.

View source

create

function create(active)

Creates create for the miniquake2 game ai trail module.

ParameterTypeDefaultDescription
activedynamic—active value consumed by this operation.

View source

LastSpot

function LastSpot(trail)

Return the last spot value.

ParameterTypeDefaultDescription
traildynamic—trail value consumed by this operation.

View source

New

function New(trail, spot, time)

Return the new value.

ParameterTypeDefaultDescription
traildynamic—trail value consumed by this operation.
spotdynamic—spot value consumed by this operation.
timedynamic—time value consumed by this operation.

View source

PickFirst

function PickFirst(trail, actor, visible)

Choose first.

ParameterTypeDefaultDescription
traildynamic—trail value consumed by this operation.
actordynamic—actor value consumed by this operation.
visibledynamic—visible value consumed by this operation.

View source

PickNext

function PickNext(trail, actor)

Choose next.

ParameterTypeDefaultDescription
traildynamic—trail value consumed by this operation.
actordynamic—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.

ParameterTypeDefaultDescription
traildynamic—trail value consumed by this operation.
activedynamic—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