Advanced Strategic Command
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
OverviewMapHolder Class Reference

#include <gamemap.h>

Inheritance diagram for OverviewMapHolder:
Inheritance graph
[legend]

Public Member Functions

 OverviewMapHolder (GameMap &gamemap)
 
const SurfacegetOverviewMap (bool complete=true)
 returns the overview surface for the map. More...
 
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::signal< void > generationComplete
 

Protected Member Functions

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

Detailed Description

Definition at line 139 of file gamemap.h.

Constructor & Destructor Documentation

OverviewMapHolder::OverviewMapHolder ( GameMap gamemap)

Definition at line 73 of file gamemap.cpp.

Member Function Documentation

void OverviewMapHolder::clear ( bool  allImages = false)
void OverviewMapHolder::clearmap ( GameMap actmap)
static

Definition at line 216 of file gamemap.cpp.

References clear(), and GameMap::overviewMapHolder.

Referenced by MainScreenWidget::setup().

void OverviewMapHolder::connect ( )

Definition at line 77 of file gamemap.cpp.

References idleEvent, and idleHandler().

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

void OverviewMapHolder::drawNextField ( bool  signalOnCompletion = true)
protected
const Surface & OverviewMapHolder::getOverviewMap ( bool  complete = true)

returns the overview surface for the map.

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

Definition at line 180 of file gamemap.cpp.

References drawNextField(), and init().

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

bool OverviewMapHolder::idleHandler ( )
protected

Definition at line 88 of file gamemap.cpp.

References drawNextField(), and ticker.

Referenced by connect().

bool OverviewMapHolder::init ( void  )
protected

Definition at line 162 of file gamemap.cpp.

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

Referenced by drawNextField(), and getOverviewMap().

void OverviewMapHolder::resetSize ( )

Definition at line 174 of file gamemap.cpp.

Referenced by GameMap::resize().

void OverviewMapHolder::startUpdate ( )

Definition at line 194 of file gamemap.cpp.

Referenced by clear().

bool OverviewMapHolder::updateField ( const MapCoordinate pos)
protected

Member Data Documentation

sigc::signal< void > OverviewMapHolder::generationComplete
static

Definition at line 168 of file gamemap.h.

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


The documentation for this class was generated from the following files: