rust/lib-hwengine-future/src/ai/action.rs
branchtransitional_engine
changeset 16049 db18f1a30b0c
parent 16040 6c5b3c576fc6
--- a/rust/lib-hwengine-future/src/ai/action.rs	Sat Dec 14 18:07:29 2024 +0100
+++ b/rust/lib-hwengine-future/src/ai/action.rs	Tue Dec 17 15:44:21 2024 +0100
@@ -1,24 +1,22 @@
 #[derive(Clone)]
 pub enum Direction {
     Left,
-    Right
+    Right,
 }
 #[derive(Clone)]
 pub enum Action {
     Walk(Direction),
     LongJump,
-    HighJump(usize)
+    HighJump(usize),
 }
 
 pub struct Actions {
-    actions: Vec<Action>
+    actions: Vec<Action>,
 }
 
 impl Actions {
     pub fn new() -> Self {
-        Self {
-            actions: vec![],
-        }
+        Self { actions: vec![] }
     }
 
     pub fn push(&mut self, action: Action) {
@@ -28,4 +26,4 @@
     pub fn pop(&mut self) -> Option<Action> {
         self.actions.pop()
     }
-}
\ No newline at end of file
+}