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

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)

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(), PG_Rect::PG_Rect(), PG_Button::sigClick, PG_Window::sigClose, PG_MessageObject::sigMouseButtonDown, PG_MessageObject::sigMouseMotion, Surface::strech(), and viewChanged.

Weathercast::~Weathercast  )  [virtual]
 

Definition at line 256 of file weathercast.cpp.


Member Function Documentation

bool Weathercast::mouseButtonDown const SDL_MouseButtonEvent *  button  ) 
 

Definition at line 277 of file weathercast.cpp.

References PG_Widget::IsMouseInside(), mouseClick(), PG_Widget::ScreenToClient(), PG_Point::x, and PG_Point::y.

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().

bool Weathercast::mouseMotion const SDL_MouseMotionEvent *  motion  ) 
 

Definition at line 258 of file weathercast.cpp.

References PG_Widget::IsMouseInside(), mouseClick(), PG_Widget::ScreenToClient(), PG_Point::x, and PG_Point::y.

Referenced by Weathercast().

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(), PG_Widget::ClientToScreen(), WeatherPanel::getCounter(), OverviewMapHolder::getOverviewMap(), PG_Application::GetScreen(), MapDisplayPG::lowerRightCorner(), OverviewMapImage::map2surface(), GameMap::overviewMapHolder, GameMap::time, GameTime::turn(), MapDisplayPG::upperLeftCorner(), Surface::Wrap(), PG_Point::x, and PG_Point::y.

Referenced by Weathercast().

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(), PG_Widget::ClientToScreen(), WeatherArea::getCenterPos(), WeatherArea::getFalloutType(), IconRepository::getIcon(), PG_Application::GetScreen(), OverviewMapImage::map2surface(), Surface::Wrap(), PG_Point::x, and PG_Point::y.


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