|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectantsnest.level.LevelManager
public class LevelManager
Responsible for managing the levels in the application
| Constructor Summary | |
|---|---|
LevelManager(File file)
Constructs a new manager |
|
| Method Summary | |
|---|---|
void |
addLevel(Level level)
Adds a level to be managed |
Level |
getCurrentLevel()
Gets the current level being viewed |
Level |
getLevel(int position)
Gets a level from a specified position |
Level |
getLevel(String classname)
Gets a level by classname |
Level[] |
getLevels()
Gets the levels being managed |
int |
getLevelSize()
Gets the number of levels currently being managed |
void |
load()
Loads manager information from a file |
void |
removeLevel(Level level)
Stops a level being managed |
void |
save()
Saves the manager information to a file |
void |
setCurrentLevel(Level level)
Sets the current level being viewed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LevelManager(File file)
file - the file to save the manager to| Method Detail |
|---|
public void addLevel(Level level)
level - the level to addpublic void removeLevel(Level level)
level - the level to stop managingpublic Level getLevel(int position)
position - the position of the level
public Level[] getLevels()
public int getLevelSize()
public void save()
throws IOException
an - IOException if there's a problem saving
IOException
public void load()
throws IOException
an - IOException if there's a problem loading
IOExceptionpublic void setCurrentLevel(Level level)
level - the currently viewed levelpublic Level getCurrentLevel()
public Level getLevel(String classname)
classname - the classname of the required level
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||