public interface AbstractGameFactory
Type of a class that produces specializations of
GameMaster for particular games given their names. This type
provides also a list of available game names.
Abstract component of the Factory design pattern.
jpleal@fc.up.pt| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAvailableGames()
A list of available game names.
|
GameMaster |
makeGameMaster(java.lang.String name)
A specialization of
GameMaster for the given game name. |
java.util.List<java.lang.String> getAvailableGames()
GameMaster makeGameMaster(java.lang.String name) throws CardGameException
GameMaster for the given game name.name - of gameCardGameException - if given game name is not supported.