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, workers
Fields inherited from class it.polimi.ingsw.view.cli.console.graphics.components.Window
background, cli, enableInputOnReturn, returnTo
Fields 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 void
highlightWorkers(java.util.List<Cell> cells)
Highlights the user's workersvoid
showGameBoard()
void
showGameBoard(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, updateGameData
Methods inherited from class it.polimi.ingsw.view.cli.console.graphics.components.Window
addToBackground, getCli, getReturnTo, show
Methods inherited from class it.polimi.ingsw.view.cli.console.graphics.components.WindowItem
addActiveItem, addPassiveItem, currentActiveItem, drawShadows, getID, getParent, hideShadows, maxStringLength, nextActiveItem, previousActiveItem, remove
Methods inherited from class it.polimi.ingsw.view.cli.console.graphics.components.Rectangle
drawBackground, drawBorders, findCenter, getBackgroundColor, getColor, getHeight, getInitCoord, getTextColor, getWidth, hideBorders, loadPropertiesFile
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
showGameBoard
in classBoardUtils
-
showGameBoard
Shows the current gameBoard on the screen, highlighting some cells- Specified by:
showGameBoard
in classBoardUtils
- Parameters:
toHighlight
- the cells to highlight
-
highlightWorkers
Highlights the user's workers- Specified by:
highlightWorkers
in classBoardUtils
- Parameters:
cells
- the cells containing the user's workers
-