diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-04 18:36:24 +0100 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-04 18:36:24 +0100 |
commit | 87fdac7918d776a4c11b3880eef64b09b334aa1c (patch) | |
tree | e75456587f3a5697d093240b739d8cc5c1025829 /game/playercontrol.h | |
parent | 9ab3c2b88edf48f6e215d940a43dc75fad7a977b (diff) |
linux build config and imgs
Diffstat (limited to 'game/playercontrol.h')
-rw-r--r-- | game/playercontrol.h | 10 |
1 files changed, 5 insertions, 5 deletions
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 <vector>
#include <functional>
-
enum pc_state {
- select,
+ sel,
move,
attack,
train,
@@ -46,6 +45,7 @@ enum pc_action { };
+
class Fsm;
using lambda = std::function<pc_state(Gst&, View&, Fsm&, int p)>;
@@ -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
|