Advanced Strategic Command
Public Member Functions | Protected Member Functions | List of all members
MapItemTypeWidgetFactory_IDSelection< MapItemWidget > Class Template Reference

Adds selection logic to a BaseMapItemTypeWidgetFactory. The ID is of the selected item is obtained and written to the variable which was passed on construction. More...

#include <edselfnt.h>

Inheritance diagram for MapItemTypeWidgetFactory_IDSelection< MapItemWidget >:
Inheritance graph
[legend]

Public Member Functions

 MapItemTypeWidgetFactory_IDSelection (const ItemRepository< ItemType > &itemRepository, int &id)
 
SelectionWidgetgetDefaultItem ()
 
void itemSelected (const SelectionWidget *widget, bool mouse)
 
- Public Member Functions inherited from BaseMapItemTypeWidgetFactory< MapItemWidget >
 BaseMapItemTypeWidgetFactory (const ItemRepository< ItemType > &itemRepository)
 
void restart ()
 
SelectionWidgetspawnNextItem (PG_Widget *parent, const PG_Point &pos)
 
- Public Member Functions inherited from SelectionItemFactory
virtual void itemMarked (const SelectionWidget *widget)
 
virtual ~SelectionItemFactory ()
 

Protected Member Functions

virtual void registerItem (MapItemWidget *itemWidget)
 
- Protected Member Functions inherited from BaseMapItemTypeWidgetFactory< MapItemWidget >
virtual bool isFiltered (const ItemType &item)
 

Additional Inherited Members

- Protected Types inherited from BaseMapItemTypeWidgetFactory< MapItemWidget >
typedef MapItemWidget::ItemType ItemType
 
typedef vector< ItemType * > Items
 
- Protected Attributes inherited from BaseMapItemTypeWidgetFactory< MapItemWidget >
Items::iterator it
 

Detailed Description

template<class MapItemWidget>
class MapItemTypeWidgetFactory_IDSelection< MapItemWidget >

Adds selection logic to a BaseMapItemTypeWidgetFactory. The ID is of the selected item is obtained and written to the variable which was passed on construction.

Definition at line 166 of file edselfnt.h.

Constructor & Destructor Documentation

template<class MapItemWidget >
MapItemTypeWidgetFactory_IDSelection< MapItemWidget >::MapItemTypeWidgetFactory_IDSelection ( const ItemRepository< ItemType > &  itemRepository,
int &  id 
)
inline

Definition at line 179 of file edselfnt.h.

Member Function Documentation

template<class MapItemWidget >
SelectionWidget* MapItemTypeWidgetFactory_IDSelection< MapItemWidget >::getDefaultItem ( )
inlinevirtual

Reimplemented from SelectionItemFactory.

Definition at line 183 of file edselfnt.h.

template<class MapItemWidget >
void MapItemTypeWidgetFactory_IDSelection< MapItemWidget >::itemSelected ( const SelectionWidget widget,
bool  mouse 
)
inlinevirtual

Implements SelectionItemFactory.

Definition at line 192 of file edselfnt.h.

template<class MapItemWidget >
virtual void MapItemTypeWidgetFactory_IDSelection< MapItemWidget >::registerItem ( MapItemWidget *  itemWidget)
inlineprotectedvirtual

Reimplemented from BaseMapItemTypeWidgetFactory< MapItemWidget >.

Definition at line 172 of file edselfnt.h.


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