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 Summary
Modifier and TypeMethodDescriptionGet the available games in this factory.getGameplay
(String name) Get the gameplay for a game with a given name.
-
Method Details
-
getAvailableGameplays
Get the available games in this factory.- Returns:
- the available games.
-
getGameplay
Get the gameplay for a game with a given name.- Parameters:
name
- of the game.- Returns:
- the gameplay for the given game.
-