net.kolls.railworld
Class DLoc

java.lang.Object
  extended by net.kolls.railworld.DLoc

public class DLoc
extends java.lang.Object

A DLoc represents a location, direction, and rendering information. The rendering information is stored as a series of lines which may be stroked to display a Car or other item.

Author:
Steve Kollmansberger

Field Summary
 java.awt.geom.Line2D[] lines
          An array of lines to be drawn for this item.
 CLoc newLoc
          The head position associated with this item.
 
Constructor Summary
DLoc(java.awt.geom.Line2D[] li, CLoc nl)
          Construct a DLoc.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lines

public java.awt.geom.Line2D[] lines
An array of lines to be drawn for this item. Note that the lines may not be adjacent (for example, if part of the car is hidden).


newLoc

public CLoc newLoc
The head position associated with this item.

Constructor Detail

DLoc

public DLoc(java.awt.geom.Line2D[] li,
            CLoc nl)
Construct a DLoc.

Parameters:
li - The rendering lines. May be null.
nl - A CLoc, indicating location and position.