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

Public Types

typedef vector< const
VehicleType * > 

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 * > 

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)
void VehicleTypeSelectionItemFactory::itemSelected ( const SelectionWidget widget,
bool  mouse 
void VehicleTypeSelectionItemFactory::restart ( )

Implements SelectionItemFactory.

Definition at line 210 of file vehicletypeselector.cpp.

References it, items, and vehicleComp().

Referenced by VehicleTypeSelectionItemFactory().

void VehicleTypeSelectionItemFactory::setAvailableResource ( const Resources plantResources)
SelectionWidget * VehicleTypeSelectionItemFactory::spawnNextItem ( PG_Widget *  parent,
const PG_Point &  pos 

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 

Member Data Documentation

Container::iterator VehicleTypeSelectionItemFactory::it

Definition at line 92 of file vehicletypeselector.h.

Referenced by restart(), and spawnNextItem().

Container VehicleTypeSelectionItemFactory::items

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

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: