GSEventStationFirstVehicle Class Reference

Event Station First Vehicle, indicating a station has been visited by a vehicle for the first time. More...

Inheritance diagram for GSEventStationFirstVehicle:

GSEvent

Public Member Functions

 GSEventStationFirstVehicle (StationID station, VehicleID vehicle)
StationID GetStationID ()
 Get the StationID of the visited station.
VehicleID GetVehicleID ()
 Get the VehicleID of the first vehicle.

Static Public Member Functions

static GSEventStationFirstVehicleConvert (GSEvent *instance)
 Convert an GSEvent to the real instance.

Detailed Description

Event Station First Vehicle, indicating a station has been visited by a vehicle for the first time.

Constructor & Destructor Documentation

GSEventStationFirstVehicle::GSEventStationFirstVehicle ( StationID  station,
VehicleID  vehicle 
)

Parameters:
station The station visited for the first time.
vehicle The vehicle visiting the station.


Member Function Documentation

static GSEventStationFirstVehicle* GSEventStationFirstVehicle::Convert ( GSEvent instance  )  [inline, static]

Convert an GSEvent to the real instance.

Parameters:
instance The instance to convert.
Returns:
The converted instance.

StationID GSEventStationFirstVehicle::GetStationID (  )  [inline]

Get the StationID of the visited station.

Returns:
The StationID of the visited station.

VehicleID GSEventStationFirstVehicle::GetVehicleID (  )  [inline]

Get the VehicleID of the first vehicle.

Returns:
The VehicleID of the first vehicle.


Generated on Sun Mar 31 21:37:40 2013 for OpenTTD Game API by  doxygen 1.5.6