Module veloren_rtsim::ai
source · Modules§
Structs§
- See
Action::debug
. - See
finish
. - See
Action::then
. - See
just
. - See
Action::map
. - See
now
. - The context provided to an
Action
while it is being performed. It should be possible to access any and all important information about the game world through this struct. - See
Action::repeat
. - See
seq
. - See
Action::stop_if
. - See
Action::then
. - See
now
.
Constants§
Traits§
- A trait that describes ‘actions’: long-running tasks performed by rtsim NPCs. These can be as simple as walking in a straight line between two locations or as complex as taking part in an adventure with players or performing an entire daily work schedule.
Functions§
- An action that allows implementing a decision tree, with action prioritisation.
- An action that immediately finishes without doing anything.
- An action that executes some code just once when performed.
- Start a new action based on the state of the world (
ctx
) at the moment the action is started. - An action that consumes and performs an iterator of actions in sequence, one after another.
- An action that allows implementing a decision tree, with action prioritisation.