BaseVehicleListWindow Struct Reference

Inheritance diagram for BaseVehicleListWindow:
Window ZeroedMemoryAllocator VehicleGroupWindow VehicleListWindow

Public Member Functions

void DrawVehicleListItems (VehicleID selected_vehicle, int line_height, const Rect &r) const
 Draw all the vehicle list items.
void SortVehicleList ()
void BuildVehicleList (Owner owner, uint16 index, uint16 window_type)

Data Fields

GUIVehicleList vehicles
 The list of vehicles.
Listingsorting
 Pointer to the vehicle type related sorting.
VehicleType vehicle_type
 The vehicle type that is sorted.
byte unitnumber_digits
 The number of digits of the highest unit number.

Static Public Attributes

static const StringID vehicle_sorter_names []
static
GUIVehicleList::SortFunction
*const 
vehicle_sorter_funcs []

Detailed Description

Definition at line 20 of file vehicle_gui_base.h.


Member Function Documentation

void BaseVehicleListWindow::DrawVehicleListItems ( VehicleID  selected_vehicle,
int  line_height,
const Rect r 
) const

Field Documentation

GUIVehicleList::SortFunction *const BaseVehicleListWindow::vehicle_sorter_funcs [static]
const StringID BaseVehicleListWindow::vehicle_sorter_names [static]
Initial value:
 {
  STR_SORT_BY_NUMBER,
  STR_SORT_BY_NAME,
  STR_SORT_BY_AGE,
  STR_SORT_BY_PROFIT_THIS_YEAR,
  STR_SORT_BY_PROFIT_LAST_YEAR,
  STR_SORT_BY_TOTAL_CAPACITY_PER_CARGOTYPE,
  STR_SORT_BY_RELIABILITY,
  STR_SORT_BY_MAX_SPEED,
  STR_SORT_BY_MODEL,
  STR_SORT_BY_VALUE,
  STR_SORT_BY_LENGTH,
  STR_SORT_BY_LIFE_TIME,
  STR_SORT_BY_TIMETABLE_DELAY,
  INVALID_STRING_ID
}

Definition at line 26 of file vehicle_gui_base.h.


The documentation for this struct was generated from the following files:

Generated on Wed Apr 21 20:32:21 2010 for OpenTTD by  doxygen 1.6.1