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 
25 class C4MaterialList
26 {
27 public:
28 	C4MaterialList();
29 	~C4MaterialList();
30 public:
31 	int32_t Amount[C4MaxMaterial];
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
42