Skip to main content

Creatures and AI

Types in Alta.Intelligence, Alta.Creatures, Alta.Combat and Alta.Pathfinding. 267 types, 76 with a hand-written page.

See the overview for what the columns mean and how this list is made.

Alta.Combat​

TypeKindBasePublic membersDocumented in, or what it is
DeadPluginclassAtmospherePlugin3Atmosphere plugin used while the player is dead: fades the fog to a set density and, optionally, colour.
DeathAnimationSettingsclassScriptableObject7ScriptableObject with the visuals for a death effect: a first burst, then ashes and a second burst. Read by PlayerSpecialEffectsController and the creature DeathEffect.
DeathAnimationSettings.CreateclassAltaMenuItemBase.Assets.Create.Township.Misc.ScriptableObject<DeathAnimationSettings>0Editor menu item that creates a new DeathAnimationSettings asset under the Township misc menu.
IndoorAmbienceBoostclassAtmospherePlugin3Atmosphere plugin for indoors that adds a fixed amount to the day time ambience colour so interiors aren't too dark.

Alta.Creatures​

TypeKindBasePublic membersDocumented in, or what it is
DeathEffectclassMonoBehaviour1Plays a creature's death dissolve: swaps its materials for ash materials and animates them, then the server destroys the entity. Headless servers just wait out the duration.
DeathEventclassAltaEvent<DeathEffect, DeathUnityEvent>0Inspector event that passes a DeathEffect. Used for a death effect's start and end events.
DeathUnityEventclassUnityEvent<DeathEffect>0Serializable UnityEvent that passes a DeathEffect, used by DeathEvent.
NestclassMonoBehaviour2A spot creatures can claim as a nest. Enabled nests are free and listed by type, and ActiveNest AI finds and claims them.
NestTypeenum1Kinds of creature nest. Only Spriggull.

Alta.Intelligence​

TypeKindBasePublic membersDocumented in, or what it is
Action<TAgent>abstract classIAction<TAgent>, IAction9Actions and decisions, Docks
ActionComponentabstract classMonoBehaviour, IActionSettings9Actions and decisions: The settings every action has:
ActionComponentSetclassMonoBehaviour1Actions and decisions: A MonoBehaviour whose child ActionComponents make up one set of choices.
ActionDecider<TAgent>classIActionDecider7Actions and decisions: Holds the possible targets and the current set (PossibilitySet), and picks the best action.
ActionFinishedHandlerdelegate0Callback for an AI action that finished or was cancelled, used by BasicActiveAction.Finished and Cancelled.
ActionSet<TAgent>class4Actions and decisions: The actions to choose from, split into BaseActions (no target) and TargetActions.
ActionSettingsUsedHandlerdelegate0Event handler for an AI action being used, passing the running action. Used by IActionSettings.Used.
ActionTarget<TAgent>structIActionTarget4Actions and decisions: A struct: an action, its target (or null) and its score.
ActiveAgentMoveCloserclassBasicActiveAgentMoveCloser<AgentMoveCloserSettings>0Actions and decisions
ActiveAgentRotateCloseclassBasicActiveAgentMoveCloser<AgentCircleCloserSettings>0Actions and decisions
ActiveAttackDirectionReactclassBasicActiveAction<Agent, AgentAttackDirectionReactSettings>1Actions and decisions
ActiveBlockCanceleableWanderclassActiveWander1A wander action that cancels itself when the agent's walker is blocked, or when it needs a target and has lost it.
ActiveCircleRepositionclassBasicActiveAction<Agent, AgentCircleRepositionSettings>1Actions and decisions
ActiveCircleTargetclassBasicActiveAction<Agent, AgentCircleTargetSettings>1Actions and decisions
ActiveCrawlclassBasicActiveAction<Agent, AgentCrawlSettings>1Actions and decisions
ActiveDelayEnterSetclassBasicActiveAction<Agent, AgentDelayEnterSetSettings>1Actions and decisions
ActiveDeletedclassBasicActiveAction<Agent, AgentDeletedSettings>1Actions and decisions: Destroys the creature's whole entity, through AltaCoroutine.DelayCall. A creature can despawn itself this way.
ActiveDisabledclassBasicActiveAction<Agent, AgentDisabledSettings>1Actions and decisions
ActiveDistanceFromTargetclassActiveNavigation<ActiveDistanceFromTarget, Agent, AgentDistanceFromTargetSettings>0Navigation action that makes the agent wander relative to its target's ground position, used to keep or gain distance from it.
ActiveEatclassBasicActiveAction<IInteractAgent, AgentEatSettings>1Action where an agent eats its target: it interacts with it, waits Delay, then destroys it. With IsImmediate the target is destroyed at once.
ActiveFaceTargetclassBasicActiveAction<Agent, AgentFaceTargetSettings>1Actions and decisions
ActiveFollowclassActiveNavigation<ActiveFollow, Agent, AgentFollowSettings>1Navigation action that follows the agent's target until within reach, or gives up when the target gets too far and hasn't hurt the agent enough.
ActiveIdleclassBasicActiveAction<Agent, AgentIdleSettings>2The running idle action for an agent, made from AgentIdleSettings. It waits a random duration and can turn to face or follow the target while it does.
ActiveInteractApproachclassActiveNavigation<ActiveInteractApproach, Agent, AgentInteractApproachSettings>1Navigation action that walks up to the target and then runs CanReach, or CantReach if the target is too high or low.
ActiveJumpAtclassBasicActiveAction<Agent, AgentJumpAtSettings>1Action where the agent leaps at its target with set velocity and gravity, finishing when it lands. Tells an IJumpAttacker agent it is jumping.
ActiveNavigation<TThis, TAgent, TSettings>classBasicActiveAction<TAgent, TSettings>1Base for creature actions that walk the agent to its target. Applies speed and acceleration from the settings and finishes when the navigator reaches the target.
ActiveNestclassActiveNavigation<ActiveNest, Agent, AgentNestSettings>1Night action: the agent walks to the nearest free Nest of its type and sleeps until the time of day passes StartTired. With no nest it wanders.
ActiveRegainControlclassBasicActiveAction<Agent, AgentRegainControlSettings>1Actions and decisions
ActiveSchmeecheeFleeclassBasicActiveAction<Schmeechee, SchmeecheeFleeSettings>1Schmeechee action that runs away from its target until far enough, cancelling if it gets stuck.
ActiveSchmeecheeFlipclassBasicActiveAction<Schmeechee, SchmeecheeFlipSettings>1Schmeechee action that flips it back over when upside down: a pop animation, then an impulse and spin.
ActiveSchmeecheePlantclassBasicActiveAction<Schmeechee, SchmeecheePlantSettings>2Schmeechee action where it buries itself in the ground and sleeps for a while, then pops out.
ActiveSchmeecheePlayclassBasicActiveAction<Schmeechee, SchmeecheePlaySettings>1Schmeechee action where it runs around at random, slowing as its energy runs down, then finishes.
ActiveSwapActionSetclassBasicActiveAction<Agent, AgentSwapActionSetSettings>2Actions and decisions
ActiveThreatenclassBasicActiveAction<Agent, AgentThreatenSettings>1Action where the agent faces and threatens its target. If the target comes too close it finishes and switches to the ChangeTo action set; if it leaves, it cancels.
ActiveWanderclassActiveNavigation<ActiveWander, Agent, AgentWanderSettings>0Navigation action that makes the agent wander, up to HeuristicMaximum.
Agentabstract classTarget, IAgentDebugger, ILinkedAgent, +4 more30Agent: The AI parts run on the server only.
Agent.ChannelEventclass2A Unity event an agent fires on one hook event channel (by array index in Agent.ChannelEvents). Server-only unless marked as networked.
Agent<TThis>abstract classAgent8Agent: The AI parts run on the server only.
AgentAttackDirectionReactSettingsclassRandomTimedActionComponent1Action component that runs ActiveAttackDirectionReact on a random timer, using an AttackDirectionCoreSettings asset.
AgentCircleCloserSettingsclassAgentMoveCloserSettings1Move-closer settings that also circle around the target, run by ActiveAgentRotateClose.
AgentCircleRepositionSettingsclassTimedActionComponent6Settings for ActiveCircleReposition: a short sidestep around the target, left or right, by a set angle.
AgentCircleTargetSettingsclassRandomTimedActionComponent3Settings for ActiveCircleTarget: the agent circles its target at a set distance on a random timer.
AgentCrawlSettingsclassRandomTimedActionComponent8Action settings for a creature crawling over surfaces for a random duration (ActiveCrawl). Sits under an action set on the creature prefab.
AgentDelayEnterSetSettingsclassActionComponent2Settings for ActiveDelayEnterSet: wait a random time, then switch the agent to another action set.
AgentDeletedSettingsclassActionComponent0Settings for ActiveDeleted, an action with no target that destroys the creature's whole entity. Server only; put it in an action set to let a creature despawn itself.
AgentDisabledSettingsclassActionComponent0Settings for ActiveDisabled, an action with no target that does nothing. Server only.
AgentDistanceFromTargetSettingsclassAgentNavigationSettings2Settings for ActiveDistanceFromTarget: walk to a random reachable point found around the target, optionally the one most on the creature's own side. Server only.
AgentEatSettingsclassActionComponent2Settings for ActiveEat: grab the target item with the creature's Interactor and destroy it after a delay. Server only; used for creatures that eat dropped food.
AgentFaceTargetSettingsclassActionComponent1Settings for ActiveFaceTarget: turn the creature until the target is well inside its view cone. Server only; the creature must implement IHasViewCone.
AgentFollowSettingsclassAgentNavigationSettings4Settings for ActiveFollow: chase the target with the pathfinder until close, giving up past a distance unless the target has hurt the creature enough. Server only.
AgentIdleSettingsclassRandomTimedActionComponent10Settings for a creature's idle action: how long it lasts, whether it faces or follows its target during set time windows, and a chance to wander to a new spot. Its action is ActiveIdle.
AgentInteractApproachSettingsclassAgentNavigationSettings7Settings for ActiveInteractApproach: follow the target until close, then start one of two follow-up actions depending on whether its height is in reach. Server only.
AgentJumpAtSettingsclassRandomTimedActionComponent5Settings for ActiveJumpAt: launch the creature's rigidbody at the target and finish when it lands. Server only.
AgentMoveCloserSettingsclassActionComponent3Settings for ActiveAgentMoveCloser: slide the creature's rigidbody straight toward the target, without pathfinding, until it is a set distance away. Server only.
AgentNavigationSettingsabstract classActionComponent5Base for a creature action component with movement settings for getting to its target.
AgentNestSettingsclassAgentNavigationSettings6Action component that sends an agent to the closest free nest of a type to sleep at night. Runs ActiveNest on the server's AI.
AgentRegainControlSettingsclassRandomTimedActionComponent4Settings for ActiveRegainControl: wait until the creature's body has nearly stopped moving after being knocked about, then optionally switch action set. Server only.
AgentRollUpInPlaceclassBasicActiveAction<Agent, AgentRollUpInPlaceSettings>1Actions and decisions
AgentRollUpInPlaceSettingsclassActionComponent4Settings for AgentRollUpInPlace: turn the creature's body upright on the nearest ground surface, then optionally switch action set. Server only.
AgentSwapActionSetSettingsclassActionComponent3Action component that switches the agent to another ActionComponentSet and then runs for a fixed duration.
AgentThreatenSettingsclassRandomTimedActionComponent4Settings for ActiveThreaten: face the target for a random time, switching to another action set if it comes close and cancelling if it goes far. Server only.
AgentUpdaterclassMonoBehaviour8AgentUpdater, Update modules: A scene MonoBehaviour. Ticks only on the server.
AgentWanderSettingsclassAgentNavigationSettings2Settings for ActiveWander and ActiveBlockCanceleableWander: walk to a random reachable point near the creature. Server only.
AiHookclassAiHook<ActionComponent>0Actions and decisions: Base: runs code when the action starts, finishes or is cancelled.
AiHook<T>abstract classMonoBehaviour, IAiHook0Actions and decisions: Base: runs code when the action starts, finishes or is cancelled.
AndclassOperator3Logical AND in the unused Prolog-like logic engine (Predicate, KnowledgeHolder). Yields every pair of left and right results whose bindings agree, with weightings multiplied.
AnimatedBoolAiHookclassAiHook0Actions and decisions
AnimatedFloatAiHookclassAiHook0Actions and decisions
AnimatedFloatTransitionAiHookclassAiHook0Actions and decisions
AnimatedLayerAiHookclassAiHook0Actions and decisions
AnimatedTriggerAiHookclassAiHook0Actions and decisions
AtomclassBaseAtom6A named symbol in the unused Prolog-like logic engine. Define turns it into a fact or rule that a KnowledgeHolder can be told about.
Atom<T1, T2, T3, T4>classBaseAtom4A four-argument named symbol in the unused Prolog-like logic engine, with typed Define overloads.
Atom<T1, T2, T3>classBaseAtom4A three-argument named symbol in the unused Prolog-like logic engine, with typed Define overloads.
Atom<T1, T2>classBaseAtom4A named AI logic atom that takes two terms. Define turns it into a weighted definition the AI can reason with.
Atom<T>classBaseAtom4A named atom in the AI knowledge system that takes one typed term. Other versions take zero to four terms.
AttackDirectionAnimationBoolSettingsclassAttackDirectionAnimationSettings0Asset that drives an animator bool from where the target's weapon is: true when the direction is positive. Used by AttackDirectionCore for attack-direction reactions.
AttackDirectionAnimationBoolSettings.BoolAnimationclassIAttackDirectionAnimation0Per-creature driver made by AttackDirectionAnimationBoolSettings: sets a networked animator bool from the attack direction.
AttackDirectionAnimationFloatSettingsclassAttackDirectionAnimationSettings0Asset that drives an animator float from where the target's weapon is, easing it toward 0, 0.5 or 1 for directions -1, 0 and 1. Used by AttackDirectionCore.
AttackDirectionAnimationFloatSettings.FloatAnimationclassIAttackDirectionAnimation0Per-creature driver made by AttackDirectionAnimationFloatSettings: eases a networked animator float toward a value set by the attack direction.
AttackDirectionAnimationLayerLerpSettingsclassAttackDirectionAnimationSettings0Asset that drives an animator layer weight from where the target's weapon is: 1 for a positive direction, 0 otherwise. Used by AttackDirectionCore.
AttackDirectionAnimationLayerLerpSettings.LayerAnimationclassIAttackDirectionAnimation0Per-creature driver made by AttackDirectionAnimationLayerLerpSettings: sets a networked animator layer weight, which lerps on its own.
AttackDirectionAnimationSettingsabstract classScriptableObject2Asset that makes an attack direction animation helper for a creature's animator parameter.
AttackDirectionCoreclass3Drives an agent's attack-direction animations (a layer weight plus side and up directions) from where its target's attacks come from. Made by AttackDirectionCoreSettings and updated each frame.
AttackDirectionCoreSettingsclassScriptableObject8Settings asset that makes a creature animate in response to where its target is attacking from (above or either side). GetCore makes the runtime AttackDirectionCore.
AttackDirectionReactAIHookclassAiHook0Actions and decisions: Drives animation from the direction of the target's attacks.
AttackParametersstruct3An attack a target is making: how much damage it would do and where it is. AI reads these from Target.Attacks to react to incoming hits.
BabuclassAgent<Babu>, IHasViewCone, IInteractAgent, +4 more5Other creatures, Creature data
BaseAtomclassTerm5A named constant term in the AI's logic system (predicates, compounds and variables used for creature reasoning). Its nested Definition pairs a compound with a goal and a weighting.
BaseAtom.DefinitionclassIAtomDefinition6A rule in the creature knowledge system: when the compound holds, the goal predicate follows, with a weight that fades as the event it came from ages.
BasicAction<TAgent, TActive, TSettings>classAction<TAgent>5Actions and decisions
BasicActiveAction<TAgent, TSettings>abstract classBasicActiveAction<TAgent>2Actions and decisions
BasicActiveAction<TAgent>abstract classIBasicActiveAction<TAgent>, IActiveAction10Actions and decisions
BasicActiveAgentMoveCloser<T>abstract classBasicActiveAction<Agent, T>1Base for running actions that move a creature straight at its target without pathfinding. Faces the target each tick, cancels if it's lost or too far, and leaves the movement to the subclass. Server only.
BasicSenseclassSense5Targets and senses: A fixed value the target gives off, from its BasicSenseSet. Up to 32 of these.
BasicSense.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Creatures.ScriptableObject<BasicSense>0Editor menu item for making a BasicSense asset (under the Township creatures create menu). Does nothing at runtime.
BasicSenseSetclass7Targets and senses
ChanceclassTargetOperation3Scoring rule that rolls a dice on every evaluation: returns success with probability chance, otherwise failure. Made by CreateTargetOperation.Chance.
ChanceOperationclassTargetOperationComponent1Prefab component that adds a Chance scoring rule to its action, from the scoring child object it sits under. Renames its GameObject to show its values.
Characterclass5A named character in the AI knowledge system with its own atom and knowledge, optionally owned by a parent character.
CollisionImpulseReaderclassMonoBehaviour0Component that turns strong collisions with rigidbodies into a 0 to 1 strength and passes it to an IReceiveImpulseFromCollision on the next frame.
CompoundclassPredicate, ITerm2A Prolog-style term with a functor and arguments in the AI knowledge system, such as likes(x, y). Evaluates by unifying with known definitions.
CompoundPartclassTerm, ICompoundPart6A list of terms (a first term and the rest) in the AI's logic system, used when unifying compounds.
CreateTargetOperationstatic class12Static factory for the common TargetOperation scoring rules used by actions in code and by the scoring components on prefabs. Server only, like the decider.
DataAtom<T>classAtom, IData<T>, ITerm4An atom carrying a value (for example a position) in the unused Prolog-like logic engine.
Dayclass4One day in an AI History, holding the events registered on it.
DeathFernclassAgent<DeathFern>1Other creatures, Creature data: Death Fern, Mother Fern, Vine Attack Fern, Targeted Geyser (also inside Chute Gcore Dynamic), Gotera Ash Bomb, Turabada Spawner Reactive
DebugResultsclass4Holder for action scoring results, probably meant for AI debugging. Nothing else in the code uses it.
DistanceOperationclassTargetOperationComponent1Older prefab scoring component for the target's distance (or squared distance). In the editor it migrates itself to a SenseOperation.
DistanceSenseclassSense2Targets and senses
DistanceSense.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Creatures.ScriptableObject<DistanceSense>0Editor menu item for making a DistanceSense asset. Does nothing at runtime.
DistanceSquaredSenseclassSense1Targets and senses
DistanceSquaredSense.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Creatures.ScriptableObject<DistanceSquaredSense>0Editor menu item for making a DistanceSquaredSense asset. Does nothing at runtime.
DragonflyclassAgent<Dragonfly>, IHasViewCone4Other creatures, Creature data: Dragonfly, and the Dais animals: Dais Base, Dais Variant, Dais Red, Antler, Antler Red, Child and Child Red Variant
EmptyAttackDirectionAnimationclassIAttackDirectionAnimation1Do-nothing IAttackDirectionAnimation used by AttackDirectionCore when a layer, side or up animation isn't set.
Eventclass7One remembered event in an AI's History: some knowledge atoms that fade over a lifetime. Events form a linked list of the active ones.
EventChannelAiHookclassAiHook0Actions and decisions: Fires a channel event when the action starts and another when it ends.
EventChannelTimedAiHookclassAiHook0Actions and decisions: Fires channel events at set delays after the action starts.
FaceTargetclassMonoBehaviour, INetworkSerialized5Component that turns a creature's head bone toward its current target, within a maximum angle, and syncs the head rotation to clients. The server drives it; nothing in code calls it, so prefab events probably do.
Facing2DSenseclassSense1Targets and senses
Facing2DSense.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Creatures.ScriptableObject<Facing2DSense>0Editor menu item for making a Facing2DSense asset. Does nothing at runtime.
Facing3DSenseclassSense1Targets and senses
Facing3DSense.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Creatures.ScriptableObject<Facing3DSense>0Editor menu item for making a Facing3DSense asset. Does nothing at runtime.
FacingOperationclassTargetOperationComponent1Older prefab scoring component for how much the creature faces the target. In the editor it migrates itself to a SenseOperation.
FailTargetOperationclassTargetOperation2Scoring rule that always returns 0, so a required rule built from it switches its action off. Returned by CreateTargetOperation.Fail after logging an error.
FireBugclassAgent<FireBug>, IReceiveImpulseFromCollision5Other creatures, Creature data: A catchable bug that lights up when shaken.
FixedStatChangeHookclassStatChangeHook0Actions and decisions
Formula<T>classTargetOperation3Scoring rule that runs a function you supply on the agent (cast to T) and the target. Made by CreateTargetOperation.Formula; built-in creature actions use it for custom checks.
GizmosHelperclassMonoBehaviour2Editor debugging helper that draws a small sphere at a static position in the Scene view. Nothing in the code creates it.
GoteraclassAgent<Gotera>, IHasViewCone4Common creatures, Creature data: Gotera; Gotera Ash, Birch, Redwood and Walnut Variant
GreaterGoteraclassAgent<GreaterGotera>, IAgent, ITarget, +2 more3Common creatures, Creature data
GroundedclassTargetOperation3Scoring rule on the creature itself, not the target: one value when its walker is grounded, another when it's in the air. Made by CreateTargetOperation.Grounded.
GroundedOperationclassTargetOperationComponent1Prefab scoring component that adds a Grounded rule. It has no multiplier, so its weight is always 1.
Historyclass11A timeline of days and knowledge events for the experimental AI reasoning system. Time is in days (1.0 is one day). Only created by the test Intelligence component.
HookActioninternal struct2Internal per-agent runner for an attack direction reaction hook. Updates its AttackDirectionCore each LateUpdate while the agent has a target.
HookEventChannelenum21Named channels (A to T, or None) an AI agent can fire hook events on, mapped to channel events set on the agent.
HurtSenseclassSense1Targets and senses: agent.Hurt for that target.
HurtSense.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Creatures.ScriptableObject<HurtSense>0Editor menu item for making a HurtSense asset. Does nothing at runtime.
IActioninterface8Actions and decisions
IAction<in TAgent>interfaceIAction1Actions and decisions
IActionDeciderinterface3Picks an AI agent's actions from the targets it knows about. ActionDecider<TAgent> implements it; reach it through Agent.GeneralActionDecider.
IActionSettingsinterface9Settings every AI action has: its weighting and the rules for cancelling it. Implemented by ActionComponent.
IActionTargetinterface2A possible target for an AI action, with the weight it scored.
IActiveActioninterface8Actions and decisions
IAgentinterfaceITarget, ITargetPointer, INetworkEntityBehaviour24The interface for an AI creature's brain, implemented by Agent. Decisions and actions run on the server; the server registers live agents with AgentUpdater.
IAgentDebuggerinterface0Empty marker interface for AI agent debuggers.
IAiHookinterface1A component that adds effects to the ActionComponent on the same GameObject. ActionComponent finds these and initializes them the first time the action is used.
IAtomDefinitioninterface4A piece of knowledge in the creature knowledge system: a compound and a goal, with a weight that fades as the event it came from ages.
IAttackDirectionAnimationinterface4One animator parameter (bool, float or layer weight) that shows which way a creature is about to attack. AttackDirectionCore drives three of them: layer, side and up.
IBasicActiveAction<in TAgent>interfaceIActiveAction1A running action that can be started on an agent of type TAgent. BasicActiveAction implements it and BasicAction calls Start on a pooled instance.
ICompoundPartinterface2A term split into a head and the rest, used by the unused logic engine when unifying terms. Predicate and CompoundPart implement it.
IData<T>interfaceITerm0AI logic term that carries a value of type T. Implemented by Variable<T> and DataAtom<T>.
IHasViewConeinterface1Implemented by AI that has a ViewCone for sight checks.
IInteractAgentinterfaceIAgent, ITarget, ITargetPointer, +1 more1A creature that can grab things with an Interactor, so it can run ActiveEat.
IJumpAttackerinterface1Combat, damage and death: ActiveJumpAt calls it at the start and end of a jump. Spriggull charges its beak with it.
ILinkedAgentinterface5What AgentUpdater needs from a creature AI to schedule it. Agent implements it explicitly; agents are kept in a linked list sorted by priority.
IntelligenceclassMonoBehaviour7Unfinished experiment with a Prolog-like knowledge system (who owns, hates and attacked whom, with fading memories). Awake only builds a hard-coded test with frogs and toads and logs a query; no creature uses it.
IntelligenceExtensionMethodsstatic class2Helpers for the unused logic engine.
InverseLerpSenseSelfclassTargetOperation3Scoring rule that reads a sense with the creature as both requester and target, mapped onto 0 to 1. Made by CreateTargetOperation.Sense with isTarget false.
InverseLerpSenseTargetclassTargetOperation3Scoring rule that reads a sense of the target, mapped onto 0 to 1. Made by CreateTargetOperation.Sense; most scoring rules on prefabs end up as this.
IReceiveImpulseFromCollisioninterface1Implemented by things that want to know the strength of a collision impulse they took.
ITargetinterfaceITargetPointer13Targets and senses: Anything a creature can consider. Target implements it, so every creature is also a target for other creatures.
ITargetExtensionsstatic class1Extension methods on ITarget.
ITargetPointerinterface1Anything that can name an AI target for itself. Every ITarget and agent is one, and so are things like SeedSpray; hit code uses it to find who to blame for a hit.
ITerminterface3A term in the small Prolog-style logic engine in Alta.Intelligence (atoms, variables, compounds). Probably not used by the shipped creatures; nothing outside that namespace uses it.
KnowledgeHolderclass7A store of known events and rule definitions for the creature knowledge system. It can have a parent, whose knowledge also counts.
LifetimeclassTargetOperation2Scoring rule on the creature's age: seconds since it was created, mapped from minimum to maximum onto 0 to 1. Made by CreateTargetOperation.Lifetime.
LifetimeOperationclassTargetOperationComponent1Prefab scoring component that adds a Lifetime rule.
NotclassPredicate2Logical NOT in the unused Prolog-like logic engine, with weightings: a half-true goal gives a half-true result.
OldSenseOperationclassTargetOperationComponent2Older prefab scoring component that names its sense with the SenseOld enum. In the editor it replaces itself with a SenseOperation once a matching sense asset exists.
Operatorabstract classPredicate2Base for predicates that join two other predicates (such as and), in the creature knowledge system. Evaluates the left side, then the right side with the left's bindings.
OrclassOperator3Logical OR in the unused Prolog-like logic engine: yields every result of the left side, then every result of the right.
PhantomclassAgent<Phantom>, IHasViewCone, IListenToMiningEcho9Other creatures, Creature data: A night creature that can be solid or immaterial. Prefabs: Phantom (2 health) and Phantom Head (0.5 health, takes double spiritual damage).
PickupAgentclassMonoBehaviour3Other creatures: public class PickupAgent : MonoBehaviour, for creatures you can hold.
PlayerCharacterTargetclassTarget5Targets and senses: PlayerCharacterTarget : Target is the player's target component.
PlayerLikeSpectralGhostclassPhantom2Other creatures, Creature data: A phantom dressed as a player (prefab "Spectral Ghost", 2 health; it uses the phantom's passive set and destroys itself on death).
PlusclassOperator3A combining operator in the unused Prolog-like logic engine. It behaves exactly like And: agreeing results with weightings multiplied.
Predicateabstract classITerm, ICompoundPart13Base for a logic term in the AI knowledge system: a functor with argument terms that is evaluated against a KnowledgeHolder to produce weighted results. Operators combine predicates.
ProgressStatChangeHookclassStatChangeHook1Actions and decisions
ProjectileShooterclassMonoBehaviour3Component that spawns and fires a projectile from a creature, aimed forward or at its target with some random spread. Server only; nothing in code calls Shoot, so prefab events probably do.
ProjectileShooter.AimModeenum4How a ProjectileShooter aims: straight forward, at the target, or mixing forward and target direction per axis.
RandomTimedActionComponentabstract classActionComponent3Base for AI action components that run for a random length of time, set in the inspector (5 to 7 seconds by default).
RaycastGroundedclassTargetOperation3Scoring rule that checks for ground near the creature's body with a ray or sphere, returning one value when ground is found and another when not. Made by CreateTargetOperation.RaycastGrounded.
RaycastGroundedOperationclassTargetOperationComponent1Prefab scoring component that adds a RaycastGrounded rule. It has no multiplier, so its weight is always 1.
RaycastGroundedOperationTypeenum3How the RaycastGrounded AI evaluator checks for ground: a ray straight down in world space, a ray down in the agent's local space, or a sphere overlap.
RepeatIfHasTargetclassMonoBehaviour2Component that fires a prefab event at a fixed rate while its creature has a target. Server only; it disables itself on clients.
Resultclass5One answer to a creature AI logic query: the term bindings that make it true and its weight.
RotateToTargetWorldXZclassNetworkEntityBehaviour, INetworkSerialized3Networked component that turns a jointed body part toward the creature's target (or a default point) by driving a ConfigurableJoint around its X axis. The server picks the angle and syncs it; both sides apply it.
RVOBlockedOperationclassTargetOperationComponent1Prefab scoring component that adds an RVOBlockedValue rule: one value when the creature's walker is blocked, another when it isn't.
RVOBlockedValueclassTargetOperation2Scoring rule on whether the creature's walker is blocked by local avoidance. Made by CreateTargetOperation.RVOBlocked.
SameTargetclassTargetOperation3Scoring rule that returns one value if the target is the creature's current target and another if not. Used to make creatures stick to or switch targets.
SameTargetOperationclassTargetOperationComponent1Prefab scoring component that adds a SameTarget rule.
SchmeecheeclassAgent<Schmeechee>16Other creatures, Creature data: A mushroom critter that runs about, plants itself in the ground and can be picked up. It's a rigidbody that steers itself with forces, not a walker.
Schmeechee.OperationclassTargetOperation2Other creatures: A scoring rule for "grounded" or "upside down".
Schmeechee.OperationTypeenum2Which Schmeechee state a Schmeechee AI operation checks: Grounded or UpsideDown.
SchmeecheeFleeSettingsclassActionComponent1Settings for ActiveSchmeecheeFlee: a schmeechee steers and pushes itself away from its target. Server only.
SchmeecheeFlipSettingsclassActionComponent0Settings for ActiveSchmeecheeFlip: an upside-down schmeechee pops itself back over with an impulse and torque. Server only.
SchmeecheeOperationclassTargetOperationComponent1Prefab scoring component for schmeechees: one value when the schmeechee is grounded (or upside down), another when it isn't.
SchmeecheePlantSettingsclassRandomTimedActionComponent0Settings for ActiveSchmeecheePlant: a schmeechee buries itself in the ground and sleeps for a random time, then pops out. Server only.
SchmeecheePlaySettingsclassActionComponent0Settings for ActiveSchmeecheePlay: a schmeechee runs about at random until it tires or gets stuck. Server only.
SeedSprayclassNetworkEntityBehaviour, ITargetPointer6Combat, damage and death
SeedSpray.BasicImpactSyncArgumentsstruct11Network copy of a seed's hit, sent by the server so clients apply the same impact to the struck entity's ImpactDetector.
SeedSprayManagerclassNetworkEntityBehaviour2Combat, damage and death
Senseabstract classGeneralValue6Asset for something an AI agent can measure about a target (distance, visibility and so on) as a number. Sense assets are loaded from Resources/Senses.
SenseOldenum20Old list of AI senses (noise, movement, danger, distance, view cone and so on), still used by the older sense operations.
SenseOperationclassTargetOperationComponent2Prefab scoring component that adds a sense rule: a sense asset read on the target or the creature, mapped onto 0 to 1. The older scoring components migrate to this one.
SenseSetupclass3A serialized pair of a sense and a value, used in AI settings. Still supports the old SenseOld enum for older assets.
SpriggullclassAgent<Spriggull>, IJumpAttacker, IInteractAgent, +4 more5Common creatures, Creature data: It decides every 0.5 s, slower than other creatures (0.1 s). Its sets live in the "Spriggull AI" prefab:
SpriggullFlailclassMonoBehaviour0Component on a spriggull that starts its flailing action when it is hit hard by a rigidbody on its hit collider. The flail only starts on the server.
StatChangeHookabstract classAiHook0Base AI hook that grabs a stat on the creature or its target when its action starts, and lets subclasses change it at the start and end. FixedStatChangeHook and ProgressStatChangeHook build on it.
StatOperationclassTargetOperationComponent1Prefab scoring component that adds a StatValue rule on a stat of the creature or the target. The shipped "Aggroing Stat" rules are this.
StatValueclassTargetOperation2Scoring rule on a stat of the creature or the target, mapped onto 0 to 1. Made by CreateTargetOperation.Stat.
TargetclassNetworkEntityBehaviour, ITarget, ITargetPointer15A networked thing that AI creatures can sense and attack, with optional health and interactable links. Only active on the server: on clients it disables itself (and by default its GameObject).
TargetCollectorclassMonoBehaviour, IBuildRendererBakeable, IBuildBakeable4Component that gathers targets for an agent within a radius. Registers itself with its agent on Awake; TargetCollectorManager adds and removes targets by distance.
TargetCollectorManagerstatic class3Static list of every registered target on the server (creatures, players, anything with a Target). Each creature decision walks the whole list to add or drop targets by distance.
TargetOperationabstract class3Actions and decisions: One scoring rule. float Evaluate(Agent agent, ITarget target), plus a Weight.
TargetOperationComponentabstract classMonoBehaviour1Base component that supplies a TargetOperation for AI target scoring. Its object is renamed to match the operation in the editor.
TargetPointerclassMonoBehaviour, ITargetPointer1Component that points at a Target elsewhere on the prefab, so code looking up an ITargetPointer on this object finds that target.
TargetResultclass2Debug record of how one target scored for an agent's actions.
TargetResult.Resultclass4Debug record of how one AI action scored against a target. ActionDecider passes null for it in this build, so it is probably unused.
Termabstract classITerm5Base of terms in the AI's logic system (atoms, variables, compounds). Unify matches two terms in the Prolog style.
ThresholdListenerclass3Small holder for a threshold value and an event raised when it's crossed. Nothing else in the code uses it.
TimedActionComponentabstract classActionComponent1Base for a creature action component that runs for a set duration.
TrueclassPredicate2The always-true goal in the unused Prolog-like logic engine. A definition with no goal uses it, making it a plain fact.
TurabadaclassAgent<Turabada>, IHasViewCone6Common creatures, Creature data: On death it turns off collision and sets the animator bool named by killedAnimatorBoolean ("Killed" by default) directly on the Animator, on each side.
VariableclassTerm7A numbered logic variable in the unused Prolog-like logic engine. Two variables are equal when they share a number and belong to the same definition.
Variable<T>classVariable, IData<T>, ITerm1A logic variable that stands for a value of type T (for example a position) in the unused logic engine.
VelocityLimitclassTargetOperation2Scoring rule on the creature's own speed: one value while its rigidbody is slower than a limit, another when at or above it. Made by CreateTargetOperation.VelocityLimit.
VelocityLimitOperationclassTargetOperationComponent1Prefab scoring component that adds a VelocityLimit rule on the creature's speed.
VelocitySenseclassSense1Targets and senses: target.GetVelocity(), which is always 0. No shipped sense uses it: "Velocity" is a BasicSense.
VelocitySense.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Creatures.ScriptableObject<VelocitySense>0Editor menu entry for creating a VelocitySense asset.
ViewConeOperationclassTargetOperationComponent1Inspector component that adds a view cone sense check to an AI action's target scoring. Its OnValidate migrates it to the newer sense operation setup.
ViewConeSenseclassSense1Targets and senses: How far inside the creature's ViewCone the target is. Only for creatures with IHasViewCone (turabada, gotera, babu, dragonfly, phantom).
ViewConeSense.CreateclassAltaMenuItemBase.Assets.Create.Township.Features.Creatures.ScriptableObject<ViewConeSense>0Editor menu entry for creating a ViewConeSense asset.
WyrmclassAgent<Wyrm>14Common creatures, Creature data: A wyrm lives underground. Its body and colliders are hidden until it emerges. It has no walker: it turns its body in place toward its target.
XorclassOperator3Logical XOR operator for the AI's predicate system. Written as A ^ B.

Alta.Intelligence.Wyrms​

TypeKindBasePublic membersDocumented in, or what it is
ActiveCatchclassBasicActiveAction<Wyrm, WyrmCatchSettings>2Wyrm action that catches a nearby fleshy target that isn't dangerous. Runs on the server as part of the wyrm AI.
ActiveDigclassBasicActiveAction<Wyrm, WyrmDigSettings>2Wyrm action that burrows back underground after it has been idle a while. Runs on the server as part of the wyrm AI.
ActiveDodgeclassBasicActiveAction<Wyrm, WyrmDodgeSettings>2Wyrm action that dodges a dangerous, fast moving target within reach. Runs on the server as part of the wyrm AI.
ActiveEmergeclassBasicActiveAction<Wyrm, WyrmEmergeSettings>2Wyrm action that comes up out of the ground near a living target. Runs on the server as part of the wyrm AI.
ActiveMeleeAttackclassBasicActiveAction<Wyrm, WyrmMeleeSettings>2Wyrm melee attack action. Prefers living, hurt targets in reach and sometimes turns into a flurry. Runs on the server.
ActiveSpinclassBasicActiveAction<Wyrm, WyrmSpinSettings>2Wyrm spin attack action, chosen more when the target is off to the side. Runs on the server.
ActiveSpitclassBasicActiveAction<Wyrm, WyrmSpitSettings>2Wyrm ranged spit attack action, preferring targets near BestRange. Runs on the server.
WyrmCatchSettingsclassTimedActionComponent1Wyrm action component for the catch action. Only targets within reach score.
WyrmDigSettingsclassTimedActionComponent4Wyrm action component for burrowing. The wyrm switches to its burrowed actions and senses, and gets more likely to dig the longer it has idled.
WyrmDodgeSettingsclassTimedActionComponent1Wyrm action component for the dodge action. Only targets within reach score.
WyrmEmergeSettingsclassTimedActionComponent6Action settings for a burrowed wyrm coming up when a target is close (ActiveEmerge). After emerging it switches to its emerged senses.
WyrmMeleeSettingsclassTimedActionComponent6Wyrm action component for melee attacks: reach, flurry chance, animator triggers and target weighting for ActiveMeleeAttack.
WyrmSpinSettingsclassActionComponent4Wyrm action component for the spin action, with range and target weighting for ActiveSpin.
WyrmSpitSettingsclassTimedActionComponent7Action settings for a wyrm's spit attack (ActiveSpit), scored by distance, hurt and whether the target is the same as before.

Alta.Pathfinding​

TypeKindBasePublic membersDocumented in, or what it is
DirectorclassMonoBehaviour15Movement and pathfinding: Finds its Navigator in its parents on Awake.
Followerclass3Makes a Navigator keep re-pathing to a moving target on an interval. Made by Director.
IndependentWalkerclassMonoBehaviour2Movement and pathfinding: Lets a navigator part of a creature detach from its body and walk on its own (update module "Independent Walker"), then reattach.
NavigatorclassMonoBehaviour29Movement and pathfinding: A MonoBehaviour that needs a Seeker on the same GameObject.
NormalizedPathinternal struct4Movement and pathfinding: A path's corners and length, for NormalizedMove.
WalkerclassMonoBehaviour23Movement and pathfinding: A MonoBehaviour with a FixedUpdate. Moves topic (the creature's Rigidbody).
WalkerAnimatorclassMonoBehaviour0Movement and pathfinding: Sets animator values from Walker.Updated.
WalkerStatestruct6Movement and pathfinding: The struct Walker.Updated passes.