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 Type
    Method
    Description
    void
    Draws the player view for the first time.
    javafx.scene.layout.Pane
    Gets the main node of the player view.
    void
    Redraws the player view, updating any changes.
    void
    setCellSize(int cellSize)
    Sets the cell size for the player view.
    void
    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

      void setDirection(Direction direction)
      Sets the direction for the player movement.
      Parameters:
      direction - The direction to set.