MiniQuake2

src/miniquake2/game/ai/actor.ml

Provides miniquake2 game ai actor facilities for this project.

Package
miniquake2.game.ai.actor
Reachable
Yes

Imports

Declarations

actorAttack

function actorAttack(actor, context)

Run actor.

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

View source

actorDead

function actorDead(actor, context)

Return the actor dead value.

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

View source

actorDeath1Distances

actorDeath1Distances

Stores module-wide actor death1 distances state for the miniquake2 game ai actor module.

View source

actorDeath2Distances

actorDeath2Distances

Stores module-wide actor death2 distances state for the miniquake2 game ai actor module.

View source

actorDeathMove

function actorDeathMove(variant)

Move actor death.

ParameterTypeDefaultDescription
variantdynamic—variant value consumed by this operation.

View source

actorDie

function actorDie(actor, attacker, damage, context)

Handle actor.

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

View source

actorMakeMove

function actorMakeMove(name, firstFrame, lastFrame, aiFunction, distances, endFunction)

Create actor move.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.
firstFramedynamic—firstFrame value consumed by this operation.
lastFramedynamic—lastFrame value consumed by this operation.
aiFunctiondynamic—aiFunction value consumed by this operation.
distancesdynamic—distances value consumed by this operation.
endFunctiondynamic—endFunction value consumed by this operation.

View source

actorPain

function actorPain(actor, attacker, damage, context)

Handle actor.

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

View source

actorPain1Distances

actorPain1Distances

Stores module-wide actor pain1 distances state for the miniquake2 game ai actor module.

View source

actorPain2Distances

actorPain2Distances

Stores module-wide actor pain2 distances state for the miniquake2 game ai actor module.

View source

actorPain3Distances

actorPain3Distances

Stores module-wide actor pain3 distances state for the miniquake2 game ai actor module.

View source

actorPainMove

function actorPainMove(variant)

Handle actor move.

ParameterTypeDefaultDescription
variantdynamic—variant value consumed by this operation.

View source

actorRandomInteger

function actorRandomInteger(context, fallback)

Return the actor random integer value.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
fallbackdynamic—Value returned when no explicit result is available.

View source

actorRandomUnit

function actorRandomUnit(context, fallback)

Return the actor random unit value.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
fallbackdynamic—Value returned when no explicit result is available.

View source

actorRun

function actorRun(actor, context)

Run actor.

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

View source

actorRunDistances

actorRunDistances

Stores module-wide actor run distances state for the miniquake2 game ai actor module.

View source

actorRunMove

function actorRunMove()

Run actor move.

View source

actorSetMove

function actorSetMove(actor, move)

Set actor move.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
movedynamic—move value consumed by this operation.

View source

actorStand

function actorStand(actor, context)

Return the actor stand value.

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

View source

actorStandMove

function actorStandMove()

Move actor stand.

View source

actorTauntMove

function actorTauntMove(flipOff)

Move actor taunt.

ParameterTypeDefaultDescription
flipOffdynamic—flipOff value consumed by this operation.

View source

actorUse

function actorUse(actor, other, activator, context)

Use actor.

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

View source

actorWalk

function actorWalk(actor, context)

Return the actor walk value.

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

View source

actorWalkDistances

actorWalkDistances

Stores module-wide actor walk distances state for the miniquake2 game ai actor module.

View source

actorWalkMove

function actorWalkMove()

Move actor walk.

View source

configure

function configure(actor, context)

Performs the configure operation for the miniquake2 game ai actor module.

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

View source

restoreMove

function restoreMove(actor, moveName)

Restore move.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
moveNamedynamic—moveName value consumed by this operation.

View source