MapDisplayPG::Cursor Struct Reference

#include <mapdisplay.h>

List of all members.

Public Member Functions

 Cursor (MapDisplayPG *md)
MapCoordinatepos ()
void goTo (const MapCoordinate &position)
void goTo (const MapCoordinate &cursorPosition, const MapCoordinate &upperLeftScreenCorner)
void intoView ()

Public Attributes

int invisible
MapDisplayPGmapDisplay

Friends

class MapDisplayPG
class PG_MapDisplay


Detailed Description

Definition at line 322 of file mapdisplay.h.


Constructor & Destructor Documentation

MapDisplayPG::Cursor::Cursor ( MapDisplayPG md  )  [inline]

Definition at line 325 of file mapdisplay.h.


Member Function Documentation

MapCoordinate & MapDisplayPG::Cursor::pos (  ) 

Definition at line 1493 of file mapdisplay.cpp.

References actmap, and GameMap::getCursor().

Referenced by MapDisplayPG::eventMouseButtonDown(), MapDisplayPG::eventMouseMotion(), execaction(), and goTo().

void MapDisplayPG::Cursor::goTo ( const MapCoordinate position  ) 

Definition at line 1789 of file mapdisplay.cpp.

References MapDisplayPG::centerOnField(), MapDisplayPG::dirty, MapDisplayPG::fieldInView(), invisible, mapDisplay, and pos().

Referenced by Maped_MainScreenWidget::clickOnMap(), PG_MapDisplay::cursor_goto(), TargetCoordinateLocator::eventMouseButtonDown(), execaction(), TaskFactory::itemSelected(), ActionFactory::itemSelected(), SelectFromMap::listItemClicked(), SelectFromMap::SelectFromMap(), and MapSwitcher::toggle().

void MapDisplayPG::Cursor::goTo ( const MapCoordinate cursorPosition,
const MapCoordinate upperLeftScreenCorner 
)

Definition at line 1765 of file mapdisplay.cpp.

References MapDisplayPG::centerOnField(), MapDisplayPG::dirty, MapDisplayPG::fieldInView(), invisible, mapDisplay, MapDisplayPG::offset, pos(), and MapCoordinate::valid().

void MapDisplayPG::Cursor::intoView (  ) 


Friends And Related Function Documentation

friend class MapDisplayPG [friend]

Definition at line 325 of file mapdisplay.h.

friend class PG_MapDisplay [friend]

Definition at line 327 of file mapdisplay.h.


Member Data Documentation

int MapDisplayPG::Cursor::invisible

Definition at line 323 of file mapdisplay.h.

Referenced by MapDisplayPG::eventBlit(), MapDisplayPG::eventMouseButtonDown(), MapDisplayPG::eventMouseMotion(), goTo(), and PG_MapDisplay::removeActionCursor().

MapDisplayPG* MapDisplayPG::Cursor::mapDisplay

Definition at line 324 of file mapdisplay.h.

Referenced by goTo().


The documentation for this struct was generated from the following files:
Generated on Mon May 21 01:46:59 2012 for Advanced Strategic Command by  doxygen 1.5.1