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