#include <vehicletypeselector.h>
Inheritance diagram for VehicleTypeSelectionItemFactory:

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) |
| SelectionWidget * | spawnNextItem (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 |
Definition at line 82 of file vehicletypeselector.h.
| typedef vector<const VehicleType*> VehicleTypeSelectionItemFactory::Container |
Definition at line 87 of file vehicletypeselector.h.
| VehicleTypeSelectionItemFactory::VehicleTypeSelectionItemFactory | ( | Resources | plantResources, | |
| const Container & | types, | |||
| const Player & | player | |||
| ) |
Definition at line 195 of file vehicletypeselector.cpp.
References restart(), and setAvailableResource().
| 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().
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] |
Container VehicleTypeSelectionItemFactory::items [protected] |
| 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().
1.5.1