
Public Types | |
| typedef vector< const VehicleType * > | Container |
Public Member Functions | |
| VehicleCounterFactory (GameMap *actmap) | |
| VehicleCounterFactory (const ContainerBase *container) | |
| ASCString | toString () |
| void | restart () |
| SelectionWidget * | spawnNextItem (PG_Widget *parent, const PG_Point &pos) |
| void | itemSelected (const SelectionWidget *widget, bool mouse) |
Protected Types | |
| typedef map< const VehicleType *, int > | Counter |
Protected Member Functions | |
| void | calcCargoSummary (const ContainerBase *cb, Counter &summary) |
Protected Attributes | |
| Container::iterator | it |
| Container | items |
| Counter | counter |
| GameMap * | gamemap |
Definition at line 30 of file unitcounting.cpp.
| typedef vector<const VehicleType*> VehicleCounterFactory::Container |
Definition at line 32 of file unitcounting.cpp.
typedef map<const VehicleType*,int> VehicleCounterFactory::Counter [protected] |
Definition at line 37 of file unitcounting.cpp.
| VehicleCounterFactory::VehicleCounterFactory | ( | GameMap * | actmap | ) |
Definition at line 63 of file unitcounting.cpp.
References actmap, GameMap::actplayer, calcCargoSummary(), cbbuildingentry, counter, GameMap::getField(), getTerrainBitType(), items, restart(), vehicleComp(), GameMap::xsize, and GameMap::ysize.
| VehicleCounterFactory::VehicleCounterFactory | ( | const ContainerBase * | container | ) |
Definition at line 87 of file unitcounting.cpp.
References calcCargoSummary(), counter, items, restart(), and vehicleComp().
| void VehicleCounterFactory::calcCargoSummary | ( | const ContainerBase * | cb, | |
| Counter & | summary | |||
| ) | [inline, protected] |
Definition at line 41 of file unitcounting.cpp.
References GameMap::actplayer, ContainerBase::getCargo(), and ContainerBase::getMap().
Referenced by VehicleCounterFactory().
| ASCString VehicleCounterFactory::toString | ( | ) |
| void VehicleCounterFactory::restart | ( | ) | [virtual] |
Implements SelectionItemFactory.
Definition at line 99 of file unitcounting.cpp.
Referenced by VehicleCounterFactory().
| SelectionWidget * VehicleCounterFactory::spawnNextItem | ( | PG_Widget * | parent, | |
| const PG_Point & | pos | |||
| ) | [virtual] |
Implements SelectionItemFactory.
Definition at line 105 of file unitcounting.cpp.
References counter, gamemap, GameMap::getCurrentPlayer(), it, and items.
| void VehicleCounterFactory::itemSelected | ( | const SelectionWidget * | widget, | |
| bool | mouse | |||
| ) | [inline, virtual] |
Container::iterator VehicleCounterFactory::it [protected] |
Container VehicleCounterFactory::items [protected] |
Definition at line 35 of file unitcounting.cpp.
Referenced by restart(), spawnNextItem(), and VehicleCounterFactory().
Counter VehicleCounterFactory::counter [protected] |
Definition at line 38 of file unitcounting.cpp.
Referenced by spawnNextItem(), toString(), and VehicleCounterFactory().
GameMap* VehicleCounterFactory::gamemap [protected] |
1.5.1