MiniQuake2

src/miniquake2/game/ai/move.ml

Provides miniquake2 game ai move facilities for this project.

Package
miniquake2.game.ai.move
Reachable
Yes

Imports

Declarations

CloseEnough

function CloseEnough(actor, goal, distance)

Close enough.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
goaldynamic—goal value consumed by this operation.
distancedynamic—distance value consumed by this operation.

View source

contentsAt

inline function contentsAt(point, context)

Return the contents for the requested position.

ParameterTypeDefaultDescription
pointdynamic—point value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

InitializeActor

function InitializeActor(actor, context)

Initialize actor.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

linkAndTouch

inline function linkAndTouch(actor, context)

Link and touch.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

M_CategorizePosition

function M_CategorizePosition(actor, context)

Return the m categorize position.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

M_CheckBottom

function M_CheckBottom(actor, context)

Validate m bottom.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

M_CheckGround

function M_CheckGround(actor, context)

Validate m ground.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

M_DropToFloor

function M_DropToFloor(actor, context)

Drop m to floor.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

movePointScratch

movePointScratch

Stores module-wide move point scratch state for the miniquake2 game ai move module.

View source

MoveToGoal

function MoveToGoal(actor, distance, context)

Move to goal.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
distancedynamic—distance value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

moveTraceEndScratch

moveTraceEndScratch

Stores module-wide move trace end scratch state for the miniquake2 game ai move module.

View source

moveTraceStartScratch

moveTraceStartScratch

Stores module-wide move trace start scratch state for the miniquake2 game ai move module.

View source

moveZeroScratch

moveZeroScratch

Stores module-wide move zero scratch state for the miniquake2 game ai move module.

View source

NewChaseDirection

function NewChaseDirection(actor, goal, distance, context)

Return the new chase direction value.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
goaldynamic—goal value consumed by this operation.
distancedynamic—distance value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

NO_DIRECTION

const NO_DIRECTION = -1.

Defines the no direction constant used by the miniquake2 game ai move module.

View source

randomInteger

inline function randomInteger(context)

Return the random integer value.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.

View source

setOrigin

inline function setOrigin(actor, x, y, z)

Set origin.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
xdynamic—Horizontal coordinate used by the operation.
ydynamic—Vertical coordinate used by the operation.
zdynamic—z value consumed by this operation.

View source

STEP_SIZE

const STEP_SIZE = 18.

Defines the step size constant used by the miniquake2 game ai move module.

View source

StepDirection

function StepDirection(actor, yaw, distance, context)

Advance direction.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
yawdynamic—yaw value consumed by this operation.
distancedynamic—distance value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

traceMove

inline function traceMove(actor, start, mins, maxs, finish, context)

Trace move.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
startdynamic—start value consumed by this operation.
minsdynamic—mins value consumed by this operation.
maxsdynamic—maxs value consumed by this operation.
finishdynamic—finish value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

WalkMove

function WalkMove(actor, yaw, distance, context)

Move walk.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
yawdynamic—yaw value consumed by this operation.
distancedynamic—distance value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source