#include <buildingtypeselector.h>
Inheritance diagram for BuildingTypeBaseWidget:

Public Member Functions | |
| BuildingTypeBaseWidget (PG_Widget *parent, const PG_Point &pos, int width, const BuildingType *BuildingType, const Player &player) | |
| ASCString | getName () const |
| const BuildingType * | getBuildingType () const |
Protected Member Functions | |
| void | display (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst) |
Static Protected Member Functions | |
| static int | getBuildingHeight (const BuildingType *type) |
Definition at line 31 of file buildingtypeselector.h.
| BuildingTypeBaseWidget::BuildingTypeBaseWidget | ( | PG_Widget * | parent, | |
| const PG_Point & | pos, | |||
| int | width, | |||
| const BuildingType * | BuildingType, | |||
| const Player & | player | |||
| ) |
Definition at line 47 of file buildingtypeselector.cpp.
References buildingWidth, and ContainerBaseType::name.
| ASCString BuildingTypeBaseWidget::getName | ( | ) | const [virtual] |
Implements SelectionWidget.
Definition at line 57 of file buildingtypeselector.cpp.
References ContainerBaseType::getName().
| const BuildingType* BuildingTypeBaseWidget::getBuildingType | ( | ) | const [inline] |
Definition at line 39 of file buildingtypeselector.h.
Referenced by BuildingTypeSelectionItemFactory::itemSelected().
| void BuildingTypeBaseWidget::display | ( | SDL_Surface * | surface, | |
| const PG_Rect & | src, | |||
| const PG_Rect & | dst | |||
| ) | [protected, virtual] |
Implements SelectionWidget.
Definition at line 62 of file buildingtypeselector.cpp.
References buildingHeight, buildingWidth, Surface::createSurface(), fielddisthalfx, fielddistx, fielddisty, BuildingType::fieldExists(), Player::getPlayerColor(), maxint, min(), and BuildingType::paintSingleField().
| int BuildingTypeBaseWidget::getBuildingHeight | ( | const BuildingType * | type | ) | [static, protected] |
Definition at line 32 of file buildingtypeselector.cpp.
References fielddisty, BuildingType::fieldExists(), fieldsizey, max(), maxint, min(), and minint.
1.5.1