Skip navigation links
A B C D F G H I L M N O P R S T U V 

G

gameCanvas - Variable in class org.cppftw.trains.view.View
The canvas to draw on.
get(int, int) - Method in class org.cppftw.trains.controller.Field
Getter for field.
getCanvas() - Method in class org.cppftw.trains.view.SimpleView
Returns a reference the canvas this view belongs to.
getColor() - Method in class org.cppftw.trains.model.PassengerCoach
 
getColor() - Method in class org.cppftw.trains.model.Station
Returns the Color of this Station.
getCurrentPlace() - Method in class org.cppftw.trains.model.Vehicle
Returns a reference to the currentPlace attribute, which is the Slot occupied by this Vehicle.
getFixSlot() - Method in class org.cppftw.trains.model.Portal
Returns the reference to the attribute fixSlot.
getImage() - Method in class org.cppftw.trains.view.PortalView
Returns the Image object which belongs to this PortalView.
getImage() - Method in class org.cppftw.trains.view.RailView
Returns the Image object which belongs to this RailView.
getImage(String) - Static method in class org.cppftw.trains.view.SimpleView
Loads the image that represents this view's corresponding model, adds is to the storage if it isn't in there yet.
getImage() - Method in class org.cppftw.trains.view.SimpleView
Returns the Image that visually represents the model.
getImage() - Method in class org.cppftw.trains.view.StationView
Loads the image that represents this view's corresponding model.
getImage() - Method in class org.cppftw.trains.view.SwitchView
Returns the Image object which belongs to this SwitchView.
getInstance() - Static method in class org.cppftw.trains.model.Ground
Static method that returns a reference to the attribute instance, which is the single instance of Ground.
getInstance() - Static method in class org.cppftw.trains.view.VehicleView
Returns a reference to the single instance of this class
getModel() - Method in class org.cppftw.trains.view.SimpleView
Returns this view's corresponding model.
getNextCoach() - Method in class org.cppftw.trains.model.Vehicle
Returns a reference to the nextCoach attribute, which is the coach pulled by this Vehicle.
getNextSlot(Slot) - Method in class org.cppftw.trains.model.Ground
Returns the Slot an object must move to after its next step determined by previousSlot.
getNextSlot(Slot) - Method in class org.cppftw.trains.model.Portal
Returns the Slot a Vehicle standing on this Portal must move to after its next step determined by previousSlot.
getNextSlot(Slot) - Method in class org.cppftw.trains.model.Rail
Returns the Slot a Vehicle standing on this Slot must move to after its next step determined by previousSlot.
getNextSlot(Slot) - Method in class org.cppftw.trains.model.Slot
Returns the Slot an object must move to after its next step determined by previousSlot.
getNextSlot(Slot) - Method in class org.cppftw.trains.model.Switch
Returns the Slot a Vehicle standing on this Switch must move to after its next step determined by previousSlot.
getNumberOfNeighbors() - Method in class org.cppftw.trains.model.Rail
Returns the number of neighbors connected to this Rail.
getNumberOfOptions() - Method in class org.cppftw.trains.model.Switch
Returns the number of selectable options connected to this Rail.
getPoint() - Method in class org.cppftw.trains.view.SimpleView
Returns this view's position defining point.
getRotatedImage(Image, Direction) - Static method in class org.cppftw.trains.view.ImageUtils
Returns a new Image object which is created by rotating the given image with degrees defined by direction.
getSelectedOption() - Method in class org.cppftw.trains.model.Switch
 
getStation() - Method in class org.cppftw.trains.model.Slot
Returns "the" station which stands next to this slot, null there are no stations next to it.
getVehicle() - Method in class org.cppftw.trains.model.Slot
Returns "the" vehicle which stands on this slot, null if empty.
Ground - Class in org.cppftw.trains.model
The singleton class Ground is a Slot that represents all elements of the game field the trains can't traverse on.
GUI - Class in org.cppftw.trains.view
The GUI class is responsible for displaying the graphical user interface of the application.
GUI() - Constructor for class org.cppftw.trains.view.GUI
 
A B C D F G H I L M N O P R S T U V 
Skip navigation links