VehicleTypeSelectionItemFactory Class Reference

#include <vehicletypeselector.h>

Inheritance diagram for VehicleTypeSelectionItemFactory:

Inheritance graph
[legend]
List of all members.

Public Types

typedef vector< const VehicleType * > Container

Public Member Functions

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

Public Attributes

SigC::Signal0< void > reloadAllItems

Static Public Attributes

static SigC::Signal1< void,
const VehicleType * > 
showVehicleInfo

Protected Member Functions

virtual void vehicleTypeSelected (const VehicleType *type, bool mouse)

Protected Attributes

Container::iterator it
Container items

Detailed Description

Definition at line 82 of file vehicletypeselector.h.


Member Typedef Documentation

typedef vector<const VehicleType*> VehicleTypeSelectionItemFactory::Container

Definition at line 87 of file vehicletypeselector.h.


Constructor & Destructor Documentation

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

Definition at line 195 of file vehicletypeselector.cpp.

References restart(), and setAvailableResource().

VehicleTypeSelectionItemFactory::VehicleTypeSelectionItemFactory ( const Container types,
const Player player 
)

Definition at line 202 of file vehicletypeselector.cpp.

References restart().


Member Function Documentation

virtual void VehicleTypeSelectionItemFactory::vehicleTypeSelected ( const VehicleType type,
bool  mouse 
) [inline, protected, virtual]

Reimplemented in VehicleProduction_SelectionItemFactory, and AddProductionLine_SelectionItemFactory.

Definition at line 95 of file vehicletypeselector.h.

Referenced by itemSelected().

void VehicleTypeSelectionItemFactory::restart (  )  [virtual]

Implements SelectionItemFactory.

Definition at line 210 of file vehicletypeselector.cpp.

References it, items, and vehicleComp().

Referenced by VehicleTypeSelectionItemFactory().

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

Definition at line 108 of file vehicletypeselector.h.

Referenced by VehicleProduction_SelectionWindow::reLoadAndUpdate(), and VehicleTypeSelectionItemFactory().

virtual Resources VehicleTypeSelectionItemFactory::getCost ( const VehicleType type  )  [inline, virtual]

Reimplemented in VehicleProduction_SelectionItemFactory, and AddProductionLine_SelectionItemFactory.

Definition at line 110 of file vehicletypeselector.h.

Referenced by spawnNextItem().

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

Implements SelectionItemFactory.

Definition at line 218 of file vehicletypeselector.cpp.

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

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

Implements SelectionItemFactory.

Definition at line 239 of file vehicletypeselector.cpp.

References VehicleTypeBaseWidget::getVehicletype(), showVehicleInfo, and vehicleTypeSelected().


Member Data Documentation

SigC::Signal1< void, const VehicleType * > VehicleTypeSelectionItemFactory::showVehicleInfo [static]

Definition at line 89 of file vehicletypeselector.h.

Referenced by itemSelected(), and UnitInfoPanel::UnitInfoPanel().

Container::iterator VehicleTypeSelectionItemFactory::it [protected]

Definition at line 92 of file vehicletypeselector.h.

Referenced by restart(), and spawnNextItem().

Container VehicleTypeSelectionItemFactory::items [protected]

Definition at line 93 of file vehicletypeselector.h.

Referenced by restart(), and spawnNextItem().

SigC::Signal0<void> VehicleTypeSelectionItemFactory::reloadAllItems

Definition at line 104 of file vehicletypeselector.h.

Referenced by VehicleProduction_SelectionItemFactory::setAmmoFilling(), VehicleProduction_SelectionItemFactory::setResourceFilling(), and VehicleProduction_SelectionWindow::VehicleProduction_SelectionWindow().


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