pub struct UtilityAI {
pub bb: Blackboard,
pub reeval_interval: f32,
pub inertia: f32,
/* private fields */
}Expand description
Selects the highest-scoring available action and runs it.
Fields§
§bb: Blackboard§reeval_interval: f32Re-evaluate scores every reeval_interval seconds.
inertia: f32Inertia: current action needs to be beaten by this margin to switch.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UtilityAI
impl !RefUnwindSafe for UtilityAI
impl Send for UtilityAI
impl Sync for UtilityAI
impl Unpin for UtilityAI
impl UnsafeUnpin for UtilityAI
impl !UnwindSafe for UtilityAI
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more