Advanced Strategic Command
Classes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
MapRenderer Class Reference

#include <mapdisplay.h>

Inheritance diagram for MapRenderer:
Inheritance graph
[legend]

Classes

class  FieldRenderInfo
 
struct  ViewPort
 

Protected Member Functions

 MapRenderer ()
 
void paintUnitOntoField (const MapRenderer::FieldRenderInfo &fieldInfo, int binaryUnitHeight, const SPoint &pos, Vehicle *vehicle)
 
int getFieldPosX (int x, int y)
 
int getFieldPosY (int x, int y)
 
SPoint getFieldPos (int x, int y)
 
SPoint getFieldPos2 (const MapCoordinate &pos)
 
void paintSingleField (const MapRenderer::FieldRenderInfo &fieldInfo, int layer, const SPoint &pos)
 
void paintTerrain (Surface &surf, GameMap *actmap, int playerView, const ViewPort &viewPort, const MapCoordinate &offset)
 
void paintBackground (Surface &surf, const ViewPort &viewPort)
 
void paintBackgroundField (Surface &surf, SPoint pos)
 
int bitmappedHeight2pass (int height)
 
void addMapLayer (MapLayer *mapLayer)
 

Protected Attributes

sigc::signal< void, Surface
&, int > 
additionalItemDisplayHook
 

Static Protected Attributes

static const int surfaceBorder = 90
 

Detailed Description

Definition at line 35 of file mapdisplay.h.

Constructor & Destructor Documentation

MapRenderer::MapRenderer ( )
protected

Definition at line 381 of file mapdisplay.cpp.

Member Function Documentation

void MapRenderer::addMapLayer ( MapLayer mapLayer)
inlineprotected

Definition at line 105 of file mapdisplay.h.

Referenced by MapDisplayPG::addMapLayer().

int MapRenderer::bitmappedHeight2pass ( int  height)
protected

Definition at line 422 of file mapdisplay.cpp.

References getFirstBit().

Referenced by MapDisplayPG::displayAddons().

SPoint MapRenderer::getFieldPos ( int  x,
int  y 
)
inlineprotected
SPoint MapRenderer::getFieldPos2 ( const MapCoordinate pos)
inlineprotected
int MapRenderer::getFieldPosX ( int  x,
int  y 
)
inlineprotected
int MapRenderer::getFieldPosY ( int  x,
int  y 
)
inlineprotected
void MapRenderer::paintBackground ( Surface surf,
const ViewPort viewPort 
)
protected
void MapRenderer::paintBackgroundField ( Surface surf,
SPoint  pos 
)
protected

Definition at line 551 of file mapdisplay.cpp.

Referenced by paintBackground(), and paintTerrain().

void MapRenderer::paintSingleField ( const MapRenderer::FieldRenderInfo fieldInfo,
int  layer,
const SPoint pos 
)
protected
void MapRenderer::paintTerrain ( Surface surf,
GameMap actmap,
int  playerView,
const ViewPort viewPort,
const MapCoordinate offset 
)
protected
void MapRenderer::paintUnitOntoField ( const MapRenderer::FieldRenderInfo fieldInfo,
int  binaryUnitHeight,
const SPoint pos,
Vehicle vehicle 
)
protected

Member Data Documentation

sigc::signal<void,Surface&,int> MapRenderer::additionalItemDisplayHook
protected

Definition at line 103 of file mapdisplay.h.

Referenced by MapDisplayPG::MapDisplayPG(), and paintTerrain().

const int MapRenderer::surfaceBorder = 90
staticprotected

The documentation for this class was generated from the following files: