|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.rico.editor.io.RoomIO
public class RoomIO
This class can be used to export the current room to a file and to import a room from a file.
| Constructor Summary | |
|---|---|
RoomIO(Room room,
boolean forEditor)
Creates a new RoomIO object with the specified (empty) room object that is going to be filled or saved. |
|
| Method Summary | |
|---|---|
void |
exportRoom(java.lang.String path)
Saves the room information to the specified file. |
void |
importRoom(java.lang.String path)
Loads the room information from the specified file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoomIO(Room room,
boolean forEditor)
room - room object to operate onforEditor - is room going to be loaded into the editor? --> true=yes, false=no| Method Detail |
|---|
public void importRoom(java.lang.String path)
path - filepath + name of the file to load frompublic void exportRoom(java.lang.String path)
path - filepath + name for the saved file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||