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

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)
virtual const ContainergetOriginalItems ()

Protected Attributes

Container::iterator it
Container items

Member Typedef Documentation

typedef vector<const Vehicletype*> VehicleTypeSelectionItemFactory::Container
 

Definition at line 72 of file vehicletypeselector.h.


Constructor & Destructor Documentation

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

Definition at line 136 of file vehicletypeselector.cpp.

References restart(), and setAvailableResource().

VehicleTypeSelectionItemFactory::VehicleTypeSelectionItemFactory const Container types,
const Player player
 

Definition at line 142 of file vehicletypeselector.cpp.

References restart().


Member Function Documentation

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

Reimplemented in VehicleProduction_SelectionItemFactory, and AddProductionLine_SelectionItemFactory.

Definition at line 97 of file vehicletypeselector.h.

Referenced by spawnNextItem().

virtual const Container& VehicleTypeSelectionItemFactory::getOriginalItems  )  [inline, protected, virtual]
 

Reimplemented in VehicleProduction_SelectionItemFactory.

Definition at line 82 of file vehicletypeselector.h.

Referenced by restart().

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

Implements SelectionItemFactory.

Definition at line 178 of file vehicletypeselector.cpp.

References assert, showVehicleInfo, and vehicleTypeSelected().

void VehicleTypeSelectionItemFactory::restart  )  [virtual]
 

Implements SelectionItemFactory.

Definition at line 149 of file vehicletypeselector.cpp.

References getOriginalItems(), it, items, and vehicleComp().

Referenced by VehicleTypeSelectionItemFactory().

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

Definition at line 95 of file vehicletypeselector.h.

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

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

Implements SelectionItemFactory.

Definition at line 157 of file vehicletypeselector.cpp.

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

virtual void VehicleTypeSelectionItemFactory::vehicleTypeSelected const Vehicletype type,
bool  mouse
[inline, protected, virtual]
 

Reimplemented in VehicleProduction_SelectionItemFactory, and AddProductionLine_SelectionItemFactory.

Definition at line 80 of file vehicletypeselector.h.

Referenced by itemSelected().


Member Data Documentation

Container::iterator VehicleTypeSelectionItemFactory::it [protected]
 

Definition at line 77 of file vehicletypeselector.h.

Referenced by restart(), and spawnNextItem().

Container VehicleTypeSelectionItemFactory::items [protected]
 

Definition at line 78 of file vehicletypeselector.h.

Referenced by restart(), and spawnNextItem().

SigC::Signal0<void> VehicleTypeSelectionItemFactory::reloadAllItems
 

Definition at line 91 of file vehicletypeselector.h.

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

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

Definition at line 173 of file vehicletypeselector.cpp.

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


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