Class GameControllerFactory

java.lang.Object
com.edu.xmum.CST210.Factory.AbstractFactory
com.edu.xmum.CST210.Factory.GameControllerFactory

public class GameControllerFactory extends AbstractFactory
GameControllerFactory is responsible for creating instances of IGameController.
  • Constructor Details

    • GameControllerFactory

      public GameControllerFactory()
  • Method Details

    • getGameController

      public IGameController getGameController(Skin gameController, IGameService gameService)
      Creates and returns an instance of IGameController based on the specified skin.
      Overrides:
      getGameController in class AbstractFactory
      Parameters:
      gameController - The skin enumeration that determines which controller to create.
      gameService - The game service to be used by the controller.
      Returns:
      An instance of IGameController.