OverviewMapHolder Class Reference

#include <gamemap.h>

List of all members.

Public Member Functions

 OverviewMapHolder (GameMap &gamemap)
const SurfacegetOverviewMap (bool complete=true)
 returns the overview surface for the map.
void resetSize ()
void startUpdate ()
void clear (bool allImages=false)
void connect ()

Static Public Member Functions

static void clearmap (GameMap *actmap)

Static Public Attributes

static SigC::Signal0< void > generationComplete

Protected Member Functions

bool idleHandler ()
bool init ()
void drawNextField (bool signalOnCompletion=true)
bool updateField (const MapCoordinate &pos)


Detailed Description

Definition at line 136 of file gamemap.h.


Constructor & Destructor Documentation

OverviewMapHolder::OverviewMapHolder ( GameMap gamemap  ) 

Definition at line 74 of file gamemap.cpp.


Member Function Documentation

bool OverviewMapHolder::idleHandler (  )  [protected]

Definition at line 89 of file gamemap.cpp.

References drawNextField(), and ticker.

Referenced by connect().

bool OverviewMapHolder::init (  )  [protected]

Definition at line 163 of file gamemap.cpp.

References GameMap::xsize, and GameMap::ysize.

Referenced by drawNextField(), and getOverviewMap().

void OverviewMapHolder::drawNextField ( bool  signalOnCompletion = true  )  [protected]

Definition at line 129 of file gamemap.cpp.

References Surface::Duplicate(), generationComplete, init(), updateField(), GameMap::xsize, and GameMap::ysize.

Referenced by getOverviewMap(), and idleHandler().

bool OverviewMapHolder::updateField ( const MapCoordinate pos  )  [protected]

Definition at line 98 of file gamemap.cpp.

References OverviewMapImage::blit(), MapField::building, fieldVisibility(), fieldvisiblenow(), OverviewMapImage::fill(), OverviewMapImage::fillCenter(), Player::getColor(), GameMap::getField(), ContainerBase::getOwner(), GameMap::getPlayerView(), TerrainType::Weather::getQuickView(), MapField::getWeather(), OverviewMapImage::lighten(), OverviewMapImage::map2surface(), MapField::objects, GameMap::player, MapField::typ, MapField::vehicle, visible_ago, and visible_not.

Referenced by drawNextField().

const Surface & OverviewMapHolder::getOverviewMap ( bool  complete = true  ) 

returns the overview surface for the map.

Parameters:
complete complete the image if it is not ready (might take several seconds)

Definition at line 181 of file gamemap.cpp.

References drawNextField(), and init().

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

void OverviewMapHolder::clearmap ( GameMap actmap  )  [static]

Definition at line 217 of file gamemap.cpp.

References actmap, clear(), and GameMap::overviewMapHolder.

Referenced by MainScreenWidget::setup().

void OverviewMapHolder::resetSize (  ) 

Definition at line 175 of file gamemap.cpp.

Referenced by GameMap::resize().

void OverviewMapHolder::startUpdate (  ) 

Definition at line 195 of file gamemap.cpp.

Referenced by clear().

void OverviewMapHolder::clear ( bool  allImages = false  ) 

Definition at line 202 of file gamemap.cpp.

References startUpdate(), and Surface::transparent.

Referenced by authenticateUser(), clearmap(), next_turn(), Weathercast::painter(), and Weathercast::Weathercast().

void OverviewMapHolder::connect (  ) 

Definition at line 78 of file gamemap.cpp.

References idleEvent, and idleHandler().

Referenced by GameMap::allocateFields(), GameMap::guiHooked(), and tspfldloaders::readfields().


Member Data Documentation

SigC::Signal0< void > OverviewMapHolder::generationComplete [static]

Definition at line 165 of file gamemap.h.

Referenced by drawNextField(), and OverviewMapPanel::OverviewMapPanel().


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