|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroup1.model.EnvironmentLoader
public class EnvironmentLoader
A class for loading an environment from a text file.
| Method Summary | |
|---|---|
Environment |
createEnvironment(Jeff jeff,
java.lang.String filename,
PictureList[] pictureCache)
Create an Environment, given a text file and the necessary objects. |
static EnvironmentLoader |
getInstance()
Get an instance of this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static EnvironmentLoader getInstance()
public final Environment createEnvironment(Jeff jeff,
java.lang.String filename,
PictureList[] pictureCache)
throws java.io.EOFException,
java.io.IOException,
java.io.FileNotFoundException
jeff - The object for the main character of the game.filename - The name of the file representing the Environment to be loaded.pictureCache - The cache of pictures.
java.io.EOFException - If we unexpectedly reach the end of a file.
java.io.IOException - If other reading errors occur.
java.io.FileNotFoundException - If the file's not found.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||