OpenClonk
C4MaterialList.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 /* A primitive list to store one amount value per mapped material */
19 
20 #ifndef INC_C4MaterialList
21 #define INC_C4MaterialList
22 
23 #include "landscape/C4Landscape.h"
24 
26 {
27 public:
30 public:
32 public:
33  void Default();
34  void Clear();
35  void Reset();
36  int32_t Get(int32_t iMaterial);
37  void Add(int32_t iMaterial, int32_t iAmount);
38  void Set(int32_t iMaterial, int32_t iAmount);
39 };
40 
41 #endif // INC_C4MaterialList
const int32_t C4MaxMaterial
Definition: C4Landscape.h:25
int32_t Amount[C4MaxMaterial]
int32_t Get(int32_t iMaterial)
void Set(int32_t iMaterial, int32_t iAmount)
void Add(int32_t iMaterial, int32_t iAmount)