#include <gamemap.h>
Public Member Functions | |
| OverviewMapHolder (GameMap &gamemap) | |
| const Surface & | getOverviewMap (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) |
Definition at line 136 of file gamemap.h.
| OverviewMapHolder::OverviewMapHolder | ( | GameMap & | gamemap | ) |
Definition at line 74 of file gamemap.cpp.
| 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.
| 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 | ( | ) |
| void OverviewMapHolder::startUpdate | ( | ) |
| 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().
SigC::Signal0< void > OverviewMapHolder::generationComplete [static] |
Definition at line 165 of file gamemap.h.
Referenced by drawNextField(), and OverviewMapPanel::OverviewMapPanel().
1.5.1