lab1
Interface IGameFactory

All Known Implementing Classes:
GameFactory

public interface IGameFactory

Factory interface for available games.


Method Summary
 GameModel createGame(java.lang.String gameName)
          Returns a new model object for the game corresponding to its Name.
 java.lang.String[] getGameNames()
          Returns an array with names of games this factory can create.
 

Method Detail

getGameNames

java.lang.String[] getGameNames()
Returns an array with names of games this factory can create. Used by GUI list availible games.


createGame

GameModel createGame(java.lang.String gameName)
Returns a new model object for the game corresponding to its Name.

Parameters:
gameName - The name of the game as given by getGameNames()
Throws:
java.lang.IllegalArgumentException - if no such game