Advanced Strategic Command
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ActionWidget Class Reference

#include <actionwidget.h>

Inheritance diagram for ActionWidget:
Inheritance graph

Public Member Functions

 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

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)

Protected Attributes

const Commandact

Additional Inherited Members

- Public Types inherited from SelectionWidget
typedef Loki::Functor< bool,
SelectionWidget *) > 
- Public Attributes inherited from SelectionWidget
sigc::signal< void, const
SelectionWidget * > 
sigc::signal< void, const
SelectionWidget * > 

Detailed Description

Definition at line 29 of file actionwidget.h.

Constructor & Destructor Documentation

ActionWidget::ActionWidget ( PG_Widget *  parent,
const PG_Point &  pos,
int  width,
const Command action,
GameMap map 

Member Function Documentation

void ActionWidget::display ( SDL_Surface *  surface,
const PG_Rect &  src,
const PG_Rect &  dst 

Implements SelectionWidget.

Definition at line 60 of file actionwidget.cpp.

vector< MapCoordinate > ActionWidget::getCoordinates ( ) const

Definition at line 54 of file actionwidget.cpp.

References act, and Command::getCoordinates().

Referenced by ActionFactory::itemSelected(), and TaskFactory::itemSelected().

ASCString ActionWidget::getName ( ) const

Implements SelectionWidget.

Definition at line 49 of file actionwidget.cpp.

References act, and GameAction::getDescription().

Member Data Documentation

const Command& ActionWidget::act

Definition at line 39 of file actionwidget.h.

Referenced by ActionSelectionWidget::click(), getCoordinates(), and getName().

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