Class SchoolBoardRenderer
java.lang.Object
it.polimi.ingsw.client.new_gui.views.player_view.SchoolBoardRenderer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final List<Coordinates>private static final doubleprivate static final Map<Color,Coordinates[]> private static final Map<Color,Coordinates> private static final doubleprivate static final doubleprivate static final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intgetTowerCount(LightSchoolBoard schoolBoard) private static voidonMouseClickDiningRoom(javafx.scene.image.ImageView studentImgView, Color studentColor) private static voidonMouseClickEntrance(javafx.scene.input.MouseEvent event, javafx.scene.image.ImageView studentImgView, Color studentColor) private static voidonMouseClickProfessor(javafx.scene.image.ImageView professorImgView, Color professorColor) private static voidprivate static javafx.scene.layout.VBoxrenderInfo(LightSchoolBoard schoolBoard) private static javafx.scene.image.ImageViewrenderPawn(GUI.Rectangle schoolBoardRect, double schoolBoardAbsX, double schoolBoardAbsY, double relX, double relY, javafx.scene.image.Image asset_img) private static javafx.scene.image.ImageViewrenderProfessor(Color color, GUI.Rectangle schoolBoardRect, double schoolBoardAbsX, double schoolBoardAbsY, double relX, double relY) static javafx.scene.layout.PanerenderSchoolBoard(LightSchoolBoard schoolBoard) private static javafx.scene.image.ImageViewrenderStudent(Color color, GUI.Rectangle schoolBoardRect, double schoolBoardAbsX, double schoolBoardAbsY, double relX, double relY) private static javafx.scene.control.ButtonrenderStudentAndAddEventHandler(Color color, GUI.Rectangle schoolBoardRect, double schoolBoardAbsX, double schoolBoardAbsY, double relX, double relY, SchoolBoardRenderer.TargetType targetType)
-
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
-
studentColorToProfessorCoords
-
entranceCoordinates
-
-
Constructor Details
-
SchoolBoardRenderer
public SchoolBoardRenderer()
-
-
Method Details
-
renderSchoolBoard
-
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
-
getTowerCount
-