Advanced Strategic Command
|
the image for a TerrainType that is shown on the small map More...
#include <overviewmapimage.h>
Public Member Functions | |
OverviewMapImage () | |
OverviewMapImage (const Surface &image) | |
bool | valid () const |
void | create (const Surface &image) |
void | read (tnstream &stream) |
void | write (tnstream &stream) const |
void | blit (Surface &s, const SPoint &pos, int layer=0) const |
int | getMemoryFootprint () const |
Static Public Member Functions | |
static SPoint | map2surface (const MapCoordinate &pos) |
static MapCoordinate | surface2map (const SPoint &pos) |
static void | fill (Surface &s, const SPoint &pos, SDLmm::Color color) |
static void | fill (Surface &s, const SPoint &pos, SDL_Color color) |
static void | fillCenter (Surface &s, const SPoint &pos, SDLmm::Color color) |
static void | fillCenter (Surface &s, const SPoint &pos, SDL_Color color) |
static void | lighten (Surface &s, const SPoint &pos, float value) |
Public Attributes | |
SDLmm::ColorRGBA | segment [width][height] |
Static Public Attributes | |
static const int | width = 4 |
static const int | height = 4 |
the image for a TerrainType that is shown on the small map
Definition at line 27 of file overviewmapimage.h.
OverviewMapImage::OverviewMapImage | ( | ) |
Definition at line 7 of file overviewmapimage.cpp.
OverviewMapImage::OverviewMapImage | ( | const Surface & | image | ) |
Definition at line 11 of file overviewmapimage.cpp.
References create().
Definition at line 136 of file overviewmapimage.cpp.
References height, segment, and width.
Referenced by OverviewMapHolder::updateField().
void OverviewMapImage::create | ( | const Surface & | image | ) |
Definition at line 67 of file overviewmapimage.cpp.
References IconRepository::getIcon(), height, Surface::isTransparent(), Surface::opaque, pal, segment, Surface::transparent, and width.
Referenced by OverviewMapImage().
|
static |
Definition at line 158 of file overviewmapimage.cpp.
Referenced by fill(), and OverviewMapHolder::updateField().
Definition at line 153 of file overviewmapimage.cpp.
References fill().
|
static |
Definition at line 172 of file overviewmapimage.cpp.
Referenced by fillCenter(), and OverviewMapHolder::updateField().
Definition at line 167 of file overviewmapimage.cpp.
References fillCenter().
int OverviewMapImage::getMemoryFootprint | ( | ) | const |
Definition at line 16 of file overviewmapimage.cpp.
Definition at line 180 of file overviewmapimage.cpp.
References height, lighten_Color(), and width.
Referenced by OverviewMapHolder::updateField().
|
static |
Definition at line 23 of file overviewmapimage.cpp.
References MapCoordinate::x, and MapCoordinate::y.
Referenced by OverviewMapPanel::painter(), Weathercast::painter(), Weathercast::paintWeatherArea(), and OverviewMapHolder::updateField().
void OverviewMapImage::read | ( | tnstream & | stream | ) |
|
static |
Definition at line 28 of file overviewmapimage.cpp.
References MapCoordinate::x.
Referenced by OverviewMapPanel::mouseClick(), and Weathercast::mouseClick().
|
inline |
Definition at line 37 of file overviewmapimage.h.
void OverviewMapImage::write | ( | tnstream & | stream | ) | const |
|
static |
Definition at line 34 of file overviewmapimage.h.
|
static |