Very basic attack system.

This commit is contained in:
Zed A. Shaw 2025-02-10 14:06:38 -05:00
parent 6bca6d021e
commit abd843d5ec
5 changed files with 40 additions and 11 deletions

View file

@ -28,6 +28,7 @@ namespace gui {
enum class State {
START,
MOVING,
ATTACKING,
MAPPING,
ROTATING,
IDLE,
@ -45,12 +46,13 @@ namespace gui {
CLOSE,
ROTATE_LEFT,
ROTATE_RIGHT,
ATTACK,
QUIT
};
class FSM : public DeadSimpleFSM<State, Event> {
public:
float $rotation = -30.0f;
float $rotation = -10.0f;
Point $player{0,0};
LevelManager $levels;
sf::RenderWindow $window;
@ -70,6 +72,7 @@ namespace gui {
void START(Event );
void MOVING(Event );
void ATTACKING(Event );
void MAPPING(Event);
void ROTATING(Event );
void IDLE(Event ev);