Serialized Form
Package net.kolls.railworld |
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.
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)
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.
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 |
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.
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 |
appletPic
javax.swing.JPanel appletPic
tlr
java.lang.Thread tlr
lbl
javax.swing.JLabel lbl
rl
ResourceLoader rl
selected
boolean[] selected
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
f
javax.swing.JFrame f
c
java.awt.GridBagConstraints c
cl
java.awt.GridBagConstraints cl
gridbag
java.awt.GridBagLayout gridbag
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
maps
MapLoader[] maps
- When used with an applet, will contain all the loaded maps when finished.
a
Applet a
cbl
CheckBoxList cbl
internal
ScriptManager internal
curr
ScriptManager curr
Package net.kolls.railworld.play |
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.
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
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.
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.
spsg
javax.swing.ButtonGroup spsg
wentInside
boolean wentInside
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
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 |
Package net.kolls.railworld.play.script |
drawables
java.util.ArrayList<E> drawables
- All drawing listeners
tals
java.util.ArrayList<E> tals
- All train listeners
Package net.kolls.railworld.tc |
sc
boolean sc
desiredThrottle
int desiredThrottle
desiredBrake
boolean desiredBrake
modify
boolean modify
hasSoundedHorn
boolean hasSoundedHorn
current
TrainControl current
s
TrainControl s
ds
TrainControl ds
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