pub struct PlaystyleTracker {
pub action_counts: [u32; 5],
pub total_actions: u32,
pub aggression: f32,
pub caution: f32,
pub ability_usage: f32,
pub history: Vec<Action>,
pub history_max: usize,
}Expand description
Tracks player behavior patterns over time.
Fields§
§action_counts: [u32; 5]Counts of each action type observed from the player.
total_actions: u32Total actions observed.
aggression: f32Running aggression score (attacks / total).
caution: f32Running caution score (waits and items / total).
ability_usage: f32Ability usage rate.
history: Vec<Action>History window for recent actions.
history_max: usizeImplementations§
Auto Trait Implementations§
impl Freeze for PlaystyleTracker
impl RefUnwindSafe for PlaystyleTracker
impl Send for PlaystyleTracker
impl Sync for PlaystyleTracker
impl Unpin for PlaystyleTracker
impl UnsafeUnpin for PlaystyleTracker
impl UnwindSafe for PlaystyleTracker
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.