Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MapDisplayPG Class Reference

#include <mapdisplay.h>

Inheritance diagram for MapDisplayPG:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void changeZoom (int delta)
void setNewZoom (int zoom)
int getZoom () const
MapCoordinate screenPos2mapPos (const SPoint &pos)
MapCoordinate widgetPos2mapPos (const SPoint &pos)
SPoint mapGlobalPos2internalPos (const MapCoordinate &pos)
SPoint mapViewPos2internalPos (const MapCoordinate &pos)
SPoint internal2widget (const SPoint &pos)
SPoint widget2screen (const SPoint &pos)
MapCoordinate upperLeftCorner ()
MapCoordinate lowerRightCorner ()
bool fieldCompletelyInViewX (const MapCoordinate &pos)
bool fieldCompletelyInViewY (const MapCoordinate &pos)
bool fieldCompletelyInView (const MapCoordinate &pos)
void keyboadCursorMovement (bool enable)
void scrollMap (int dir)
 MapDisplayPG (MainScreenWidget *parent, const PG_Rect r)
void displayUnitMovement (GameMap *actmap, Vehicle *veh, const MapCoordinate3D &from, const MapCoordinate3D &to)
bool fieldInView (const MapCoordinate &mc)
bool centerOnField (const MapCoordinate &mc)
void registerAdditionalUnit (Vehicle *veh)
void updateMap (bool force=false)
 repaints to the internal surface, but does not blit this surface the screen
void updateWidget ()
 update the internal surface and blits it to the screen
void addMapLayer (MapLayer *layer, const ASCString &name)
void activateMapLayer (const ASCString &name, bool active)
void toggleMapLayer (const ASCString &name)
bool layerActive (const ASCString &name)
void getActiveLayers (vector< ASCString > &list)
int setSignalPriority (int priority)
 ~MapDisplayPG ()

Public Attributes

SigC::Signal1< void, int > newZoom
SigC::Signal2< void, bool,
const ASCString & > 
layerChanged
SigC::Signal5< bool, const
MapCoordinate &, const SPoint &,
bool, int, int > 
mouseButtonOnField
 Signal that is fired when the mouse is pressed on a valid field, after the cursor evaluation has been run.
SigC::Signal4< bool, const
MapCoordinate &, const SPoint &,
bool, int > 
mouseDraggedToField
 Signal that is fired when the mouse is dragged onto a new field with mouse buttons pressed.
MapDisplayPG::Cursor cursor

Protected Member Functions

void eventBlit (SDL_Surface *srf, const PG_Rect &src, const PG_Rect &dst)
 overridable eventhandler to blit the widget contents to the screen
bool eventMouseButtonDown (const SDL_MouseButtonEvent *button)
 Overridable Eventhandler for a SDL_MouseButtonEvent message.
bool eventMouseMotion (const SDL_MouseMotionEvent *button)
 Overridable Eventhandler for a SDL_MouseMotionEvent message.
bool eventMouseButtonUp (const SDL_MouseButtonEvent *button)
 Overridable Eventhandler for a SDL_MouseButtonEvent message.
void checkViewPosition (MapCoordinate &pos)
void fillSurface (int playerView)
void paintBackground ()
void blitInternalSurface (SDL_Surface *dest, const SPoint &pnt, const PG_Rect &dstClip)
void displayAddons (Surface &surf, int pass)
void initMovementStructure ()
Surface createMovementBufferSurface ()
void displayMovementStep (Movement &movement, int percentage)
bool eventKeyDown (const SDL_KeyboardEvent *key)
 Overridable Eventhandler for a SDL_KeyboardEvent message.
bool keyboardHandler (const SDL_KeyboardEvent *keyEvent)

Protected Attributes

MapDisplayPG::MovementMask movementMask [sidenum]
bool disableKeyboardCursorMovement

Static Protected Attributes

static const int effectiveMovementSurfaceWidth = 4 * fielddisthalfx + fieldsizex
static const int effectiveMovementSurfaceHeight = 4*fieldsizey

Friends

class CursorHiding
class LockDisplay

Classes

struct  Cursor
class  CursorHiding
struct  Field
struct  Icons
class  LockDisplay
struct  Movement
struct  MovementMask

Constructor & Destructor Documentation

MapDisplayPG::MapDisplayPG MainScreenWidget parent,
const PG_Rect  r
 

Definition at line 502 of file mapdisplay.cpp.

References MapRenderer::additionalItemDisplayHook, addMapLayer(), Surface::assignDefaultPalette(), dataLoaderTicker, displayAddons(), PG_Application::GetApp(), MapRenderer::getFieldPosX(), MapRenderer::getFieldPosY(), PG_Widget::GetWidgetSurface(), CGameOptions::Instance(), keyboardHandler(), MainScreenWidget::lockOptionsChanged, repaintMap, PG_Widget::SetDirtyUpdate(), PG_Widget::SetName(), setNewZoom(), GameMap::sigMapDeletion, updateWidget(), and Surface::Wrap().

MapDisplayPG::~MapDisplayPG  ) 
 

Definition at line 572 of file mapdisplay.cpp.


Member Function Documentation

void MapDisplayPG::activateMapLayer const ASCString name,
bool  active
 

Definition at line 1616 of file mapdisplay.cpp.

References layerChanged.

Referenced by MainScreenWidget::activateMapLayer(), and ASC_MainScreenWidget::ASC_MainScreenWidget().

void MapDisplayPG::addMapLayer MapLayer layer,
const ASCString name
 

Definition at line 1609 of file mapdisplay.cpp.

References MapRenderer::addMapLayer(), and MapLayer::setActive().

Referenced by ASC_MainScreenWidget::ASC_MainScreenWidget(), and MapDisplayPG().

void MapDisplayPG::blitInternalSurface SDL_Surface *  dest,
const SPoint pnt,
const PG_Rect dstClip
[protected]
 

Definition at line 692 of file mapdisplay.cpp.

References MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::blit(), PG_Rect::Height(), MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::initSource(), PG_Rect::IntersectRect(), PG_Rect::Width(), and Surface::Wrap().

Referenced by eventBlit().

bool MapDisplayPG::centerOnField const MapCoordinate mc  ) 
 

Definition at line 848 of file mapdisplay.cpp.

References actmap, checkViewPosition(), PG_Widget::Redraw(), MapCoordinate::valid(), viewChanged, MapCoordinate::x, GameMap::xsize, MapCoordinate::y, and GameMap::ysize.

Referenced by PG_MapDisplay::displayPosition(), eventMouseButtonDown(), MapDisplayPG::Cursor::goTo(), Weathercast::mouseClick(), and OverviewMapPanel::mouseClick().

void MapDisplayPG::changeZoom int  delta  )  [inline]
 

Definition at line 186 of file mapdisplay.h.

References getZoom(), and setNewZoom().

Referenced by eventMouseButtonDown().

void MapDisplayPG::checkViewPosition MapCoordinate pos  )  [protected]
 

Definition at line 648 of file mapdisplay.cpp.

References actmap, max(), MapCoordinate::x, GameMap::xsize, MapCoordinate::y, and GameMap::ysize.

Referenced by centerOnField(), eventMouseButtonDown(), fillSurface(), and scrollMap().

Surface MapDisplayPG::createMovementBufferSurface  )  [protected]
 

Definition at line 1024 of file mapdisplay.cpp.

References colorDepth, Surface::createSurface(), effectiveMovementSurfaceHeight, effectiveMovementSurfaceWidth, and MapRenderer::surfaceBorder.

Referenced by initMovementStructure().

void MapDisplayPG::displayAddons Surface surf,
int  pass
[protected]
 

Definition at line 1388 of file mapdisplay.cpp.

References MapRenderer::bitmappedHeight2pass(), ContainerBase::calcShadowDist(), chsatellit, fieldsizex, fieldsizey, Vehicle::getPosition(), Vehicle::height, log2(), mapViewPos2internalPos(), and Vehicle::paint().

Referenced by MapDisplayPG().

void MapDisplayPG::displayMovementStep Movement movement,
int  percentage
[protected]
 

Definition at line 1176 of file mapdisplay.cpp.

References MapDisplayPG::Movement::actmap, MapDisplayPG::Movement::actualFieldNum, MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::blit(), MapDisplayPG::Movement::blitViewPortInternal, MapDisplayPG::Movement::blitViewPortScreen, fieldVisibility(), MapDisplayPG::Movement::from, MapDisplayPG::Movement::fromShadow, GameMap::getField(), MapRenderer::getFieldPosX(), MapRenderer::getFieldPosY(), ContainerBase::getMap(), PG_Application::GetScreen(), PG_Rect::Height(), Vehicle::height, MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::initSource(), MapDisplayPG::Movement::mask, MapDisplayPG::Movement::maskPosition, Vehicle::paint(), MapRenderer::paintSingleField(), MapDisplayPG::Movement::playerView, MapDisplayPG::Movement::targetBlitPos, MapDisplayPG::Movement::to, MapDisplayPG::Movement::toShadow, MapDisplayPG::Movement::touchedFields, PG_Application::UpdateRect(), MapDisplayPG::Movement::veh, widget2screen(), PG_Rect::Width(), and Surface::Wrap().

Referenced by displayUnitMovement().

void MapDisplayPG::displayUnitMovement GameMap actmap,
Vehicle veh,
const MapCoordinate3D from,
const MapCoordinate3D to
 

Definition at line 1262 of file mapdisplay.cpp.

References MapDisplayPG::Movement::actmap, MapDisplayPG::Movement::actualFieldNum, MapDisplayPG::Movement::blitViewPortInternal, MapDisplayPG::Movement::blitViewPortScreen, ContainerBase::calcShadowDist(), ccompare(), chschwimmend, Vehicle::direction, displayMovementStep(), fieldInView(), fieldsizex, fieldsizey, MapDisplayPG::Movement::from, MapDisplayPG::Movement::fromShadow, MapCoordinate3D::getBitmappedHeight(), getdirection(), getNeighbouringFieldCoordinate(), MapCoordinate3D::getNumericalHeight(), GameMap::getPlayerView(), PG_Application::GetScreenHeight(), PG_Application::GetScreenWidth(), initMovementStructure(), CGameOptions::Instance(), internal2widget(), PG_Rect::IntersectRect(), mapGlobalPos2internalPos(), MapDisplayPG::MovementMask::mask, MapDisplayPG::Movement::mask, MapDisplayPG::Movement::maskPosition, max(), min(), movementMask, PG_Rect::PG_Rect(), MapDisplayPG::Movement::playerView, sidenum, MapDisplayPG::MovementMask::startFieldPos, MapDisplayPG::Movement::targetBlitPos, ticker, MapDisplayPG::Movement::to, MapDisplayPG::Movement::toShadow, MapDisplayPG::Movement::touchedFields, MapDisplayPG::Movement::veh, widget2screen(), MapCoordinate::x, and MapCoordinate::y.

Referenced by PG_MapDisplay::displayMovingUnit().

void MapDisplayPG::eventBlit SDL_Surface *  srf,
const PG_Rect src,
const PG_Rect dst
[protected, virtual]
 

overridable eventhandler to blit the widget contents to the screen

Parameters:
surface pointer to SDL_Surface to be blitted
src source rectangle (client coordinates)
dst destination rectangle (screen coordinates) Override this eventhandler to perform custom blitting behaviour (without drawing onto the widget surface).

Reimplemented from PG_Widget.

Definition at line 769 of file mapdisplay.cpp.

References blitInternalSurface(), PG_Widget::ClientToScreen(), cursor, PG_Widget::eventBlit(), PG_Application::GetScreen(), PG_Widget::GetWidgetSurface(), MapDisplayPG::Cursor::invisible, updateMap(), PG_Point::x, and PG_Point::y.

bool MapDisplayPG::eventKeyDown const SDL_KeyboardEvent *  key  )  [inline, protected, virtual]
 

Overridable Eventhandler for a SDL_KeyboardEvent message.

This handler is called when a key changed it's state from unpressed to pressed. The default implementation returns 'false' which indicates that this message is not processed by this object.

Parameters:
key SDL_KeyboardEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_MessageObject.

Definition at line 252 of file mapdisplay.h.

References keyboardHandler().

bool MapDisplayPG::eventMouseButtonDown const SDL_MouseButtonEvent *  button  )  [protected, virtual]
 

Overridable Eventhandler for a SDL_MouseButtonEvent message.

This handler is called when a mouse button is pressed. The default implementation returns 'false' which indicates that this message is not processed by this object.

Parameters:
button SDL_MouseButtonEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_MessageObject.

Definition at line 893 of file mapdisplay.cpp.

References actmap, centerOnField(), changeZoom(), checkViewPosition(), cursor, filterQueuedZoomEvents(), CGameOptions::Instance(), MapDisplayPG::Cursor::invisible, mouseButtonOnField, MapDisplayPG::Cursor::pos(), repaintMap, screenPos2mapPos(), updateFieldInfo, MapCoordinate::valid(), viewChanged, MapCoordinate::x, GameMap::xsize, MapCoordinate::y, and GameMap::ysize.

bool MapDisplayPG::eventMouseButtonUp const SDL_MouseButtonEvent *  button  )  [protected, virtual]
 

Overridable Eventhandler for a SDL_MouseButtonEvent message.

This handler is called when a mouse button is released. The default implementation returns 'false' which indicates that this message is not processed by this object.

Parameters:
button SDL_MouseButtonEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_MessageObject.

Definition at line 981 of file mapdisplay.cpp.

bool MapDisplayPG::eventMouseMotion const SDL_MouseMotionEvent *  button  )  [protected, virtual]
 

Overridable Eventhandler for a SDL_MouseMotionEvent message.

This handler is called when mouse movement is detected. The default implementation returns 'false' which indicates that this message is not processed by this object.

Parameters:
motion SDL_MouseMotionEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_MessageObject.

Definition at line 955 of file mapdisplay.cpp.

References actmap, cursor, cursorMoved, CGameOptions::Instance(), MapDisplayPG::Cursor::invisible, mouseDraggedToField, MapDisplayPG::Cursor::pos(), screenPos2mapPos(), MapCoordinate::valid(), MapCoordinate::x, GameMap::xsize, MapCoordinate::y, and GameMap::ysize.

bool MapDisplayPG::fieldCompletelyInView const MapCoordinate pos  ) 
 

Definition at line 1003 of file mapdisplay.cpp.

References fieldsizex, fieldsizey, internal2widget(), mapGlobalPos2internalPos(), PG_Rect::my_height, PG_Rect::my_width, PG_Rect::my_xpos, PG_Rect::my_ypos, s2, and widget2screen().

Referenced by fieldInView().

bool MapDisplayPG::fieldCompletelyInViewX const MapCoordinate pos  ) 
 

Definition at line 987 of file mapdisplay.cpp.

References fieldsizex, fieldsizey, internal2widget(), mapGlobalPos2internalPos(), PG_Rect::my_width, PG_Rect::my_xpos, s2, and widget2screen().

bool MapDisplayPG::fieldCompletelyInViewY const MapCoordinate pos  ) 
 

Definition at line 995 of file mapdisplay.cpp.

References fieldsizex, fieldsizey, internal2widget(), mapGlobalPos2internalPos(), PG_Rect::my_height, PG_Rect::my_ypos, s2, and widget2screen().

bool MapDisplayPG::fieldInView const MapCoordinate mc  ) 
 

Definition at line 1014 of file mapdisplay.cpp.

References fieldCompletelyInView(), MapCoordinate::x, and MapCoordinate::y.

Referenced by PG_MapDisplay::displayPosition(), displayUnitMovement(), and MapDisplayPG::Cursor::goTo().

void MapDisplayPG::fillSurface int  playerView  )  [protected]
 

Definition at line 628 of file mapdisplay.cpp.

References actmap, checkViewPosition(), paintBackground(), and MapRenderer::paintTerrain().

Referenced by updateMap().

void MapDisplayPG::getActiveLayers vector< ASCString > &  list  ) 
 

Definition at line 1644 of file mapdisplay.cpp.

int MapDisplayPG::getZoom  )  const [inline]
 

Definition at line 188 of file mapdisplay.h.

Referenced by changeZoom(), and MapInfoPanel::MapInfoPanel().

void MapDisplayPG::initMovementStructure  )  [protected]
 

Definition at line 1032 of file mapdisplay.cpp.

References createMovementBufferSurface(), fieldsizex, fieldsizey, MapRenderer::getFieldPos2(), getNeighbouringFieldCoordinate(), MapDisplayPG::MovementMask::mask, movementMask, sidenum, and MapDisplayPG::MovementMask::startFieldPos.

Referenced by displayUnitMovement().

SPoint MapDisplayPG::internal2widget const SPoint pos  ) 
 

Definition at line 799 of file mapdisplay.cpp.

References MapRenderer::surfaceBorder.

Referenced by displayUnitMovement(), fieldCompletelyInView(), fieldCompletelyInViewX(), and fieldCompletelyInViewY().

void MapDisplayPG::keyboadCursorMovement bool  enable  )  [inline]
 

Definition at line 262 of file mapdisplay.h.

References disableKeyboardCursorMovement.

Referenced by NewGuiHost::eventKeyDown(), and NewGuiHost::eventKeyUp().

bool MapDisplayPG::keyboardHandler const SDL_KeyboardEvent *  keyEvent  )  [protected]
 

Definition at line 1547 of file mapdisplay.cpp.

References actmap, and disableKeyboardCursorMovement.

Referenced by eventKeyDown(), and MapDisplayPG().

bool MapDisplayPG::layerActive const ASCString name  ) 
 

Definition at line 1634 of file mapdisplay.cpp.

Referenced by MapInfoPanel::MapInfoPanel().

MapCoordinate MapDisplayPG::lowerRightCorner  ) 
 

Definition at line 842 of file mapdisplay.cpp.

References MapCoordinate::x, and MapCoordinate::y.

Referenced by Weathercast::painter(), and OverviewMapPanel::painter().

SPoint MapDisplayPG::mapGlobalPos2internalPos const MapCoordinate pos  ) 
 

Definition at line 788 of file mapdisplay.cpp.

References MapRenderer::getFieldPos(), MapCoordinate::x, and MapCoordinate::y.

Referenced by displayUnitMovement(), fieldCompletelyInView(), fieldCompletelyInViewX(), and fieldCompletelyInViewY().

SPoint MapDisplayPG::mapViewPos2internalPos const MapCoordinate pos  ) 
 

Definition at line 793 of file mapdisplay.cpp.

References MapRenderer::getFieldPos(), MapCoordinate::x, and MapCoordinate::y.

Referenced by displayAddons().

void MapDisplayPG::paintBackground  )  [protected]
 

Definition at line 640 of file mapdisplay.cpp.

References MapRenderer::paintBackground().

Referenced by fillSurface().

void MapDisplayPG::registerAdditionalUnit Vehicle veh  ) 
 

Definition at line 1604 of file mapdisplay.cpp.

Referenced by PG_MapDisplay::displayMap().

MapCoordinate MapDisplayPG::screenPos2mapPos const SPoint pos  ) 
 

Definition at line 811 of file mapdisplay.cpp.

References PG_Rect::Height(), PG_Widget::ScreenToClient(), widgetPos2mapPos(), PG_Rect::Width(), PG_Point::x, and PG_Point::y.

Referenced by eventMouseButtonDown(), and eventMouseMotion().

void MapDisplayPG::scrollMap int  dir  ) 
 

Definition at line 1409 of file mapdisplay.cpp.

References actmap, checkViewPosition(), PG_Widget::Update(), viewChanged, MapCoordinate::x, and MapCoordinate::y.

Referenced by MainScreenWidget::mouseScrollChecker().

void MapDisplayPG::setNewZoom int  zoom  ) 
 

Definition at line 593 of file mapdisplay.cpp.

References colorDepth, Surface::createSurface(), fielddistx, fielddisty, fieldysize, PG_Rect::Height(), CGameOptions::Instance(), newZoom, MapRenderer::surfaceBorder, and PG_Rect::Width().

Referenced by changeZoom(), and MapDisplayPG().

int MapDisplayPG::setSignalPriority int  priority  ) 
 

Definition at line 879 of file mapdisplay.cpp.

Referenced by SelectFromMap::SelectFromMap(), and SelectFromMap::~SelectFromMap().

void MapDisplayPG::toggleMapLayer const ASCString name  ) 
 

Definition at line 1625 of file mapdisplay.cpp.

References layerChanged.

Referenced by MainScreenWidget::toggleMapLayer().

void MapDisplayPG::updateMap bool  force = false  ) 
 

repaints to the internal surface, but does not blit this surface the screen

Definition at line 675 of file mapdisplay.cpp.

References actmap, fillSurface(), and GameMap::getPlayerView().

Referenced by eventBlit(), and updateWidget().

void MapDisplayPG::updateWidget  ) 
 

update the internal surface and blits it to the screen

Definition at line 684 of file mapdisplay.cpp.

References PG_Widget::Update(), and updateMap().

Referenced by MapDisplayPG().

MapCoordinate MapDisplayPG::upperLeftCorner  ) 
 

Definition at line 837 of file mapdisplay.cpp.

Referenced by Weathercast::painter(), OverviewMapPanel::painter(), and MapSwitcher::toggle().

SPoint MapDisplayPG::widget2screen const SPoint pos  ) 
 

Definition at line 804 of file mapdisplay.cpp.

References PG_Widget::ClientToScreen(), PG_Point::x, and PG_Point::y.

Referenced by displayMovementStep(), displayUnitMovement(), fieldCompletelyInView(), fieldCompletelyInViewX(), and fieldCompletelyInViewY().

MapCoordinate MapDisplayPG::widgetPos2mapPos const SPoint pos  ) 
 

Definition at line 820 of file mapdisplay.cpp.

References fieldsizey, MapRenderer::getFieldPosX(), MapRenderer::getFieldPosY(), MapRenderer::surfaceBorder, MapCoordinate::x, and MapCoordinate::y.

Referenced by screenPos2mapPos().


Friends And Related Function Documentation

friend class CursorHiding [friend]
 

Definition at line 340 of file mapdisplay.h.

friend class LockDisplay [friend]
 

Definition at line 351 of file mapdisplay.h.


Member Data Documentation

struct MapDisplayPG::Cursor MapDisplayPG::cursor
 

Referenced by Maped_MainScreenWidget::clickOnMap(), PG_MapDisplay::cursor_goto(), eventBlit(), TargetCoordinateLocator::eventMouseButtonDown(), eventMouseButtonDown(), eventMouseMotion(), execaction(), SelectFromMap::listItemClicked(), PG_MapDisplay::removeActionCursor(), SelectFromMap::SelectFromMap(), and MapSwitcher::toggle().

bool MapDisplayPG::disableKeyboardCursorMovement [protected]
 

Definition at line 259 of file mapdisplay.h.

Referenced by keyboadCursorMovement(), and keyboardHandler().

const int MapDisplayPG::effectiveMovementSurfaceHeight = 4*fieldsizey [static, protected]
 

Definition at line 215 of file mapdisplay.h.

Referenced by createMovementBufferSurface().

const int MapDisplayPG::effectiveMovementSurfaceWidth = 4 * fielddisthalfx + fieldsizex [static, protected]
 

Definition at line 214 of file mapdisplay.h.

Referenced by createMovementBufferSurface().

SigC::Signal2<void, bool, const ASCString&> MapDisplayPG::layerChanged
 

Definition at line 294 of file mapdisplay.h.

Referenced by activateMapLayer(), ASC_MainScreenWidget::ASC_MainScreenWidget(), MapInfoPanel::MapInfoPanel(), and toggleMapLayer().

SigC::Signal5<bool,const MapCoordinate&, const SPoint&, bool, int, int> MapDisplayPG::mouseButtonOnField
 

Signal that is fired when the mouse is pressed on a valid field, after the cursor evaluation has been run.

Parameters:
MapCoordinate the Coordinate of the field that was clicked
SPoint the mouse position
bool true if the cursor had been repositioned
int the button that was pressed
int the priority of the signal

Definition at line 310 of file mapdisplay.h.

Referenced by eventMouseButtonDown(), Maped_MainScreenWidget::Maped_MainScreenWidget(), NewGuiHost::NewGuiHost(), and SelectFromMap::SelectFromMap().

SigC::Signal4<bool,const MapCoordinate&, const SPoint&, bool, int> MapDisplayPG::mouseDraggedToField
 

Signal that is fired when the mouse is dragged onto a new field with mouse buttons pressed.

Parameters:
MapCoordinate the Coordinate of the field that was clicked
SPoint the mouse position
bool true if the cursor had been repositioned
int the priority of the signal

Definition at line 318 of file mapdisplay.h.

Referenced by eventMouseMotion(), and Maped_MainScreenWidget::Maped_MainScreenWidget().

struct MapDisplayPG::MovementMask MapDisplayPG::movementMask[sidenum] [protected]
 

Referenced by displayUnitMovement(), and initMovementStructure().

SigC::Signal1<void, int> MapDisplayPG::newZoom
 

Definition at line 188 of file mapdisplay.h.

Referenced by MapInfoPanel::MapInfoPanel(), and setNewZoom().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:18:07 2008 for Advanced Strategic Command by  doxygen 1.4.2