private bool m_King; // True if the piece is on king mode // Initializes the possible moves of every piece (addings to the currPosition) public Piece(ePlayerTag i_Owner) { r_Owner = i_Owner; m_King = false; // The first 4 position changes options are for men and kings, the last 4 are only for kings (walking backwards) // For player1 - men can only move down, for player2 - men can only move up. r_PossibleMoves[0] = (i_Owner == ePlayerTag.First) ? new Position(1, 1) : new Position(-1, 1); r_PossibleMoves[1] = (i_Owner == ePlayerTag.First) ? new Position(1, -1) : new Position(-1, -1); r_PossibleMoves[2] = (i_Owner == ePlayerTag.First) ? new Position(2, 2) : new Position(-2, 2); r_PossibleMoves[3] = (i_Owner == ePlayerTag.First) ? new Position(2, -2) : new Position(-2, -2); r_PossibleMoves[4] = (i_Owner == ePlayerTag.First) ? new Position(-1, 1) : new Position(1, 1); r_PossibleMoves[5] = (i_Owner == ePlayerTag.First) ? new Position(-1, -1) : new Position(1, -1); r_PossibleMoves[6] = (i_Owner == ePlayerTag.First) ? new Position(-2, 2) : new Position(2, 2); r_PossibleMoves[7] = (i_Owner == ePlayerTag.First) ? new Position(-2, -2) : new Position(2, -2); }