Advanced Strategic Command
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
VehicleCounterFactory Class Reference
Inheritance diagram for VehicleCounterFactory:
Inheritance graph
[legend]

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)
 
- Public Member Functions inherited from SelectionItemFactory
virtual void itemMarked (const SelectionWidget *widget)
 
virtual SelectionWidgetgetDefaultItem ()
 
virtual ~SelectionItemFactory ()
 

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

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)
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 
)
inlineprotected
void VehicleCounterFactory::itemSelected ( const SelectionWidget widget,
bool  mouse 
)
inlinevirtual

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, and items.

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: