#include <vehicletypeselector.h>
Inheritance diagram for VehicleTypeBaseWidget:

Public Member Functions | |
| VehicleTypeBaseWidget (PG_Widget *parent, const PG_Point &pos, int width, const VehicleType *vehicletype, const Player &player) | |
| ASCString | getName () const |
| const VehicleType * | getVehicletype () const |
Protected Member Functions | |
| void | display (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst) |
Static Protected Member Functions | |
| static int | buttonXPos (int width, int num) |
Definition at line 31 of file vehicletypeselector.h.
| VehicleTypeBaseWidget::VehicleTypeBaseWidget | ( | PG_Widget * | parent, | |
| const PG_Point & | pos, | |||
| int | width, | |||
| const VehicleType * | vehicletype, | |||
| const Player & | player | |||
| ) |
Definition at line 27 of file vehicletypeselector.cpp.
References buttonXPos(), ContainerBaseType::description, IconRepository::getIcon(), and ContainerBaseType::name.
| ASCString VehicleTypeBaseWidget::getName | ( | ) | const [virtual] |
Implements SelectionWidget.
Definition at line 63 of file vehicletypeselector.cpp.
References VehicleType::getName().
| const VehicleType* VehicleTypeBaseWidget::getVehicletype | ( | ) | const [inline] |
Definition at line 40 of file vehicletypeselector.h.
Referenced by VehicleProduction_SelectionItemFactory::itemMarked(), AvailableProductionItemFactory::itemMarked(), and VehicleTypeSelectionItemFactory::itemSelected().
| void VehicleTypeBaseWidget::display | ( | SDL_Surface * | surface, | |
| const PG_Rect & | src, | |||
| const PG_Rect & | dst | |||
| ) | [protected, virtual] |
Implements SelectionWidget.
Definition at line 68 of file vehicletypeselector.cpp.
References Surface::createSurface(), fieldsizex, fieldsizey, Player::getPlayerColor(), and VehicleType::paint().
| int VehicleTypeBaseWidget::buttonXPos | ( | int | width, | |
| int | num | |||
| ) | [static, protected] |
Definition at line 47 of file vehicletypeselector.cpp.
Referenced by VehicleTypeBaseWidget(), and VehicleTypeCountLocateWidget::VehicleTypeCountLocateWidget().
1.5.1