edu.lhup.ai
Interface IFactory
- All Known Implementing Classes:
- Factory
- public interface IFactory
The abstract representation of a factory that is capable of creating a
game. Implementations of this interface will be responsible
for creating a game using the parameters specified in a configuration file.
This software is for educational purposes only.
- Author:
- Mark Cohen
getBoardInstance
public IBoard getBoardInstance(String strConfigFile)
throws StateException
- Parameters:
strConfigFile - a resource that contains all the configuration
parameters needed to create a game.
- Returns:
- a game that is ready to be played.
- Throws:
StateException - if the configuration files specifies an
an invalid game.