// ---------------------------------------------------------------- // Initialize // ---------------------------------------------------------------- protected void InitializeAsBoardObject(Board _boardRef, BoardObjectData data) { this.BoardRef = _boardRef; this.BoardPos = data.boardPos; // Automatically add me to the board! AddMyFootprint(); }
private void FlipChirV(int col, int row) { BoardObjectData bo = GetObjectInBoard(col, row); if (bo != null) { bo.boardPos.ChirV *= -1; } }
private void SetOccupantInBoard(BoardObjectData data) { objectsInBoard[data.boardPos.ColRow.x, data.boardPos.ColRow.y] = data; }