OpenClonk
C4Map.h
Go to the documentation of this file.
1 /*
2  * OpenClonk, http://www.openclonk.org
3  *
4  * Copyright (c) 1998-2000, Matthes Bender
5  * Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de/
6  * Copyright (c) 2013-2016, The OpenClonk Team and contributors
7  *
8  * Distributed under the terms of the ISC license; see accompanying file
9  * "COPYING" for details.
10  *
11  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
12  * See accompanying file "TRADEMARK" for details.
13  *
14  * To redistribute this file separately, substitute the full license texts
15  * for the above references.
16  */
17 
18 /* Create map from dynamic landscape data in scenario */
19 
20 #ifndef INC_C4Map
21 #define INC_C4Map
22 
24 {
25 public:
26  C4MapCreator();
27 protected:
30  int32_t MapWdt,MapHgt;
31  int32_t Exclusive;
32 public:
33  void Create(CSurface8 *sfcMap,
34  C4SLandscape &rLScape, C4TextureMap &rTexMap,
35  int32_t iPlayerNum=1);
36 
37 protected:
38  void Reset();
39  void SetPix(int32_t x, int32_t y, BYTE col);
40  void SetSpot(int32_t x, int32_t y, int32_t rad, BYTE col);
41  void DrawLayer(int32_t x, int32_t y, int32_t size, BYTE col);
42  void ValidateTextureIndices(C4TextureMap &rTexMap);
43  BYTE GetPix(int32_t x, int32_t y);
44 };
45 
46 #endif
uint8_t BYTE
int32_t Exclusive
Definition: C4Map.h:31
BYTE GetPix(int32_t x, int32_t y)
Definition: C4Map.cpp:70
int32_t MapWdt
Definition: C4Map.h:30
CSurface8 * MapBkgBuf
Definition: C4Map.h:29
CSurface8 * MapBuf
Definition: C4Map.h:28
void Create(CSurface8 *sfcMap, C4SLandscape &rLScape, C4TextureMap &rTexMap, int32_t iPlayerNum=1)
Definition: C4Map.cpp:78
int32_t MapHgt
Definition: C4Map.h:30
void SetPix(int32_t x, int32_t y, BYTE col)
Definition: C4Map.cpp:38
void DrawLayer(int32_t x, int32_t y, int32_t size, BYTE col)
Definition: C4Map.cpp:59
void Reset()
Definition: C4Map.cpp:32
void ValidateTextureIndices(C4TextureMap &rTexMap)
Definition: C4Map.cpp:174
C4MapCreator()
Definition: C4Map.cpp:27
void SetSpot(int32_t x, int32_t y, int32_t rad, BYTE col)
Definition: C4Map.cpp:48