Interface IPlayerView
- All Known Implementing Classes:
AiView,PlayerViewV1,PlayerViewV2,PlayerViewV3,SecondPlayerViewV3
public interface IPlayerView
Interface for PlayerView.
Specifies the methods that the PlayerView should implement.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddraw()Draws the player view for the first time.javafx.scene.layout.PanegetNode()Gets the main node of the player view.voidreDraw()Redraws the player view, updating any changes.voidsetCellSize(int cellSize) Sets the cell size for the player view.voidsetDirection(Direction direction) Sets the direction for the player movement.
-
Method Details
-
draw
void draw()Draws the player view for the first time. -
reDraw
void reDraw()Redraws the player view, updating any changes. -
setCellSize
void setCellSize(int cellSize) Sets the cell size for the player view.- Parameters:
cellSize- The size of each cell in the view.
-
getNode
javafx.scene.layout.Pane getNode()Gets the main node of the player view.- Returns:
- The Pane containing the player view.
-
setDirection
Sets the direction for the player movement.- Parameters:
direction- The direction to set.
-