|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.kolls.railworld.io.RWGWriter
public class RWGWriter
Saves an in-progress game (position, zoom, selected train, and all trains). It requires the map to go with it
| Constructor Summary | |
|---|---|
RWGWriter()
|
|
| Method Summary | |
|---|---|
static void |
write(RailSegment[] la,
Trains trs,
ScriptManager sm,
MetaData md,
java.io.File f)
Saves the current game state (trains, dynamic track configuration, visual orientation) to a Rail World Game file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RWGWriter()
| Method Detail |
|---|
public static void write(RailSegment[] la,
Trains trs,
ScriptManager sm,
MetaData md,
java.io.File f)
throws java.lang.Exception
la - Array of rail segments to find both position IDs and track settingstrs - Trains to savesm - The ScriptManager containing all scripts in use.md - MetaData with center X and Y, and zoomf - File to save to
java.lang.Exception - If save is unable to proceed, especially if trains is modified while saving
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||