#include <actionwidget.h>
Inheritance diagram for ActionWidget:

Public Member Functions | |
| ActionWidget (PG_Widget *parent, const PG_Point &pos, int width, const Command &action, GameMap *map) | |
| ASCString | getName () const |
| vector< MapCoordinate > | getCoordinates () const |
Protected Member Functions | |
| void | display (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst) |
Protected Attributes | |
| const Command & | act |
Definition at line 29 of file actionwidget.h.
| 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.
| 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] |
const Command& ActionWidget::act [protected] |
Definition at line 39 of file actionwidget.h.
Referenced by ActionSelectionWidget::click(), getCoordinates(), and getName().
1.5.1