Module AM37
Class BasicPrinterBoardUtils
java.lang.Object
it.polimi.ingsw.view.cli.console.graphics.components.Rectangle
it.polimi.ingsw.view.cli.console.graphics.components.WindowItem
it.polimi.ingsw.view.cli.console.graphics.components.Window
it.polimi.ingsw.view.cli.console.printers.BoardUtils
it.polimi.ingsw.view.cli.console.printers.basicPrinter.BasicPrinterBoardUtils
- All Implemented Interfaces:
KeyEventListener
public class BasicPrinterBoardUtils extends BoardUtils
-
Field Summary
Fields inherited from class it.polimi.ingsw.view.cli.console.printers.BoardUtils
boardHeight, boardWidth, buildingBlocks, cachedBoard, cellFrames, cellHeight, cellWidth, emptyBoard, horizontalWallWidth, lastGameBoardPrinted, playerData, verticalWallWidth, workersFields inherited from class it.polimi.ingsw.view.cli.console.graphics.components.Window
background, cli, enableInputOnReturn, returnToFields inherited from class it.polimi.ingsw.view.cli.console.graphics.components.WindowItem
activeItems, id, parent, passiveItems -
Constructor Summary
Constructors Constructor Description BasicPrinterBoardUtils(Window parent)Default constructor
Creates a new BoardUtils window, loading its settings from file -
Method Summary
Modifier and Type Method Description voidhighlightWorkers(java.util.List<Cell> cells)Highlights the user's workersvoidshowGameBoard()voidshowGameBoard(java.util.List<Cell> toHighlight)Shows the current gameBoard on the screen, highlighting some cellsMethods inherited from class it.polimi.ingsw.view.cli.console.printers.BoardUtils
cloneMatrix, highlight, overrideCachedBoard, setCachedBoard, subMatrix, updateCachedBoard, updateGameDataMethods inherited from class it.polimi.ingsw.view.cli.console.graphics.components.Window
addToBackground, getCli, getReturnTo, showMethods inherited from class it.polimi.ingsw.view.cli.console.graphics.components.WindowItem
addActiveItem, addPassiveItem, currentActiveItem, drawShadows, getID, getParent, hideShadows, maxStringLength, nextActiveItem, previousActiveItem, removeMethods inherited from class it.polimi.ingsw.view.cli.console.graphics.components.Rectangle
drawBackground, drawBorders, findCenter, getBackgroundColor, getColor, getHeight, getInitCoord, getTextColor, getWidth, hideBorders, loadPropertiesFileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.polimi.ingsw.view.cli.console.KeyEventListener
onArrowDown, onArrowLeft, onArrowRight, onArrowUp, onBackspace, onCarriageReturn, onPrintableKey, onTab
-
Constructor Details
-
BasicPrinterBoardUtils
Default constructor
Creates a new BoardUtils window, loading its settings from file- Parameters:
parent- the parent- Throws:
java.io.IOException
-
-
Method Details
-
showGameBoard
public void showGameBoard()- Specified by:
showGameBoardin classBoardUtils
-
showGameBoard
Shows the current gameBoard on the screen, highlighting some cells- Specified by:
showGameBoardin classBoardUtils- Parameters:
toHighlight- the cells to highlight
-
highlightWorkers
Highlights the user's workers- Specified by:
highlightWorkersin classBoardUtils- Parameters:
cells- the cells containing the user's workers
-