Package rea.gameplay

Interface AbstractGameplayFactory

All Known Implementing Classes:
GameplayFactory

public interface AbstractGameplayFactory
Abstract definition of a Gameplay factory method. It supports the impleenation of multiple factories with different apporaches to create gameplays, but is primarily intended for GameplayFactory that uses reflection.
Author:
José Paulo Leal jpleal@fc.up.pt
Implementation Note:
abstract participant of the Factory method design pattern.
  • Method Details

    • getAvailableGameplays

      Set<String> getAvailableGameplays()
      Get the available games in this factory.
      Returns:
      the available games.
    • getGameplay

      Gameplay getGameplay(String name)
      Get the gameplay for a game with a given name.
      Parameters:
      name - of the game.
      Returns:
      the gameplay for the given game.