Types
actor-link-info: basicsource
Fields
type: type
process: process
next: entity-actor
prev: entity-actor
Methods
get-matching-actor-type-mask(obj: actor-link-info, matching-type: type) => intsource
Iterate through all actors that are part of this actor list.
If the nth actor is type matching-type, then set the nth bit of the result.
actor-count-before(obj: actor-link-info) => intsource
Get the number of actors before this actor in the list.
link-to-next-and-prev-actor(obj: actor-link-info) => entity-actorsource
Redo the linking in the constructor by looking up the next/prev actor.
get-next(obj: actor-link-info) => entity-actorsource
get-prev(obj: actor-link-info) => entity-actorsource
get-next-process(obj: actor-link-info) => processsource
Get the process for the next, if it exists.
get-prev-process(obj: actor-link-info) => processsource
Get the process for the prev, if it exists
apply-function-forward(obj: actor-link-info, arg0: function, arg1: object) => intsource
Iterate forward through actors, and apply this function. Starts at (-> obj next)
If the function returns truthy, stop iterating.
apply-function-reverse(obj: actor-link-info, arg0: function, arg1: object) => intsource
Iterate backward through actors and apply function.
If the function returns truth, stop iterating.
apply-all(obj: actor-link-info, arg0: function, arg1: object) => intsource
Apply to all entities. Starts at the back and hits everyone, including this object.
send-to-all(obj: actor-link-info, msg: symbol) => nonesource
send-to-all-after(obj: actor-link-info, message: symbol) => objectsource
Send an event to all processes after this link with no parameters.
send-to-all-before(obj: actor-link-info, message: symbol) => objectsource
Send an event to all processes before this link with no parameters.
send-to-next-and-prev(obj: actor-link-info, msg: symbol) => nonesource
Send an event to both next and prev with no params.
send-to-next(obj: actor-link-info, message: symbol) => nonesource
Send event arg0 to the next actor's process
send-to-prev(obj: actor-link-info, message: symbol) => nonesource
Send event arg1 to the next actor's process.
actor-count(obj: actor-link-info) => intsource
Count the number of actors in the entire list
Functions
actor-link-dead-hook(arg0: entity-actor, arg1: pointer) => symbolsource
Sets arg1 is the thing is dead. Does not continue the apply if the dead perm is set.
actor-link-subtask-complete-hook(arg0: entity-actor, arg1: pointer) => symbolsource
Sets arg1 if the thing is complete. Does not continue the apply if the complete perm is set.
alt-actor-list-subtask-incomplete-count(arg0: process-drawable) => intsource
Get the number of alt-actors which do not have the complete bit set in their perm.
entity-actor-count(res: res-lump, name: symbol) => intsource
Get the number of entities that this res references under the name.
This works on more than just next/prev.
entity-actor-lookup(lump: res-lump, name: symbol, idx: int) => entity-actorsource
Given an entity (the res-lump), look up a reference to another entity and return that entity.
Functions
ambient-hint-init-by-other(arg0: string, arg1: vector, arg2: symbol) => nonesource
ambient-hint-spawn(arg0: string, arg1: vector, arg2: process-tree, arg3: symbol) => objectsource
ambient-type-dark(arg0: drawable-ambient, arg1: vector) => nonesource
ambient-type-error(arg0: drawable-ambient, arg1: vector) => nonesource
ambient-type-hint(arg0: drawable-ambient, arg1: vector) => nonesource
ambient-type-light(arg0: drawable-ambient, arg1: vector) => nonesource
ambient-type-music(arg0: drawable-ambient, arg1: vector) => nonesource
ambient-type-ocean-near-off(arg0: drawable-ambient, arg1: vector) => nonesource
ambient-type-ocean-off(arg0: drawable-ambient, arg1: vector) => nonesource
ambient-type-poi(arg0: drawable-ambient, arg1: vector) => nonesource
ambient-type-sound(arg0: drawable-ambient, arg1: vector) => nonesource
ambient-type-sound-loop(arg0: drawable-ambient, arg1: vector) => nonesource
ambient-type-weather-off(arg0: drawable-ambient, arg1: vector) => nonesource
can-grab-display?(arg0: process) => symbolsource
kill-current-level-hint(arg0: pair, arg1: pair, arg2: symbol) => nonesource
level-hint-displayed?() => symbolsource
level-hint-init-by-other(arg0: text-id, arg1: string, arg2: entity) => nonesource
level-hint-process-cmd(arg0: pointer, arg1: int, arg2: int) => intsource
level-hint-spawn(arg0: text-id, arg1: string, arg2: entity, arg3: process-tree, arg4: game-task) => nonesource
level-hint-surpress!() => nonesource
level-hint-task-process(arg0: entity, arg1: uint128, arg2: string) => intsource
Variables
*execute-ambients*: symbolsource
*hint-semaphore*: pointersource
*level-hint-spool-name*: stringsource
Types
entity: res-lumpsource
Fields
type: type
length: int32
allocated-length: int32
data-base: pointer
data-top: pointer
data-size: int32
extra: entity-links
tag: pointer
trans: vector
aid: uint32
Methods
add-to-level!(obj: entity, lev-group: level-group, lev: level, aid: actor-id) => nonesource
Add us to a level.
remove-from-level!(obj: entity, arg0: level-group) => _type_source
Remove us from the level.
entity-actor: entitysource
Fields
type: type
length: int32
allocated-length: int32
data-base: pointer
data-top: pointer
data-size: int32
extra: entity-links
tag: pointer
trans: vector
aid: uint32
nav-mesh: nav-mesh
etype: type
task: game-task
vis-id: uint16
vis-id-signed: int16
quat: quaternion
Methods
next-actor(obj: entity-actor) => entity-actorsource
Utility function to look up the next actor in the list, assuming we don't have actor-link-info yet.
prev-actor(obj: entity-actor) => entity-actorsource
Look up previous actor in the list
debug-print(obj: entity-actor, mode: symbol, expected-type: type) => nonesource
Debug print info about an entity-actor. This is designed to generate rows for the table
printed by method debug-print-entities of level-group.