Module veloren_common::comp::agent
source ยท Structsยง
- State persistence object for the behavior tree Allows for state to be stored between subsequent, sequential calls of a single action node. If the executed action node changes between ticks, then the state should be considered lost.
- For use with the builder pattern https://doc.rust-lang.org/1.0.0/style/ownership/builders.html
- Always clamped between
0.0
and1.0
. - Behavior Component
- PID controllers are used for automatically adapting nonlinear controls (like buoyancy for airships) to target specific outcomes (i.e. a specific height)
- A time used for managing agent-related timeouts. The timer is designed to keep track of the start of any number of previous actions. However, starting/progressing an action will end previous actions. Therefore, the timer should be used for actions that are mutually-exclusive.
- An iterator over the variants of TimerAction
Enumsยง
- Events that affect agent behavior from other entities/players/environment
Constantsยง
- The number of booleans that a single Action node can track concurrently Define constants within a given action node to index between them.
- The number of float counters that a single Action node can track concurrently Define constants within a given action node to index between them.
- The number of integer counters that a single Action node can track concurrently Define constants within a given action node to index between them.
- The number of positions that can be remembered by an agent
- The number of timers that a single Action node can track concurrently Define constants within a given action node to index between them.
Functionsยง
- Get the PID coefficients associated with some Body, since it will likely need to be tuned differently for each body type