Class SchoolBoardRenderer

java.lang.Object
it.polimi.ingsw.client.new_gui.views.player_view.SchoolBoardRenderer

public class SchoolBoardRenderer extends Object
  • Field Details

    • studentPercentWidthRelativeToSchoolBoard

      private static final double studentPercentWidthRelativeToSchoolBoard
      See Also:
    • studentPercentHeightRelativeToSchoolBoard

      private static final double studentPercentHeightRelativeToSchoolBoard
      See Also:
    • horizontalStudentPercentGap

      private static final double horizontalStudentPercentGap
      See Also:
    • verticalStudentDiningPercentGap

      private static final double verticalStudentDiningPercentGap
      See Also:
    • studentColorToDiningLaneCoords

      private static final Map<Color,Coordinates[]> studentColorToDiningLaneCoords
    • studentColorToProfessorCoords

      private static final Map<Color,Coordinates> studentColorToProfessorCoords
    • entranceCoordinates

      private static final List<Coordinates> entranceCoordinates
  • Constructor Details

    • SchoolBoardRenderer

      public SchoolBoardRenderer()
  • Method Details

    • renderSchoolBoard

      public static javafx.scene.layout.Pane renderSchoolBoard(LightSchoolBoard schoolBoard)
    • renderStudent

      private static javafx.scene.image.ImageView renderStudent(Color color, GUI.Rectangle schoolBoardRect, double schoolBoardAbsX, double schoolBoardAbsY, double relX, double relY)
    • renderProfessor

      private static javafx.scene.image.ImageView renderProfessor(Color color, GUI.Rectangle schoolBoardRect, double schoolBoardAbsX, double schoolBoardAbsY, double relX, double relY)
    • renderPawn

      private static javafx.scene.image.ImageView renderPawn(GUI.Rectangle schoolBoardRect, double schoolBoardAbsX, double schoolBoardAbsY, double relX, double relY, javafx.scene.image.Image asset_img)
    • renderStudentAndAddEventHandler

      private static javafx.scene.control.Button renderStudentAndAddEventHandler(Color color, GUI.Rectangle schoolBoardRect, double schoolBoardAbsX, double schoolBoardAbsY, double relX, double relY, SchoolBoardRenderer.TargetType targetType)
    • onMouseClickSchoolBoard

      private static void onMouseClickSchoolBoard()
    • onMouseClickEntrance

      private static void onMouseClickEntrance(javafx.scene.input.MouseEvent event, javafx.scene.image.ImageView studentImgView, Color studentColor)
    • onMouseClickDiningRoom

      private static void onMouseClickDiningRoom(javafx.scene.image.ImageView studentImgView, Color studentColor)
    • onMouseClickProfessor

      private static void onMouseClickProfessor(javafx.scene.image.ImageView professorImgView, Color professorColor)
    • renderInfo

      private static javafx.scene.layout.VBox renderInfo(LightSchoolBoard schoolBoard)
    • getTowerCount

      private static int getTowerCount(LightSchoolBoard schoolBoard)