#include <mapdisplay.h>
Public Member Functions | |
| Cursor (MapDisplayPG *md) | |
| MapCoordinate & | pos () |
| void | goTo (const MapCoordinate &position) |
| void | goTo (const MapCoordinate &cursorPosition, const MapCoordinate &upperLeftScreenCorner) |
| void | intoView () |
Public Attributes | |
| int | invisible |
| MapDisplayPG * | mapDisplay |
Friends | |
| class | MapDisplayPG |
| class | PG_MapDisplay |
Definition at line 322 of file mapdisplay.h.
| MapDisplayPG::Cursor::Cursor | ( | MapDisplayPG * | md | ) | [inline] |
Definition at line 325 of file mapdisplay.h.
| 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 | ( | ) |
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.
Definition at line 323 of file mapdisplay.h.
Referenced by MapDisplayPG::eventBlit(), MapDisplayPG::eventMouseButtonDown(), MapDisplayPG::eventMouseMotion(), goTo(), and PG_MapDisplay::removeActionCursor().
1.5.1