stickfosh/src/controller/manual.hpp
Karma Riuk 5cbe57dc55
Some checks failed
pre-release / Pre Release (push) Waiting to run
tagged-release / Tagged Release (push) Has been cancelled
Removed the python version and kept just the c++ one
2025-02-16 09:36:04 +01:00

23 lines
507 B
C++

#pragma once
#include "../model/utils/coords.hpp"
#include "../model/utils/move.hpp"
#include "../view/view.hpp"
#include "controller.hpp"
class ManualController : public Controller {
protected:
int8_t selected_index;
Piece selected_piece;
std::vector<int8_t> targets;
void reset_selection();
void show_legal_moves(Coords);
void make_move(Move) override;
public:
ManualController(Board, View&);
void on_tile_selected(int, int) override;
void start() override;
};