|
||||||||||
| 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.Tankcar
public class Tankcar
Tank car (chemical car). Based on 111A100W1
| 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 | |
|---|---|
Tankcar()
|
|
| 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 Tankcar()
| Method Detail |
|---|
public java.awt.Color color()
Car
Color of the current Car.public Distance length()
Car
Distance indicating the length of the Car.public java.lang.String show()
Car
String indicating type of Car.public int weight()
Car
int representing weight in tons.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||