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

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)


Constructor & Destructor Documentation

OverviewMapHolder::OverviewMapHolder GameMap gamemap  ) 
 

Definition at line 70 of file gamemap.cpp.


Member Function Documentation

void OverviewMapHolder::clear bool  allImages = false  ) 
 

Definition at line 198 of file gamemap.cpp.

References startUpdate(), and Surface::transparent.

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

void OverviewMapHolder::clearmap GameMap actmap  )  [static]
 

Definition at line 213 of file gamemap.cpp.

References clear(), and GameMap::overviewMapHolder.

Referenced by MainScreenWidget::setup().

void OverviewMapHolder::connect  ) 
 

Definition at line 74 of file gamemap.cpp.

References idleEvent, and idleHandler().

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

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

Definition at line 125 of file gamemap.cpp.

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

Referenced by getOverviewMap(), and idleHandler().

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 177 of file gamemap.cpp.

References assert, drawNextField(), and init().

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

bool OverviewMapHolder::idleHandler  )  [protected]
 

Definition at line 85 of file gamemap.cpp.

References drawNextField(), and ticker.

Referenced by connect().

bool OverviewMapHolder::init  )  [protected]
 

Definition at line 159 of file gamemap.cpp.

Referenced by drawNextField(), and getOverviewMap().

void OverviewMapHolder::resetSize  ) 
 

Definition at line 171 of file gamemap.cpp.

Referenced by GameMap::resize().

void OverviewMapHolder::startUpdate  ) 
 

Definition at line 191 of file gamemap.cpp.

Referenced by clear().

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

Definition at line 94 of file gamemap.cpp.

References fieldVisibility(), fieldvisiblenow(), OverviewMapImage::fill(), OverviewMapImage::fillCenter(), OverviewMapImage::lighten(), OverviewMapImage::map2surface(), visible_ago, and visible_not.

Referenced by drawNextField().


Member Data Documentation

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

Definition at line 83 of file gamemap.cpp.

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


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