Advanced Strategic Command
|
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>
Public Member Functions | |
MapItemTypeWidgetFactory_IDSelection (const ItemRepository< ItemType > &itemRepository, int &id) | |
SelectionWidget * | getDefaultItem () |
void | itemSelected (const SelectionWidget *widget, bool mouse) |
![]() | |
BaseMapItemTypeWidgetFactory (const ItemRepository< ItemType > &itemRepository) | |
void | restart () |
SelectionWidget * | spawnNextItem (PG_Widget *parent, const PG_Point &pos) |
![]() | |
virtual void | itemMarked (const SelectionWidget *widget) |
virtual | ~SelectionItemFactory () |
Protected Member Functions | |
virtual void | registerItem (MapItemWidget *itemWidget) |
![]() | |
virtual bool | isFiltered (const ItemType &item) |
Additional Inherited Members | |
![]() | |
typedef MapItemWidget::ItemType | ItemType |
typedef vector< ItemType * > | Items |
![]() | |
Items::iterator | it |
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.
|
inline |
Definition at line 179 of file edselfnt.h.
|
inlinevirtual |
Reimplemented from SelectionItemFactory.
Definition at line 183 of file edselfnt.h.
|
inlinevirtual |
Implements SelectionItemFactory.
Definition at line 192 of file edselfnt.h.
|
inlineprotectedvirtual |
Reimplemented from BaseMapItemTypeWidgetFactory< MapItemWidget >.
Definition at line 172 of file edselfnt.h.