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

#include <fieldmarker.h>

Inheritance diagram for SelectUnitFromMap:
Inheritance graph
[legend]

Public Member Functions

 SelectUnitFromMap (CoordinateList &list, GameMap *map)
 
- Public Member Functions inherited from SelectFromMap
 SelectFromMap (CoordinateList &list, GameMap *map, bool justOne=false, bool readOnly=false)
 
void Show (bool fade=false)
 
 ~SelectFromMap ()
 
- Public Member Functions inherited from ASC_PG_Dialog
 ASC_PG_Dialog (PG_Widget *parent, const PG_Rect &r, const ASCString &windowtext, WindowFlags flags=DEFAULT, const ASCString &style="Window", int heightTitlebar=25)
 
PG_Button * AddStandardButton (const ASCString &name)
 
void StandardButtonDirection (StandardButtonDirectonType dir)
 
int RunModal ()
 

Protected Member Functions

virtual bool accept (const MapCoordinate &pos)
 
virtual bool isOk ()
 
- Protected Member Functions inherited from SelectFromMap
bool ProcessEvent (const SDL_Event *event, bool bModal=false)
 
virtual void showFieldMarking (const CoordinateList &coordinateList)
 
virtual bool mark ()
 
virtual bool markField (const MapCoordinate &pos)
 
bool eventKeyDown (const SDL_KeyboardEvent *key)
 
void updateList ()
 
bool listItemClicked (PG_ListBoxBaseItem *item)
 
bool closeDialog ()
 
- Protected Member Functions inherited from ASC_PG_Dialog
virtual bool closeWindow ()
 
bool quitModalLoopW (PG_Button *button, int value)
 
bool quitModalLoop (int value)
 

Additional Inherited Members

- Public Types inherited from SelectFromMap
typedef vector< MapCoordinateCoordinateList
 
- Public Types inherited from ASC_PG_Dialog
enum  StandardButtonDirectonType { Vertical, Horizontal }
 
- Static Public Member Functions inherited from ASC_PG_Dialog
static PG_Rect centerRectangle (const PG_Rect &rect)
 
- Protected Attributes inherited from SelectFromMap
GameMapactmap
 
CoordinateListcoordinateList
 
- Protected Attributes inherited from ASC_PG_Dialog
PG_MessageObject * caller
 

Detailed Description

Definition at line 76 of file fieldmarker.h.

Constructor & Destructor Documentation

SelectUnitFromMap::SelectUnitFromMap ( CoordinateList list,
GameMap map 
)
inline

Definition at line 81 of file fieldmarker.h.

Member Function Documentation

bool SelectUnitFromMap::accept ( const MapCoordinate pos)
protectedvirtual

Reimplemented from SelectFromMap.

Definition at line 203 of file fieldmarker.cpp.

References SelectFromMap::actmap, GameMap::getField(), and MapField::vehicle.

virtual bool SelectUnitFromMap::isOk ( )
inlineprotectedvirtual

Reimplemented from SelectFromMap.

Definition at line 79 of file fieldmarker.h.

References SelectFromMap::coordinateList.


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