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

#include <fieldmarker.h>

Inheritance diagram for SelectBuildingFromMap:
Inheritance graph

Public Member Functions

 SelectBuildingFromMap (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
- Protected Attributes inherited from ASC_PG_Dialog
PG_MessageObject * caller

Detailed Description

Definition at line 68 of file fieldmarker.h.

Constructor & Destructor Documentation

SelectBuildingFromMap::SelectBuildingFromMap ( CoordinateList list,
GameMap map 

Definition at line 73 of file fieldmarker.h.

Member Function Documentation

bool SelectBuildingFromMap::accept ( const MapCoordinate pos)

Reimplemented from SelectFromMap.

Definition at line 199 of file fieldmarker.cpp.

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

virtual bool SelectBuildingFromMap::isOk ( )

Reimplemented from SelectFromMap.

Definition at line 71 of file fieldmarker.h.

References SelectFromMap::coordinateList.

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