Interface | Description |
---|---|
Trailable |
Trailable is an interface that specifies the behavior of classes
Coach and NotifierCoach , the instances of which both can be pulled or
emptied in the game, that is, they can be forced to move by other Vehicle objects. |
Vehicle.Visitor |
The
Visitor interface for the visitor pattern. |
Class | Description |
---|---|
Coach |
The
Coach class implements the coal wagons of the trains in the game. |
Ground |
The singleton class
Ground is a Slot that represents all elements
of the game field the trains can't traverse on. |
Locomotive |
The
Locomotive class represents the locomotives of the trains in the game. |
NotifierCoach |
The class
NotifierCoach represents the next after the last Coach
of the train, which can be pulled and knows the Locomotive that is pulling it
and the Controller it was created by. |
PassengerCoach |
The
PassengerCoach class implements the coaches carrying passengers of the trains in the game. |
Portal |
The class
Portal represents the places, also known as Slot s
where entrances of Tunnel s can be opened. |
Rail |
The class
Rail represents simple railway sections or railway crossings,
which is a
A Rail has an even number of identified neighboring Slot s. |
Slot |
Represents a general element on the game field.
|
Station |
The class
Station represents the stations connected to Slot s. |
Switch |
The class
Switch represents a railway switch. |
Tunnel |
The class
Tunnel represents the tunnel between two open Portal s,
which are the tunnel entrances. |
Vehicle |
The abstract class Vehicle specifies some common behaviors and properties of the classes
Locomotive and Coach . |
Enum | Description |
---|---|
Color |
Enumeration type to be used for distinguishing colored stations and
PassengerCoach es. |