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)

Detailed Description

Definition at line 41 of file choosetech.cpp.


Constructor & Destructor Documentation

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().


Member Function Documentation

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.


The documentation for this class was generated from the following file:
Generated on Mon May 21 01:47:46 2012 for Advanced Strategic Command by  doxygen 1.5.1