Пример #1
0
    // ----------------------------------------------------------------
    //  Initialize
    // ----------------------------------------------------------------
    protected void InitializeAsBoardObject(Board _boardRef, BoardObjectData data)
    {
        this.BoardRef = _boardRef;
        this.BoardPos = data.boardPos;

        // Automatically add me to the board!
        AddMyFootprint();
    }
Пример #2
0
    private void FlipChirV(int col, int row)
    {
        BoardObjectData bo = GetObjectInBoard(col, row);

        if (bo != null)
        {
            bo.boardPos.ChirV *= -1;
        }
    }
Пример #3
0
 private void SetOccupantInBoard(BoardObjectData data)
 {
     objectsInBoard[data.boardPos.ColRow.x, data.boardPos.ColRow.y] = data;
 }