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

Public Member Functions

 ActionSelectionWidget (PG_Widget *parent, const PG_Point &pos, int width, const Command &action, ActionContainer &actionContainer, GameMap *map)
 
- Public Member Functions inherited from ActionWidget
 ActionWidget (PG_Widget *parent, const PG_Point &pos, int width, const Command &action, GameMap *map)
 
ASCString getName () const
 
vector< MapCoordinategetCoordinates () const
 
- Public Member Functions inherited from SelectionWidget
void setSelectionCallback (SelectionCallBack *callBack)
 
virtual ~SelectionWidget ()
 
virtual int gap ()
 

Protected Member Functions

bool click (bool b)
 
- Protected Member Functions inherited from ActionWidget
void display (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)
 
- Protected Member Functions inherited from SelectionWidget
 SelectionWidget (PG_Widget *parent, const PG_Rect &rect)
 
bool eventMouseButtonUp (const SDL_MouseButtonEvent *button)
 
bool eventMouseButtonDown (const SDL_MouseButtonEvent *button)
 
void eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)
 

Additional Inherited Members

- Public Types inherited from SelectionWidget
typedef Loki::Functor< bool,
LOKI_TYPELIST_1(const
SelectionWidget *) > 
SelectionCallBack
 
- Public Attributes inherited from SelectionWidget
sigc::signal< void, const
SelectionWidget * > 
itemSelected
 
sigc::signal< void, const
SelectionWidget * > 
itemMarked
 
- Protected Attributes inherited from ActionWidget
const Commandact
 

Detailed Description

Definition at line 41 of file actionmanager.cpp.

Constructor & Destructor Documentation

ActionSelectionWidget::ActionSelectionWidget ( PG_Widget *  parent,
const PG_Point &  pos,
int  width,
const Command action,
ActionContainer actionContainer,
GameMap map 
)
inline

Definition at line 48 of file actionmanager.cpp.

References click(), and ActionContainer::isActive_req().

Member Function Documentation

bool ActionSelectionWidget::click ( bool  b)
inlineprotected

Definition at line 58 of file actionmanager.cpp.

References ActionWidget::act, and ActionContainer::setActive().

Referenced by ActionSelectionWidget().


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