Advanced Strategic Command
mapimageexport.h
Go to the documentation of this file.
1 
2 /***************************************************************************
3  mapimageexport.h
4  -------------------
5  copyright : (C) 2005 by Martin Bickel
6  email : bickel@asc-hq.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef mapimageexportH
19  #define mapimageexportH
20 
21 #include "gamemap.h"
22 #include "graphics/surface.h"
23 
24 #include "mapdisplay.h"
25 
26 class WholeMapRenderer : public MapRenderer {
27  GameMap* gamemap;
28  int xsize;
29  int ysize;
30  public:
33  void render();
34  void writePCX( const ASCString& filename );
35  void writePNG( const ASCString& filename );
36  void renderVisibility();
37 
38 };
39 
40 extern void writemaptopcx ( GameMap* gamemap, bool addview = false );
41 extern void writemaptostream ( GameMap* gamemap, int width, int height, tnstream& stream );
42 extern Surface loadmapfromstream ( tnstream& stream );
43 #endif
WholeMapRenderer(GameMap *actmap)
void writemaptopcx(GameMap *gamemap, bool addview=false)
Surface loadmapfromstream(tnstream &stream)
void writePCX(const ASCString &filename)
The interface for all kinds of IO stream.
The ASCString class provides an abstract way to manipulate strings.
Definition: ascstring.h:14
Definition of THE central asc class: GameMap.
void writemaptostream(GameMap *gamemap, int width, int height, tnstream &stream)
void writePNG(const ASCString &filename)
GameMap * actmap
Definition: spfst.cpp:64
The map. THE central structure of ASC, which holds everything not globally available together...
Definition: gamemap.h:182