ActionWidget Class Reference

#include <actionwidget.h>

Inheritance diagram for ActionWidget:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ActionWidget (PG_Widget *parent, const PG_Point &pos, int width, const Command &action, GameMap *map)
ASCString getName () const
vector< MapCoordinategetCoordinates () const

Protected Member Functions

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

Protected Attributes

const Commandact

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 
)

Definition at line 29 of file actionwidget.cpp.

References GameMap::getCurrentPlayer(), GameAction::getDescription(), UnitCommand::getUnitTypeID(), and vehicleTypeRepository.


Member Function Documentation

ASCString ActionWidget::getName (  )  const [virtual]

Implements SelectionWidget.

Definition at line 49 of file actionwidget.cpp.

References act, and GameAction::getDescription().

vector< MapCoordinate > ActionWidget::getCoordinates (  )  const

Definition at line 54 of file actionwidget.cpp.

References act, and Command::getCoordinates().

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

void ActionWidget::display ( SDL_Surface *  surface,
const PG_Rect &  src,
const PG_Rect &  dst 
) [protected, virtual]

Implements SelectionWidget.

Definition at line 60 of file actionwidget.cpp.


Member Data Documentation

const Command& ActionWidget::act [protected]

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:
Generated on Mon May 21 01:46:13 2012 for Advanced Strategic Command by  doxygen 1.5.1