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

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

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 GameMap::actplayer, calcCargoSummary(), cbbuildingentry, counter, GameMap::getField(), getTerrainBitType(), items, restart(), and vehicleComp().

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 ContainerBase::getCargo(), and ContainerBase::getMap().

Referenced by VehicleCounterFactory().

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

Implements SelectionItemFactory.

Definition at line 60 of file unitcounting.cpp.

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, items, and PG_Rect::Width().

ASCString VehicleCounterFactory::toString  ) 
 

Definition at line 114 of file unitcounting.cpp.

References counter, Vehicletype::getName(), and ASCString::toString().


Member Data Documentation

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

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


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