diff -r a236360669cc -r 6c5b3c576fc6 rust/lib-hwengine-future/src/ai/action.rs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rust/lib-hwengine-future/src/ai/action.rs Fri Nov 22 17:29:30 2024 +0100 @@ -0,0 +1,31 @@ +#[derive(Clone)] +pub enum Direction { + Left, + Right +} +#[derive(Clone)] +pub enum Action { + Walk(Direction), + LongJump, + HighJump(usize) +} + +pub struct Actions { + actions: Vec +} + +impl Actions { + pub fn new() -> Self { + Self { + actions: vec![], + } + } + + pub fn push(&mut self, action: Action) { + self.actions.push(action) + } + + pub fn pop(&mut self) -> Option { + self.actions.pop() + } +} \ No newline at end of file