|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGame
Defines methods required by games in the game framework. A game instance assembles the appropriate pieces to create a full game. These pieces consist of an engine, an environment, and an adjudicator.
Method Summary | |
---|---|
void |
configure()
Configure this environment. |
void |
configure(Properties properties)
Configure this environment. |
IAdjudicator |
getAdjudicator()
Return the adjudicator. |
IEngine |
getEngine()
Return the engine. |
IEnvironment |
getEnvironment()
Return the environment. |
String |
getGameIdentifier()
Return the game identifier. |
IGameState |
getGameState()
Return the game state. |
Properties |
getProperties()
Return the configuration properties. |
String |
getPropertiesPath()
Return the path to the game properties. |
void |
open(File file)
Open the game contained in the given file. |
void |
reset()
Reset to the initial state. |
void |
save()
Save the current game. |
void |
saveAs(File file)
Save the current game to the given file. |
void |
setPropertiesPath(String propertiesPath)
Set the path to the game properties. |
void |
start()
Start the game. |
void |
stop()
Stop the game. |
Method Detail |
---|
void configure() throws InstantiationException, IllegalAccessException
InstantiationException
IllegalAccessException
void configure(Properties properties) throws InstantiationException, IllegalAccessException
properties
- Source of configuration information.
InstantiationException
IllegalAccessException
IAdjudicator getAdjudicator()
IEngine getEngine()
IEnvironment getEnvironment()
String getGameIdentifier()
IGameState getGameState()
Properties getProperties()
String getPropertiesPath()
void open(File file) throws FileNotFoundException, IOException, ClassNotFoundException
FileNotFoundException
IOException
ClassNotFoundException
void reset()
void save() throws FileNotFoundException, IOException
FileNotFoundException
IOException
void saveAs(File file) throws FileNotFoundException, IOException
FileNotFoundException
IOException
void setPropertiesPath(String propertiesPath)
void start()
void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |