- GAP_TIME - Static variable in class carsproject.map.Roads.TrafficLight
-
Constant used in order to determine the time line in
Semaphore
.
- Garage - Class in carsproject.vehicles
-
This class contains methods used to instantiate new vehicles
and to get info on those already instantiated.
- getAllLogs() - Method in class carsproject.general.Amanuensis
-
Return the map of all logs stored in amanuensis.
- getAllVehiclesTypes() - Method in class carsproject.vehicles.Garage
-
Return name of all vehicles available at instantiation.
- getAnglesPosition() - Method in class carsproject.vehicles.AbstrModelVehicle
-
Return an array of 4 elements containing vehicle's angles.
- getAnglesPosition() - Method in interface carsproject.vehicles.IModelVehicle
-
Return angles position in a vector of four elements.
- getCenterBow() - Method in class carsproject.map.Roads.Bow
-
Returns the center of the bow.
- getCenterPoint() - Method in class carsproject.vehicles.AbstrModelVehicle
-
Return center point of the vehicle, calculating it on image dimensions.
- getCenterPoint(ITile, Direction, Direction) - Static method in class carsproject.vehicles.AbstrThreadVehicle
-
Function to get center point of a curve.
- getColoredImage(Color, int, int) - Static method in class carsproject.view.ImageTool
-
Creates a colored image with a specified color.
- getColour() - Method in class carsproject.map.Roads.TrafficLight
-
Returns the current state of the traffic light.
- getColumns() - Static method in class carsproject.map.MapManager
-
Returns the columns of the map matrix.
- getContrary(Direction) - Static method in enum carsproject.map.Direction
-
Returns the opposite direction respect to that given.
- getCurvatureAngleActual() - Method in class carsproject.vehicles.AbstrModelVehicle
-
- getCurvatureAngleActual() - Method in interface carsproject.vehicles.IModelVehicle
-
Return curvature radius, in radians.
- getCurvatureAngleActualInDegrees() - Method in class carsproject.vehicles.AbstrModelVehicle
-
- getCurvatureAngleToReach() - Method in class carsproject.vehicles.AbstrModelVehicle
-
- getCurvatureAngleToReach() - Method in interface carsproject.vehicles.IModelVehicle
-
Return curvature radius, in radians.
- getEmptyImage(int, int) - Static method in class carsproject.view.ImageTool
-
Creates an empty image with transparency.
- getGreenTime() - Method in class carsproject.map.Roads.TrafficLight
-
Returns the time given to the traffic light for the green time's
state.
- getInstance() - Static method in class carsproject.general.Amanuensis
-
Unique method to get the singleton instance of Amanuensis class.
- getInstance() - Static method in class carsproject.map.MapManager
-
Returns the singleton of the class if it has been allocated yet,
otherwise calls the constructor of the class which allocates the
singleton and returns it.
- getInstance() - Static method in class carsproject.map.MapTiles
-
Returns the singleton of the class.
- getInstance() - Static method in class carsproject.map.SpawnController
-
Return the singleton instance of SpawnController.
- getInstance() - Static method in class carsproject.vehicles.Garage
-
Return the unique instance of Garage.
- getLog(String) - Method in class carsproject.general.Amanuensis
-
Returns list of log's lines if stored in Amanuensis logs.
- getMap() - Method in class carsproject.map.MapTiles
-
Return loaded map.
- getMaxX() - Static method in class carsproject.general.Coordinates
-
Return maximum value for coordinate X.
- getMaxY() - Static method in class carsproject.general.Coordinates
-
Return maximum value for coordinate X.
- getModelVehicle() - Method in class carsproject.vehicles.AbstrThreadVehicle
-
Return model vehicle's object related to this thread.
- getName() - Method in class carsproject.vehicles.AbstrModelVehicle
-
- getName() - Method in interface carsproject.vehicles.IModelVehicle
-
Returns the name, it is unique between all vehicles.
- getPixelsToGo() - Method in class carsproject.vehicles.AbstrModelVehicle
-
- getPixelsToGo() - Method in interface carsproject.vehicles.IModelVehicle
-
Return pixels that vehicle can still move.
- getPosition() - Method in class carsproject.map.AbstractTile
-
- getPosition() - Method in interface carsproject.map.ITile
-
Returns the position, on the map, of the tile under consideration.
- getPosition() - Method in class carsproject.vehicles.AbstrModelVehicle
-
GETTERS AND SETTERS
- getPosition() - Method in interface carsproject.vehicles.IModelVehicle
-
Returns vehicle coordinates.
- getPossibleWays() - Method in class carsproject.map.AbstractTile
-
- getPossibleWays() - Method in interface carsproject.map.ITile
-
Returns the possible directions the car can take on the specified tile.
- getPriority() - Method in class carsproject.map.Roads.TrafficLight
-
Returns the turn of the traffic light inside the cross.
- getRows() - Static method in class carsproject.map.MapManager
-
Returns the rows of the map matrix.
- getSemaphoreList() - Method in class carsproject.map.MapTiles
-
Returns the iterator of the associated traffic lights' crosses.
- getSpawnCoordinates() - Method in class carsproject.map.MapTiles
-
Return all spawn points of the map.
- getSpawnPoints() - Method in class carsproject.map.MapManager
-
Return all spawn points of the map with the same numbering used in configuration file.
- getSpeed() - Method in class carsproject.vehicles.AbstrModelVehicle
-
- getSpeed() - Method in interface carsproject.vehicles.IModelVehicle
-
Return vehicle speed, in Km/h.
- getSpeedToReach() - Method in class carsproject.vehicles.AbstrModelVehicle
-
- getSpeedToReach() - Method in interface carsproject.vehicles.IModelVehicle
-
Return speed that vehicle will reach at the end its actual a movement.
- getSprite() - Method in class carsproject.map.AbstractTile
-
- getSprite() - Method in interface carsproject.map.ITile
-
Returns the sprite used to portray the tile.
- getSprite() - Method in class carsproject.map.Roads.TrafficLight
-
Gets the sprite related to the actual colour.
- getSprite() - Method in class carsproject.vehicles.AbstrModelVehicle
-
- getSprite() - Method in interface carsproject.vehicles.IModelVehicle
-
Returns sprite image of vehicle.
- getSprite() - Method in class carsproject.vehicles.ModelCar
-
- getThread() - Method in class carsproject.vehicles.AbstrModelVehicle
-
- getThread() - Method in interface carsproject.vehicles.IModelVehicle
-
Return thread of this vehicle.
- getTileAt(Coordinates) - Method in class carsproject.map.MapTiles
-
Returns the tile at the specified position.
- getType() - Method in class carsproject.map.AbstractTile
-
- getType() - Method in interface carsproject.map.ITile
-
Returns the run-time type of the tile under consideration.
- getVehicle(String) - Method in class carsproject.vehicles.Garage
-
Returns only a vehicle giving its unique name.
- getVehicle(Coordinates) - Method in class carsproject.vehicles.Garage
-
Given a position, it returns a vehicle if standing in that
position, null otherwise.
- getVehicles() - Method in class carsproject.vehicles.Garage
-
Return a set with all vehicles stored in Garage.
- getWay() - Method in class carsproject.vehicles.AbstrModelVehicle
-
Return the direction in which the vehicle is going.
- getWay() - Method in interface carsproject.vehicles.IModelVehicle
-
Return the direction in which the vehicle is going.
- getX() - Method in class carsproject.general.Coordinates
-
Return value of coordinate X.
- getY() - Method in class carsproject.general.Coordinates
-
Return value of coordinate Y.
- GREEN - Static variable in class carsproject.view.MapDrawer
-
- GREEN_INDEX - Static variable in class carsproject.map.Roads.TrafficLight
-
Constant used for the state of the traffic light's colour.
- GUIdrawer - Class in carsproject.view
-
Contains the object and methods to draw and manage the GUI and his components.
- GUIdrawer() - Constructor for class carsproject.view.GUIdrawer
-
Constructor of
GUIdrawer
class,
create the menu for open the map or load the default map, start and stop the vehicle
and show the credits window.
- GUIdrawer.SpawnPanel - Class in carsproject.view
-
Panel of spawn.
- GUIdrawer.SpawnPanel() - Constructor for class carsproject.view.GUIdrawer.SpawnPanel
-
Construct a new panel of spawn.