VehicleProduction_SelectionItemFactory Class Reference

#include <vehicleproductionselection.h>

Inheritance diagram for VehicleProduction_SelectionItemFactory:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 VehicleProduction_SelectionItemFactory (Resources plantResources, const ContainerBase *productionplant, const ConstructUnitCommand::Producables &produceableUnits)
bool getAmmoFilling ()
bool setAmmoFilling (bool value)
bool getResourceFilling ()
bool setResourceFilling (bool value)
Resources getCost (const VehicleType *type)
void updateProducables ()
 ~VehicleProduction_SelectionItemFactory ()

Public Attributes

SigC::Signal2< void, const
VehicleType *, bool > 
sigVehicleTypeSelected
SigC::Signal1< void, const
VehicleType * > 
sigVehicleTypeMarked

Protected Member Functions

void vehicleTypeSelected (const VehicleType *type, bool mouse)
void itemMarked (const SelectionWidget *widget, bool mouse)

Detailed Description

Definition at line 18 of file vehicleproductionselection.h.


Constructor & Destructor Documentation

VehicleProduction_SelectionItemFactory::VehicleProduction_SelectionItemFactory ( Resources  plantResources,
const ContainerBase productionplant,
const ConstructUnitCommand::Producables produceableUnits 
)

Definition at line 24 of file vehicleproductionselection.cpp.

VehicleProduction_SelectionItemFactory::~VehicleProduction_SelectionItemFactory (  )  [inline]

Definition at line 54 of file vehicleproductionselection.h.


Member Function Documentation

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

Reimplemented from VehicleTypeSelectionItemFactory.

Definition at line 50 of file vehicleproductionselection.cpp.

References sigVehicleTypeSelected.

void VehicleProduction_SelectionItemFactory::itemMarked ( const SelectionWidget widget,
bool  mouse 
) [protected]

Definition at line 55 of file vehicleproductionselection.cpp.

References VehicleTypeBaseWidget::getVehicletype(), and sigVehicleTypeMarked.

bool VehicleProduction_SelectionItemFactory::getAmmoFilling (  ) 

Definition at line 66 of file vehicleproductionselection.cpp.

References ContainerBaseType::AmmoProduction, ContainerBase::baseType, and ContainerBaseType::hasFunction().

Referenced by VehicleProduction_SelectionWindow::fillWithAmmo().

bool VehicleProduction_SelectionItemFactory::setAmmoFilling ( bool  value  ) 

Definition at line 74 of file vehicleproductionselection.cpp.

References VehicleTypeSelectionItemFactory::reloadAllItems.

Referenced by VehicleProduction_SelectionWindow::VehicleProduction_SelectionWindow().

bool VehicleProduction_SelectionItemFactory::getResourceFilling (  ) 

Definition at line 81 of file vehicleproductionselection.cpp.

Referenced by VehicleProduction_SelectionWindow::fillWithResources(), and VehicleProduction_SelectionWindow::VehicleProduction_SelectionWindow().

bool VehicleProduction_SelectionItemFactory::setResourceFilling ( bool  value  ) 

Definition at line 86 of file vehicleproductionselection.cpp.

References VehicleTypeSelectionItemFactory::reloadAllItems.

Referenced by VehicleProduction_SelectionWindow::VehicleProduction_SelectionWindow().

Resources VehicleProduction_SelectionItemFactory::getCost ( const VehicleType type  )  [virtual]

Reimplemented from VehicleTypeSelectionItemFactory.

Definition at line 99 of file vehicleproductionselection.cpp.

References GameMap::_resourcemode, ammoProductionCost, SingleWeapon::count, UnitWeapon::count, ContainerBase::getMap(), SingleWeapon::getScalarWeaponType(), ContainerBaseType::getStorageCapacity(), SingleWeapon::requiresAmmo(), UnitWeapon::weapon, and VehicleType::weapons.

void VehicleProduction_SelectionItemFactory::updateProducables (  ) 

Definition at line 93 of file vehicleproductionselection.cpp.

Referenced by VehicleProduction_SelectionWindow::reLoadAndUpdate().


Member Data Documentation

SigC::Signal2<void,const VehicleType*, bool > VehicleProduction_SelectionItemFactory::sigVehicleTypeSelected

Definition at line 48 of file vehicleproductionselection.h.

Referenced by VehicleProduction_SelectionWindow::VehicleProduction_SelectionWindow(), and vehicleTypeSelected().

SigC::Signal1<void,const VehicleType* > VehicleProduction_SelectionItemFactory::sigVehicleTypeMarked

Definition at line 49 of file vehicleproductionselection.h.

Referenced by itemMarked(), and VehicleProduction_SelectionWindow::VehicleProduction_SelectionWindow().


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