Advanced Strategic Command
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
BuildingTypeBaseWidget Class Reference

#include <buildingtypeselector.h>

Inheritance diagram for BuildingTypeBaseWidget:
Inheritance graph
[legend]

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
 
- Public Member Functions inherited from SelectionWidget
void setSelectionCallback (SelectionCallBack *callBack)
 
virtual ~SelectionWidget ()
 
virtual int gap ()
 

Protected Member Functions

void display (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)
 
- Protected Member Functions inherited from SelectionWidget
 SelectionWidget (PG_Widget *parent, const PG_Rect &rect)
 
bool eventMouseButtonUp (const SDL_MouseButtonEvent *button)
 
bool eventMouseButtonDown (const SDL_MouseButtonEvent *button)
 
void eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)
 

Static Protected Member Functions

static int getBuildingHeight (const BuildingType *type)
 

Additional Inherited Members

- Public Types inherited from SelectionWidget
typedef Loki::Functor< bool,
LOKI_TYPELIST_1(const
SelectionWidget *) > 
SelectionCallBack
 
- Public Attributes inherited from SelectionWidget
sigc::signal< void, const
SelectionWidget * > 
itemSelected
 
sigc::signal< void, const
SelectionWidget * > 
itemMarked
 

Detailed Description

Definition at line 31 of file buildingtypeselector.h.

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, and ContainerBaseType::name.

Member Function Documentation

void BuildingTypeBaseWidget::display ( SDL_Surface *  surface,
const PG_Rect &  src,
const PG_Rect &  dst 
)
protectedvirtual
int BuildingTypeBaseWidget::getBuildingHeight ( const BuildingType type)
staticprotected
const BuildingType* BuildingTypeBaseWidget::getBuildingType ( ) const
inline
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: