From 87fdac7918d776a4c11b3880eef64b09b334aa1c Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Tue, 4 Jan 2022 18:36:24 +0100 Subject: linux build config and imgs --- game/playercontrol.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'game/playercontrol.h') diff --git a/game/playercontrol.h b/game/playercontrol.h index d6b1fd7..bfcbb97 100644 --- a/game/playercontrol.h +++ b/game/playercontrol.h @@ -8,9 +8,8 @@ #include #include - enum pc_state { - select, + sel, move, attack, train, @@ -46,6 +45,7 @@ enum pc_action { }; + class Fsm; using lambda = std::function; @@ -58,12 +58,12 @@ class Arc { pc_action act; int p; - lambda f; + lambda f; }; class Fsm { public: - Fsm() { state = select; } + Fsm() { state = sel; } void transition (Gst &gst, View &view, Fsm &fsm, pc_action act, int p) { std::cout << "> transitioning from " << state << " with " << act << std::endl; @@ -89,4 +89,4 @@ class Player_control { Fsm fsm; }; -#endif \ No newline at end of file +#endif -- cgit v1.2.3-54-g00ecf