VehicleBaseWidget Class Reference

#include <vehicletypeselector.h>

Inheritance diagram for VehicleBaseWidget:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 VehicleBaseWidget (PG_Widget *parent, const PG_Point &pos, int width, const Vehicle *vehicle, const Player &player)
ASCString getName () 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 46 of file vehicletypeselector.h.


Constructor & Destructor Documentation

VehicleBaseWidget::VehicleBaseWidget ( PG_Widget *  parent,
const PG_Point &  pos,
int  width,
const Vehicle vehicle,
const Player player 
)

Definition at line 81 of file vehicletypeselector.cpp.

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


Member Function Documentation

ASCString VehicleBaseWidget::getName (  )  const [virtual]

Implements SelectionWidget.

Definition at line 123 of file vehicletypeselector.cpp.

References Vehicle::getName().

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

Implements SelectionWidget.

Definition at line 128 of file vehicletypeselector.cpp.

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

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

Definition at line 107 of file vehicletypeselector.cpp.

Referenced by VehicleBaseWidget().


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