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

BuildingTypeBaseWidget Class Reference

#include <buildingtypeselector.h>

Inheritance diagram for BuildingTypeBaseWidget:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 BuildingTypeBaseWidget (PG_Widget *parent, const PG_Point &pos, int width, const BuildingType *BuildingType, const Player &player)
ASCString getName () const
const BuildingTypegetBuildingType () 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)

Constructor & Destructor Documentation

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, ContainerBaseType::name, PG_Rect::PG_Rect(), PG_Widget::SetTransparency(), and PG_Rect::Width().


Member Function Documentation

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 PG_Draw::BlitSurface(), 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.

const BuildingType* BuildingTypeBaseWidget::getBuildingType  )  const [inline]
 

Definition at line 39 of file buildingtypeselector.h.

ASCString BuildingTypeBaseWidget::getName  )  const [virtual]
 

Implements SelectionWidget.

Definition at line 57 of file buildingtypeselector.cpp.

References ContainerBaseType::getName().


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