public Soldier(Location io_cell, EnumCharsInBoard.enumCharsInBoard i_sign, EnumDirection.enumDirection i_Direction, bool i_isKing) { m_Cell = io_cell; Sign = i_sign; m_IsKing = i_isKing; Direction = i_Direction; }
internal void MakeToKing() { m_IsKing = true; Direction = EnumDirection.enumDirection.AllDirection; setKingSign(); }
public Soldier(Location io_cell, EnumCharsInBoard.enumCharsInBoard i_sign, EnumDirection.enumDirection i_Direction) { m_Cell = io_cell; Sign = i_sign; Direction = i_Direction; }
private void setLinesAndSignForPlayer(out int io_StartLine, out int io_FinishLine, out EnumCharsInBoard.enumCharsInBoard io_soldirSign, out EnumDirection.enumDirection io_Direction, bool io_isFirsPlayer, Board board) { if (io_isFirsPlayer) { io_StartLine = 0; io_FinishLine = (board.Size - 2) / 2; io_soldirSign = EnumCharsInBoard.enumCharsInBoard.Player1Soldier; io_Direction = EnumDirection.enumDirection.ForwardToDown; } else { io_StartLine = ((board.Size - 2) / 2) + 2; io_FinishLine = io_StartLine + ((board.Size - 2) / 2); io_soldirSign = EnumCharsInBoard.enumCharsInBoard.Player2Soldier; io_Direction = EnumDirection.enumDirection.DownToForward; } }