VehicleCounterFactory Class Reference

Inheritance diagram for VehicleCounterFactory:

Inheritance graph
[legend]
List of all members.

Public Types

typedef vector< const VehicleType * > Container

Public Member Functions

 VehicleCounterFactory (GameMap *actmap)
 VehicleCounterFactory (const ContainerBase *container)
ASCString toString ()
void restart ()
SelectionWidgetspawnNextItem (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
GameMapgamemap

Detailed Description

Definition at line 30 of file unitcounting.cpp.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

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().


Member Function Documentation

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 (  ) 

Definition at line 114 of file unitcounting.cpp.

References counter, and ASCString::toString().

void VehicleCounterFactory::restart (  )  [virtual]

Implements SelectionItemFactory.

Definition at line 99 of file unitcounting.cpp.

References it, and items.

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]

Implements SelectionItemFactory.

Definition at line 60 of file unitcounting.cpp.


Member Data Documentation

Container::iterator VehicleCounterFactory::it [protected]

Definition at line 34 of file unitcounting.cpp.

Referenced by restart(), and spawnNextItem().

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]

Definition at line 39 of file unitcounting.cpp.

Referenced by spawnNextItem().


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