//constructor taking number of the player controlling the king, its x-y position and reference to object keeping information about board state public King(int _side, int _x, int _y, Board_situation _board) { type = 2; x = _x; y = _y; board = _board; side = _side; }
public Board(Menu main, Options in_options) { parent = main; o = in_options; state = new Board_situation(); state.new_game(); InitializeComponent(); }
//constructor taking direction which the pawn is facing, its x-y position and reference to object keeping information about board state public Pawn(int _direction, int _x, int _y, Board_situation _board) { type = 0; direction = _direction; x = _x; y = _y; board = _board; if (_direction == 1) { side = 1; } else { side = 2; } }