VehicleTypeBaseWidget Class Reference

#include <vehicletypeselector.h>

Inheritance diagram for VehicleTypeBaseWidget:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 VehicleTypeBaseWidget (PG_Widget *parent, const PG_Point &pos, int width, const VehicleType *vehicletype, const Player &player)
ASCString getName () const
const VehicleTypegetVehicletype () const

Protected Member Functions

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

Static Protected Member Functions

static int buttonXPos (int width, int num)

Detailed Description

Definition at line 31 of file vehicletypeselector.h.


Constructor & Destructor Documentation

VehicleTypeBaseWidget::VehicleTypeBaseWidget ( PG_Widget *  parent,
const PG_Point &  pos,
int  width,
const VehicleType vehicletype,
const Player player 
)

Definition at line 27 of file vehicletypeselector.cpp.

References buttonXPos(), ContainerBaseType::description, IconRepository::getIcon(), and ContainerBaseType::name.


Member Function Documentation

ASCString VehicleTypeBaseWidget::getName (  )  const [virtual]

Implements SelectionWidget.

Definition at line 63 of file vehicletypeselector.cpp.

References VehicleType::getName().

const VehicleType* VehicleTypeBaseWidget::getVehicletype (  )  const [inline]

Definition at line 40 of file vehicletypeselector.h.

Referenced by VehicleProduction_SelectionItemFactory::itemMarked(), AvailableProductionItemFactory::itemMarked(), and VehicleTypeSelectionItemFactory::itemSelected().

void VehicleTypeBaseWidget::display ( SDL_Surface *  surface,
const PG_Rect &  src,
const PG_Rect &  dst 
) [protected, virtual]

Implements SelectionWidget.

Definition at line 68 of file vehicletypeselector.cpp.

References Surface::createSurface(), fieldsizex, fieldsizey, Player::getPlayerColor(), and VehicleType::paint().

int VehicleTypeBaseWidget::buttonXPos ( int  width,
int  num 
) [static, protected]

Definition at line 47 of file vehicletypeselector.cpp.

Referenced by VehicleTypeBaseWidget(), and VehicleTypeCountLocateWidget::VehicleTypeCountLocateWidget().


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