Package com.edu.xmum.CST210.View.Styler
Class PlayerViewStyler
java.lang.Object
com.edu.xmum.CST210.View.Styler.PlayerViewStyler
Beautification of PlayerView based on Appearance Pattern Design.
Applies styles to the player view based on the selected skin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidplayerViewStyle(Skin skin, javafx.scene.image.ImageView playerView, int cellSize, IPlayerModel player, String playerDir) Styles the player view based on the specified skin.
-
Constructor Details
-
PlayerViewStyler
public PlayerViewStyler()
-
-
Method Details
-
playerViewStyle
public static void playerViewStyle(Skin skin, javafx.scene.image.ImageView playerView, int cellSize, IPlayerModel player, String playerDir) Styles the player view based on the specified skin.- Parameters:
skin- The skin to apply to the player view.playerView- The ImageView representing the player.cellSize- The size of each cell in the maze.player- The player model instance.playerDir- The direction the player is facing.
-