#include <weathercast.h>
Inheritance diagram for Weathercast:

Public Member Functions | |
| Weathercast (const WeatherSystem &ws) | |
| virtual | ~Weathercast () |
| void | painter (const PG_Rect &src, const ASCString &name, const PG_Rect &dst) |
| bool | mouseButtonDown (const SDL_MouseButtonEvent *button) |
| bool | mouseMotion (const SDL_MouseMotionEvent *motion) |
| bool | mouseClick (SPoint pos) |
| void | paintWeatherArea (const WeatherArea *wa, int vMove, int hMove) |
Definition at line 76 of file weathercast.h.
| Weathercast::Weathercast | ( | const WeatherSystem & | ws | ) |
Definition at line 235 of file weathercast.cpp.
References actmap, OverviewMapHolder::clear(), SpecialDisplayWidget::display, GuiDimension::getButtonHeight(), GuiDimension::getButtonWidth(), OverviewMapHolder::getOverviewMap(), getPGApplication(), GuiDimension::getTopOffSet(), ASC_PG_App::mapDisplayID, mouseButtonDown(), mouseMotion(), GameMap::overviewMapHolder, painter(), Surface::strech(), and viewChanged.
| Weathercast::~Weathercast | ( | ) | [virtual] |
Definition at line 256 of file weathercast.cpp.
| void Weathercast::painter | ( | const PG_Rect & | src, | |
| const ASCString & | name, | |||
| const PG_Rect & | dst | |||
| ) |
Definition at line 288 of file weathercast.cpp.
References actmap, MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::blit(), OverviewMapHolder::clear(), WeatherPanel::getCounter(), OverviewMapHolder::getOverviewMap(), MapDisplayPG::lowerRightCorner(), OverviewMapImage::map2surface(), GameMap::overviewMapHolder, screen, GameMap::time, GameTime::turn(), MapDisplayPG::upperLeftCorner(), and Surface::Wrap().
Referenced by Weathercast().
| bool Weathercast::mouseButtonDown | ( | const SDL_MouseButtonEvent * | button | ) |
Definition at line 277 of file weathercast.cpp.
References mouseClick().
Referenced by Weathercast().
| bool Weathercast::mouseMotion | ( | const SDL_MouseMotionEvent * | motion | ) |
Definition at line 258 of file weathercast.cpp.
References mouseClick().
Referenced by Weathercast().
| bool Weathercast::mouseClick | ( | SPoint | pos | ) |
Definition at line 268 of file weathercast.cpp.
References actmap, MapDisplayPG::centerOnField(), OverviewMapImage::surface2map(), MapCoordinate::valid(), MapCoordinate::x, GameMap::xsize, MapCoordinate::y, and GameMap::ysize.
Referenced by mouseButtonDown(), and mouseMotion().
| void Weathercast::paintWeatherArea | ( | const WeatherArea * | wa, | |
| int | vMove, | |||
| int | hMove | |||
| ) |
Definition at line 350 of file weathercast.cpp.
References MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::blit(), WeatherArea::getCenterPos(), WeatherArea::getFalloutType(), IconRepository::getIcon(), OverviewMapImage::map2surface(), screen, Surface::Wrap(), MapCoordinate::x, and MapCoordinate::y.
1.5.1