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

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)

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(), Vehicletype::description, PG_Widget::GetFontSize(), IconRepository::getIcon(), PG_Rect::Height(), ContainerBaseType::name, PG_Rect::PG_Rect(), PG_Widget::SetFontSize(), PG_Button::SetIcon(), PG_Widget::SetTransparency(), and PG_Button::sigClick.


Member Function Documentation

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

Definition at line 48 of file vehicletypeselector.cpp.

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

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

Implements SelectionWidget.

Definition at line 69 of file vehicletypeselector.cpp.

References PG_Draw::BlitSurface(), Surface::createSurface(), fieldsizex, fieldsizey, Player::getPlayerColor(), and Vehicletype::paint().

ASCString VehicleTypeBaseWidget::getName  )  const [virtual]
 

Implements SelectionWidget.

Definition at line 64 of file vehicletypeselector.cpp.

References Vehicletype::getName().

const Vehicletype* VehicleTypeBaseWidget::getVehicletype  )  const [inline]
 

Definition at line 40 of file vehicletypeselector.h.


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