BuildingTypeSelectionItemFactory Class Reference

#include <buildingtypeselector.h>

Inheritance diagram for BuildingTypeSelectionItemFactory:

Inheritance graph
[legend]
List of all members.

Public Types

typedef vector< const BuildingType * > Container

Public Member Functions

 BuildingTypeSelectionItemFactory (Resources plantResources, const Container &types, const Player &player)
void restart ()
void setAvailableResource (const Resources &plantResources)
SelectionWidgetspawnNextItem (PG_Widget *parent, const PG_Point &pos)
void itemSelected (const SelectionWidget *widget, bool mouse)

Public Attributes

SigC::Signal0< void > reloadAllItems

Protected Member Functions

virtual void BuildingTypeSelected (const BuildingType *type)=0
virtual Resources getCost (const BuildingType *type)

Protected Attributes

Container::iterator it
Container items

Detailed Description

Definition at line 57 of file buildingtypeselector.h.


Member Typedef Documentation

typedef vector<const BuildingType*> BuildingTypeSelectionItemFactory::Container

Definition at line 61 of file buildingtypeselector.h.


Constructor & Destructor Documentation

BuildingTypeSelectionItemFactory::BuildingTypeSelectionItemFactory ( Resources  plantResources,
const Container types,
const Player player 
)

Definition at line 130 of file buildingtypeselector.cpp.

References restart(), and setAvailableResource().


Member Function Documentation

virtual void BuildingTypeSelectionItemFactory::BuildingTypeSelected ( const BuildingType type  )  [protected, pure virtual]

Implemented in GuiFunctions::BuildingConstructionSelection.

Referenced by itemSelected().

Resources BuildingTypeSelectionItemFactory::getCost ( const BuildingType type  )  [protected, virtual]

Definition at line 169 of file buildingtypeselector.cpp.

References ContainerBaseType::productionCost.

Referenced by spawnNextItem().

void BuildingTypeSelectionItemFactory::restart (  )  [virtual]

Implements SelectionItemFactory.

Definition at line 146 of file buildingtypeselector.cpp.

References BuildingComp(), it, and items.

Referenced by BuildingTypeSelectionItemFactory().

void BuildingTypeSelectionItemFactory::setAvailableResource ( const Resources plantResources  )  [inline]

Definition at line 81 of file buildingtypeselector.h.

Referenced by BuildingTypeSelectionItemFactory().

SelectionWidget * BuildingTypeSelectionItemFactory::spawnNextItem ( PG_Widget *  parent,
const PG_Point &  pos 
) [virtual]

Implements SelectionItemFactory.

Definition at line 154 of file buildingtypeselector.cpp.

References getCost(), it, items, and Resources::resource().

void BuildingTypeSelectionItemFactory::itemSelected ( const SelectionWidget widget,
bool  mouse 
) [virtual]

Implements SelectionItemFactory.

Definition at line 176 of file buildingtypeselector.cpp.

References BuildingTypeSelected(), and BuildingTypeBaseWidget::getBuildingType().


Member Data Documentation

Container::iterator BuildingTypeSelectionItemFactory::it [protected]

Definition at line 64 of file buildingtypeselector.h.

Referenced by restart(), and spawnNextItem().

Container BuildingTypeSelectionItemFactory::items [protected]

Definition at line 65 of file buildingtypeselector.h.

Referenced by restart(), and spawnNextItem().

SigC::Signal0<void> BuildingTypeSelectionItemFactory::reloadAllItems

Definition at line 77 of file buildingtypeselector.h.


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