Esempio n. 1
0
 public static void ChessBoardSegmentButtonPressed(BoardSegment newSelection)
 {
     _selectionIcon.position   = newSelection.segment.transform.position;
     _previousSegmentSelection = _currentSegmentSelection;
     _previousSegmentSelection.SetSelection(false);
     _currentSegmentSelection = newSelection;
 }
Esempio n. 2
0
        public void Initialise()
        {
            _chessPieceManager = GameManager.instance.chessPieceManager;

            _selectionIcon = GameManager.instance.selectionIcon;

            InitialiseSegments();
            InitialiseChessPieceMoves();
            SetPiecesInitialPositions();


            //Setting variables so theyre not null on first move
            _previousSegmentSelection = GameManager.instance.board.segments[12]; //DELETE???
            _currentSegmentSelection  = GameManager.instance.board.segments[12];
            chessPieceSelection       = _chessPieceManager.pawnsWhite[0];
        }
Esempio n. 3
0
 public BoardSegment ReturnNorthWestSegment(BoardSegment originalSegment)
 {
     return(segments[originalSegment.segmentIndex + Columns + 1]);
 }
Esempio n. 4
0
 public BoardSegment ReturnSouthWestSegment(BoardSegment originalSegment)
 {
     return(segments[originalSegment.segmentIndex - Columns - 1]);
 }
Esempio n. 5
0
 public BoardSegment ReturnWestSegment(BoardSegment originalSegment)
 {
     return(segments[originalSegment.segmentIndex - 1]);
 }