#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[non_exhaustive]
pub enum Facing {
Right,
Left,
}
impl Facing {
pub(super) fn sign(self) -> f32 {
match self {
Facing::Left => -1.0,
_ => 1.0,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[non_exhaustive]
pub enum CatAction {
Walk,
Idle,
Stretch,
Groom,
Punch,
Knock,
}
#[derive(Debug, Clone, PartialEq)]
#[non_exhaustive]
pub struct CatState {
pub x: f32,
pub line: usize,
pub over_ruby: bool,
pub facing: Facing,
pub action: CatAction,
pub action_time: f32,
}