Start of V1 combat system where you get locked into combat when in range and have to work the turn system to get out.

This commit is contained in:
Zed A. Shaw 2025-02-13 14:39:04 -05:00
parent d2700d2928
commit 8a6b38c1a4
5 changed files with 51 additions and 18 deletions

View file

@ -14,6 +14,8 @@ namespace gui {
enum class State {
START,
MOVING,
IN_COMBAT,
COMBAT_ROTATE,
ATTACKING,
MAPPING,
ROTATING,
@ -33,6 +35,7 @@ namespace gui {
ROTATE_LEFT,
ROTATE_RIGHT,
ATTACK,
START_COMBAT,
QUIT
};
@ -67,6 +70,8 @@ namespace gui {
void MAPPING(Event);
void ROTATING(Event );
void IDLE(Event ev);
void IN_COMBAT(Event ev);
void COMBAT_ROTATE(Event ev);
void END(Event ev);
void try_move(int dir, bool strafe);