WholeMapRenderer Class Reference

#include <mapimageexport.h>

Inheritance diagram for WholeMapRenderer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 WholeMapRenderer (GameMap *actmap)
void render ()
void writePCX (const ASCString &filename)
void writePNG (const ASCString &filename)
void renderVisibility ()

Public Attributes

Surface surface

Detailed Description

Definition at line 26 of file mapimageexport.h.


Constructor & Destructor Documentation

WholeMapRenderer::WholeMapRenderer ( GameMap actmap  ) 

Definition at line 28 of file mapimageexport.cpp.

References actmap, Surface::createSurface(), fielddistx, fielddisty, surface, Surface::transparent, GameMap::xsize, and GameMap::ysize.


Member Function Documentation

void WholeMapRenderer::render (  ) 

Definition at line 36 of file mapimageexport.cpp.

References GameMap::getPlayerView(), MapRenderer::paintTerrain(), surface, GameMap::xsize, and GameMap::ysize.

Referenced by writemaptostream().

void WholeMapRenderer::writePCX ( const ASCString filename  ) 

Definition at line 70 of file mapimageexport.cpp.

References fielddisthalfx, fielddistx, fielddisty, fieldsizex, fieldysize, surface, MapRenderer::surfaceBorder, writepcx(), GameMap::xsize, and GameMap::ysize.

void WholeMapRenderer::writePNG ( const ASCString filename  ) 

Definition at line 75 of file mapimageexport.cpp.

References constructFileName(), fielddisthalfx, fielddistx, fielddisty, fieldsizex, fieldysize, surface, MapRenderer::surfaceBorder, GameMap::xsize, and GameMap::ysize.

void WholeMapRenderer::renderVisibility (  ) 

Definition at line 42 of file mapimageexport.cpp.

References computeview(), fieldsizex, fieldsizey, fieldvisiblenow(), Surface::getBaseSurface(), Player::getColor(), GameMap::getField(), MapRenderer::getFieldPos(), IconRepository::getIcon(), GameMap::getPlayer(), GameMap::getPlayerCount(), GameMap::getPlayerView(), DI_Color::MapRGBA(), min(), PutPixel< pixelsize, ColorMerger >::set(), surface, MapField::View::view, MapField::view, GameMap::xsize, and GameMap::ysize.


Member Data Documentation

Surface WholeMapRenderer::surface

Definition at line 29 of file mapimageexport.h.

Referenced by render(), renderVisibility(), WholeMapRenderer(), writemaptostream(), writePCX(), and writePNG().


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