Finished version, might have memory leaks
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include "SDL2/SDL.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -32,10 +32,13 @@ public:
|
||||
void get_selected_space(int* x, int* y);
|
||||
int get_selected_space();
|
||||
|
||||
std::vector<int> get_moves_for_space(int x, int y);
|
||||
std::vector<int> get_moves_for_space(int space);
|
||||
std::vector<int> get_moves_for_space(int x, int y, bool check_for_check);
|
||||
std::vector<int> get_moves_for_space(int space, bool check_for_check);
|
||||
|
||||
bool is_check(Team team);
|
||||
bool is_mate(Team team);
|
||||
|
||||
void do_move(int space_from, int space_to, bool holding_k);
|
||||
private:
|
||||
Piece game_board[BOARD_SIZE][BOARD_SIZE];
|
||||
Team active_color;
|
||||
@@ -45,4 +48,5 @@ private:
|
||||
int selected_space;
|
||||
|
||||
MoveType can_move(int space_from, int space_to);
|
||||
bool does_move_solve_check(int space_from, int space_to);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user