|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.kolls.railworld.car.AbstractCar
net.kolls.railworld.car.Openhopper
public class Openhopper
Open hopper based on CSX coal hopper
| Field Summary |
|---|
| Fields inherited from class net.kolls.railworld.car.AbstractCar |
|---|
isLoaded |
| Fields inherited from interface net.kolls.railworld.Car |
|---|
CAR_WIDTH, DIST_BETWEEN_CARS |
| Constructor Summary | |
|---|---|
Openhopper()
|
|
| Method Summary | |
|---|---|
java.awt.Color |
color()
Return the Car's color. |
Distance |
length()
Returns the length of this Car. |
java.lang.String |
show()
Gives a human-readable word for the Car. |
int |
weight()
Returns the weight of this Car (taking load/unload into account, if necessary) in US Tons. |
| Methods inherited from class net.kolls.railworld.car.AbstractCar |
|---|
canUserCreate, equals, isEngine, isLoadable, load, load, loaded, midColor, newInstance, save, segs, toString, unload |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Openhopper()
| Method Detail |
|---|
public Distance length()
Car
Distance indicating the length of the Car.public int weight()
Car
int representing weight in tons.public java.awt.Color color()
Car
Color of the current Car.public java.lang.String show()
Car
String indicating type of Car.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||