Serialized Form


Package net.kolls.railworld

Class net.kolls.railworld.MiniViewer extends java.awt.Canvas implements Serializable

Serialized Fields

strategy

java.awt.image.BufferStrategy strategy

bi

java.awt.image.BufferedImage bi

hostpx

int hostpx

hostpy

int hostpy

hostw

int hostw

hosth

int hosth

scale

double scale

tx

int tx

ty

int ty

imgw

int imgw

imgh

int imgh

rc

RailCanvas rc
The RailCanvas to submit movement requests to.

Class net.kolls.railworld.RailCanvas extends java.awt.Canvas implements Serializable

Serialized Fields

orig_src

java.awt.image.BufferedImage orig_src
The original, unmodified source image


minisource

java.awt.image.BufferedImage minisource
The miniviewer image


la

RailSegment[] la
The rail segments. This should be considered read-only


vx

int vx
The left edge of the current viewing location on the image


vy

int vy
The upper edge of the current viewing location on the image


mx

int mx
The mouse location during a drag (x)


my

int my
The mouse location during a drag (y)


miniv

MiniViewer miniv
The mini-viewer for this canvas


strategy

java.awt.image.BufferStrategy strategy

antialias

java.lang.Object antialias
The rendering hints for antialias (either VALUE_ANTIALIAS_ON or VALUE_ANTIALIAS_OFF)

Class net.kolls.railworld.RailFrame extends javax.swing.JFrame implements Serializable

Serialized Fields

miniv

MiniViewer miniv
The mini viewer


rightPanel

javax.swing.JPanel rightPanel
The right panel


toolBar

javax.swing.JToolBar toolBar
The tool bar. Several buttons are given by default, and individual frames may add more. Each individual frame, however, is responsible for all the functionality.

Class net.kolls.railworld.TrainControl extends javax.swing.JPanel implements Serializable

Serialized Fields

weight

javax.swing.JLabel weight
Label displaying current weight


speed

javax.swing.JLabel speed
Label displaying current speed


length

javax.swing.JLabel length
Label displaying current length


consist

javax.swing.JPanel consist
Label containing the "consist" Collection of cars


myT

Train myT
The train being controlled


selected

Car selected
The selected car in the train, or null.


_s

ScriptManager _s
The script manager to notify about events.


Package net.kolls.railworld.edit

Class net.kolls.railworld.edit.EditCanvas extends RailCanvas implements Serializable

Serialized Fields

createSegment

javax.swing.undo.CompoundEdit createSegment

sep

SegmentEditPoint sep

osep

SegmentEditPoint osep

allsegs

java.util.ArrayList<E> allsegs

selectedTool

EditCanvas.Tool selectedTool
One of the TOOL_* constants.


undos

javax.swing.undo.UndoManager undos
Allows calls to undo and redo for edits.


justSaved

boolean justSaved
Still as it was when loaded or saved?


eecnt

int eecnt

displaySEP

boolean displaySEP
Should edit points be displayed?


seppanel

javax.swing.JPanel seppanel
The edit panel provided by the currently selected edit point.

Class net.kolls.railworld.edit.EditFrame extends RailFrame implements Serializable

Serialized Fields

jdb

EditCanvas jdb

buts

javax.swing.JPanel buts

tools

javax.swing.ButtonGroup tools

jfc

javax.swing.JFileChooser jfc

mmd

MetaData mmd

gl

GameLoop gl

undo

javax.swing.JButton undo

redo

javax.swing.JButton redo

Package net.kolls.railworld.opening

Class net.kolls.railworld.opening.Applet extends javax.swing.JApplet implements Serializable

Serialized Fields

appletPic

javax.swing.JPanel appletPic

tlr

java.lang.Thread tlr

lbl

javax.swing.JLabel lbl

rl

ResourceLoader rl

Class net.kolls.railworld.opening.CheckBoxList extends javax.swing.JList implements Serializable

Serialized Fields

selected

boolean[] selected

Class net.kolls.railworld.opening.MetaDataPanel extends javax.swing.JPanel implements Serializable

Serialized Fields

scale

javax.swing.JTextField scale

author

javax.swing.JTextField author

title

javax.swing.JTextField title

track

javax.swing.JTextField track

comment

javax.swing.JTextArea comment

md

MetaData md

Class net.kolls.railworld.opening.Opening extends javax.swing.JFrame implements Serializable

Serialized Fields

f

javax.swing.JFrame f

Class net.kolls.railworld.opening.OptionPanel extends javax.swing.JPanel implements Serializable

Serialized Fields

c

java.awt.GridBagConstraints c

cl

java.awt.GridBagConstraints cl

gridbag

java.awt.GridBagLayout gridbag

Class net.kolls.railworld.opening.Options extends javax.swing.JDialog implements Serializable

Serialized Fields

sound

javax.swing.JComboBox sound

fps

javax.swing.JComboBox fps

remember

javax.swing.JCheckBox remember

metric

javax.swing.JCheckBox metric

antialias

javax.swing.JCheckBox antialias

Class net.kolls.railworld.opening.ResourceLoader extends javax.swing.JProgressBar implements Serializable

Serialized Fields

maps

MapLoader[] maps
When used with an applet, will contain all the loaded maps when finished.


a

Applet a

Class net.kolls.railworld.opening.ScriptPanel extends javax.swing.JPanel implements Serializable

Serialized Fields

cbl

CheckBoxList cbl

internal

ScriptManager internal

curr

ScriptManager curr

Package net.kolls.railworld.play

Class net.kolls.railworld.play.MultiLineTrainPanel extends javax.swing.JPanel implements Serializable

Serialized Fields

myVC

java.util.ArrayList<E> myVC
Cars, in order, that compose the train. The user of this class can modify this vector and then ask the panel to be repainted.

Class net.kolls.railworld.play.PlayCanvas extends RailCanvas implements Serializable

Serialized Fields

trains

Trains trains
The trains in play


sm

ScriptManager sm
The script manager containing all active scripts


showContextInfo

boolean showContextInfo
Should we show context information in the canvas based on mouse cursor?


dynamicSegs

java.util.ArrayList<E> dynamicSegs

currmx

int currmx

currmy

int currmy

Class net.kolls.railworld.play.PlayFrame extends RailFrame implements Serializable

Serialized Fields

jdb

PlayCanvas jdb
The canvas in use. The canvas maintains the active train list and segments.


gl

GameLoop gl
The game loop that manages action on this frame.


mmd

MetaData mmd

pause

javax.swing.JToggleButton pause

cth

javax.swing.JToggleButton cth

dataList

javax.swing.JList dataList

tlcr

java.awt.image.BufferedImage tlcr
A default zoom low detail version of the map, used in particular for the train list.

Class net.kolls.railworld.play.RailAccident extends java.lang.RuntimeException implements Serializable

Serialized Fields

t1

Train t1
The trains involved in the accident. t1 must not be null.


t2

Train t2
The other train. t2 may be null if there is only one train involved.


pos

java.awt.geom.Point2D pos
The location of the accident.

Class net.kolls.railworld.play.RailAccidentFrame extends javax.swing.JFrame implements Serializable

Class net.kolls.railworld.play.SignalProgramChooser extends javax.swing.JFrame implements Serializable

Serialized Fields

spsg

javax.swing.ButtonGroup spsg

wentInside

boolean wentInside

Class net.kolls.railworld.play.TrainCreator extends javax.swing.JFrame implements Serializable

Serialized Fields

loaded

javax.swing.JPanel loaded

unloaded

javax.swing.JPanel unloaded

nonload

javax.swing.JPanel nonload

ctrain

MultiLineTrainPanel ctrain

ees

java.util.Vector<E> ees

pf

PlayFrame pf

enters

javax.swing.JComboBox enters

speeds

javax.swing.JComboBox speeds

incr

int incr

sc

java.util.Map<K,V> sc

sm

ScriptManager sm

Class net.kolls.railworld.play.TrainListCellRenderer extends javax.swing.JPanel implements Serializable

Serialized Fields

pf

PlayFrame pf

p

java.awt.geom.Point2D p

myT

Train myT

text

java.lang.String text

borderWidth

int borderWidth

baseline

int baseline

width

int width

height

int height

Package net.kolls.railworld.play.ra

Class net.kolls.railworld.play.ra.HeadOn extends RailAccident implements Serializable

Class net.kolls.railworld.play.ra.OverRun extends RailAccident implements Serializable

Class net.kolls.railworld.play.ra.RearEnd extends RailAccident implements Serializable

Class net.kolls.railworld.play.ra.SideOn extends RailAccident implements Serializable


Package net.kolls.railworld.play.script

Class net.kolls.railworld.play.script.ScriptManager extends java.util.ArrayList<Script> implements Serializable

Serialized Fields

drawables

java.util.ArrayList<E> drawables
All drawing listeners


tals

java.util.ArrayList<E> tals
All train listeners


Package net.kolls.railworld.tc

Class net.kolls.railworld.tc.AutoControl extends TrainControl implements Serializable

Serialized Fields

sc

boolean sc

desiredThrottle

int desiredThrottle

desiredBrake

boolean desiredBrake

modify

boolean modify

hasSoundedHorn

boolean hasSoundedHorn

Class net.kolls.railworld.tc.MixControl extends TrainControl implements Serializable

Serialized Fields

current

TrainControl current

s

TrainControl s

ds

TrainControl ds

Class net.kolls.railworld.tc.UserControl extends TrainControl implements Serializable

Serialized Fields

throttle

javax.swing.JSlider throttle

brake

javax.swing.JToggleButton brake

follow

javax.swing.JToggleButton follow

reverse

javax.swing.JButton reverse

split

javax.swing.JButton split

unload

javax.swing.JButton unload

load

javax.swing.JButton load

horn

javax.swing.JButton horn

lable

Car[] lable

ulable

Car[] ulable