Advanced Strategic Command
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
VehicleTypeSelectionItemFactory Class Reference

#include <vehicletypeselector.h>

Inheritance diagram for VehicleTypeSelectionItemFactory:
Inheritance graph
[legend]

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

Public Attributes

sigc::signal< void > reloadAllItems
 

Static Public Attributes

static sigc::signal< void,
const VehicleType * > 
showVehicleInfo
 

Protected Member Functions

virtual void vehicleTypeSelected (const VehicleType *type, bool mouse)
 

Protected Attributes

Container::iterator it
 
Container items
 

Detailed Description

Definition at line 82 of file vehicletypeselector.h.

Member Typedef Documentation

Definition at line 87 of file vehicletypeselector.h.

Constructor & Destructor Documentation

VehicleTypeSelectionItemFactory::VehicleTypeSelectionItemFactory ( Resources  plantResources,
const Container types,
const Player player 
)

Definition at line 195 of file vehicletypeselector.cpp.

References restart(), and setAvailableResource().

VehicleTypeSelectionItemFactory::VehicleTypeSelectionItemFactory ( const Container types,
const Player player 
)

Definition at line 202 of file vehicletypeselector.cpp.

References restart().

Member Function Documentation

virtual Resources VehicleTypeSelectionItemFactory::getCost ( const VehicleType type)
inlinevirtual
void VehicleTypeSelectionItemFactory::itemSelected ( const SelectionWidget widget,
bool  mouse 
)
virtual
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
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().

virtual void VehicleTypeSelectionItemFactory::vehicleTypeSelected ( const VehicleType type,
bool  mouse 
)
inlineprotectedvirtual

Member Data Documentation

Container::iterator VehicleTypeSelectionItemFactory::it
protected

Definition at line 92 of file vehicletypeselector.h.

Referenced by restart(), and spawnNextItem().

Container VehicleTypeSelectionItemFactory::items
protected

Definition at line 93 of file vehicletypeselector.h.

Referenced by restart(), and spawnNextItem().

sigc::signal<void> VehicleTypeSelectionItemFactory::reloadAllItems
sigc::signal< void, const VehicleType * > VehicleTypeSelectionItemFactory::showVehicleInfo
static

Definition at line 89 of file vehicletypeselector.h.

Referenced by itemSelected(), and UnitInfoPanel::UnitInfoPanel().


The documentation for this class was generated from the following files: