
Public Member Functions | |
| TechWidget (PG_Widget *parent, const PG_Point &pos, int width, const Technology *technology, int player=0) | |
| ASCString | getName () const |
| const Technology * | getTechnology () const |
Protected Member Functions | |
| void | display (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst) |
Definition at line 41 of file choosetech.cpp.
| TechWidget::TechWidget | ( | PG_Widget * | parent, | |
| const PG_Point & | pos, | |||
| int | width, | |||
| const Technology * | technology, | |||
| int | player = 0 | |||
| ) |
Definition at line 56 of file choosetech.cpp.
References IconRepository::getIcon(), Technology::name, Technology::relatedUnitID, Technology::researchpoints, and ASCString::toString().
| ASCString TechWidget::getName | ( | ) | const [virtual] |
Implements SelectionWidget.
Definition at line 89 of file choosetech.cpp.
References Technology::name.
| const Technology* TechWidget::getTechnology | ( | ) | const [inline] |
Definition at line 51 of file choosetech.cpp.
Referenced by TechnologySelectionItemFactory::itemSelected().
| void TechWidget::display | ( | SDL_Surface * | surface, | |
| const PG_Rect & | src, | |||
| const PG_Rect & | dst | |||
| ) | [protected, virtual] |
Implements SelectionWidget.
Definition at line 94 of file choosetech.cpp.
References Surface::createSurface(), fieldsizex, fieldsizey, VehicleType::paint(), Technology::relatedUnitID, and vehicleTypeRepository.
1.5.1