Class PlayerTokenFactory

java.lang.Object
edu.ntnu.idi.idatt.factory.view.PlayerTokenFactory

public class PlayerTokenFactory extends Object
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 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 token
      color - the color of the player token
      playerTokenType - the type of player token to create