MiniQuake2

src/miniquake2/game/ai/archetypes.ml

Provides miniquake2 game ai archetypes facilities for this project.

Package
miniquake2.game.ai.archetypes
Reachable
Yes

Imports

Declarations

archetype

function archetype(className, model, mins, maxs, health, gibHealth, mass, movement, hasAttack, hasMelee)

Return the archetype value.

ParameterTypeDefaultDescription
classNamedynamic—className value consumed by this operation.
modeldynamic—model value consumed by this operation.
minsdynamic—mins value consumed by this operation.
maxsdynamic—maxs value consumed by this operation.
healthdynamic—health value consumed by this operation.
gibHealthdynamic—gibHealth value consumed by this operation.
massdynamic—mass value consumed by this operation.
movementdynamic—movement value consumed by this operation.
hasAttackdynamic—hasAttack value consumed by this operation.
hasMeleedynamic—hasMelee value consumed by this operation.

View source

defaultRegistry

function defaultRegistry()

Performs the defaultRegistry operation for the miniquake2 game ai archetypes module.

View source

find

function find(registry, className)

Finds find used by the miniquake2 game ai archetypes module.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
classNamedynamic—className value consumed by this operation.

View source

idleMove

function idleMove()

Move idle.

View source

ReinitializeMonster

function ReinitializeMonster(actor, context)

Return the reinitialize monster value.

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

View source

SpawnMonster

function SpawnMonster(registry, className, number, context)

Spawn monster.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
classNamedynamic—className value consumed by this operation.
numberdynamic—number value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

validate

function validate(registry)

Validates validate for the miniquake2 game ai archetypes workflow.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.

View source