Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

TechWidget Class Reference

Inheritance diagram for TechWidget:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 TechWidget (PG_Widget *parent, const PG_Point &pos, int width, const Technology *technology, int player=0)
ASCString getName () const
const TechnologygetTechnology () const

Protected Member Functions

void display (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)

Constructor & Destructor Documentation

TechWidget::TechWidget PG_Widget parent,
const PG_Point pos,
int  width,
const Technology technology,
int  player = 0
 

Definition at line 53 of file choosetech.cpp.

References IconRepository::getIcon(), PG_Rect::Height(), Technology::name, PG_Rect::PG_Rect(), Technology::relatedUnitID, Technology::researchpoints, PG_Button::SetIcon(), PG_Widget::SetTransparency(), PG_Button::sigClick, and ASCString::toString().


Member Function Documentation

void TechWidget::display SDL_Surface *  surface,
const PG_Rect src,
const PG_Rect dst
[protected, virtual]
 

Implements SelectionWidget.

Definition at line 91 of file choosetech.cpp.

References PG_Draw::BlitSurface(), Surface::createSurface(), fieldsizex, fieldsizey, Vehicletype::paint(), Technology::relatedUnitID, and vehicleTypeRepository.

ASCString TechWidget::getName  )  const [virtual]
 

Implements SelectionWidget.

Definition at line 86 of file choosetech.cpp.

References Technology::name.

const Technology* TechWidget::getTechnology  )  const [inline]
 

Definition at line 48 of file choosetech.cpp.


The documentation for this class was generated from the following file:
Generated on Tue Jun 24 02:21:24 2008 for Advanced Strategic Command by  doxygen 1.4.2