Package edu.ntnu.idi.idatt.factory.view
Class PlayerTokenFactory
java.lang.Object
edu.ntnu.idi.idatt.factory.view.PlayerTokenFactory
PlayerTokenCreator class
This class is responsible for creating player tokens of different types. It takes in a radius,
color, and player token type, and returns a Shape
object representing the player token.
-
Method Summary
Modifier and TypeMethodDescriptionstatic javafx.scene.shape.Shape
create
(double radius, javafx.scene.paint.Color color, PlayerTokenType playerTokenType) Constructor for PlayerTokenCreator class.
-
Method Details
-
create
public static javafx.scene.shape.Shape create(double radius, javafx.scene.paint.Color color, PlayerTokenType playerTokenType) Constructor for PlayerTokenCreator class.- Parameters:
radius
- the radius of the player tokencolor
- the color of the player tokenplayerTokenType
- the type of player token to create
-