Weathercast Class Reference

#include <weathercast.h>

Inheritance diagram for Weathercast:

Inheritance graph
[legend]
List of all members.

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)

Detailed Description

Definition at line 76 of file weathercast.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


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