PageRenderTime 103ms CodeModel.GetById 60ms app.highlight 12ms RepoModel.GetById 28ms app.codeStats 1ms

/FallingSandpaper/jni/elementproperties.h

http://thelements.googlecode.com/
C++ Header | 269 lines | 201 code | 9 blank | 59 comment | 0 complexity | 7f9cddecd3de540eb1d337ec10cc1b47 MD5 | raw file
  1/*
  2 * elementproperties.h
  3 * ----------------------------------------
  4 * Contains all the arrays that define the element properties.
  5 * When adding a new element, you need to add it to all of
  6 * these arrays as well.
  7 *
  8 * Properties list:
  9 * 		-red
 10 * 		-green
 11 * 		-blue
 12 *
 13 *
 14 */
 15
 16//Include the global macros
 17#include "macros.h"
 18
 19//Define the color of the element
 20unsigned char red[] =   {255, 0,   157,   0,   0, 255, 200, 255, 255, 143, 204, 100, 255, 255, 135, 176,   0, 150, 220, 255,  50, 200,   0,  49, 255};
 21unsigned char green[] = {213, 0,   157,   0, 255,   0, 200, 255, 255,  80,  51, 100, 255, 211,  25, 176,   0, 255, 220, 255, 100, 255, 213,  35, 213};
 22unsigned char blue[] =  {85,  255, 157,   0,   0,   0, 255, 255, 255,  80,   0, 100, 143, 115,  30, 164,   0,  50, 255, 230, 200, 255,  85,   7,  85};
 23
 24//Define each element's fall velocity
 25int	fallvel[] =	{1, 1, 0, 0, 0, -1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, -1, 1, -1, 1, 1, 0, 1, 1, 1};
 26
 27//collision data (LOAD FROM A FILE MAYBE?)
 28//-1 -eraser stuff, shouldn't happen
 29// 0 -solid solid
 30// 1 -solid liquid
 31// 2 -liquid solid -- DNE ANYMORE
 32// 3 -liquid liquid
 33// 4 -water plant
 34// 5 -nonflammable fire
 35// 6 -flammable fire
 36// 7 -fire fire
 37// 8 -ice water
 38// 9 -fire ice
 39//10 -hot ice
 40//11 -oil hot
 41//12 -magma water
 42//13 -stone hot
 43//14 -stone stone
 44//15 -hot C4
 45//16 -hot C4++
 46//17 -magma destructable wall
 47//18 -acid meltable
 48//19 -acid water
 49//20 -steam ice/water
 50//21 -steam steam
 51//22 -steam other
 52//23 -water fire
 53//24 -salt water
 54//25 -salt ice
 55//26 -salt-water plant
 56//27 -sand-hot
 57
 58//Array defining what element custom element 1 acts as in a collision with each element
 59int colliseelement1[TCollision] =
 60{
 61		0, //Sand 0
 62		0, //Water 1
 63		0, //Wall 2
 64		0, //Eraser 3
 65		0, //Plant 4
 66		0, //Fire 5
 67		0, //Ice 6
 68		0, //Generator 7
 69		0, //Spawn 8
 70		0, //Oil 9
 71		0, //Magma 10
 72		0, //Stone 11
 73		0, //C4 12
 74		0, //C++ 13
 75		0, //Fuse 14
 76		0, //Destructable Wall 15
 77		0, //Wind 16
 78		0, //Acid 17
 79		0, //Steam 18
 80		0, //Salt 19
 81		0, //Salt-water 20
 82		0, //Glass 21
 83		0, //Custom 1 22
 84		0, //Custom 2 23
 85		0, //Custom 3 24
 86};
 87
 88//Defines the density of each element
 89int density[] =
 90{
 91		16, //Sand:
 92		10, //Water:
 93		30,	//Wall:
 94		-1,	//Eraser:
 95		15,	//Plant:
 96		-1,	//Fire:
 97		9,	//Ice:
 98		30,	//Generator:
 99		30,	//Spawn:
100		5,	//Oil:
101		15,	//Magma:
102		30,	//Stone:
103		30,	//C4:
104		30,	//C4++:
105		15,	//Fuse:
106		30,	//Wall, Destructible:
107		-1,	//Wind:
108		8,	//Acid:
109		1,	//Steam:
110		30,	//Salt:
111		11,	//Salt-Water:
112		30,	//Glass:
113		1,	//Custom 1:
114		16,	//Mud:
115		1,	//Custom 3:
116};
117//Is it solid (i.e. fallvel == 0)
118//As far as I can tell, it's not used yet
119int solid[] =
120{
121		0,	//Sand:
122		0,	//Water:
123		1,	//Wall:
124		0,	//Eraser:
125		1,	//Plant:
126		0,	//Fire:
127		0,	//Ice:
128		0,	//Generator:
129		0,	//Spawn:
130		0,	//Oil:
131		0,	//Magma:
132		0,	//Stone:
133		0,	//C4:
134		0,	//C4++:
135		1,	//Fuse:
136		1,	//Wall, Destructible:
137		0,	//Wind:
138		0,	//Acid:
139		0,	//Steam:
140		0,	//Salt:
141		0,	//Salt-Water:
142		0,	//Glass:
143		0,	//Custom 1:
144		0,	//Custom 2:
145		0,	//Custom 3:
146};
147//Does it grow
148//As far as I can tell, not used yet
149int growing[] =
150{
151		0, //Sand:
152		0, //Water:
153		0, //Wall:
154		0, //Eraser:
155		0, //Plant: (0, because it has it's own special stuff)
156		0, //Fire:
157		1, //Ice:
158		0, //Generator:
159		0, //Spawn:
160		0, //Oil:
161		0, //Magma:
162		0, //Stone:
163		0, //C4:
164		0, //C4++:
165		0, //Fuse:
166		0, //Wall, Destructible:
167		0, //Wind:
168		0, //Acid:
169		0, //Steam:
170		0, //Salt:
171		0, //Salt-Water:
172		0, //Glass:
173		0, //Custom 1:
174		0, //Custom 2:
175		0, //Custom 3:
176};
177
178//Does it condense
179//As far as I can tell, not implemented yet
180int condensing[] =
181{
182		-1, //Sand:
183		-1,	//Water:
184		-1,	//Wall:
185		-1,	//Eraser:
186		-1,	//Plant:
187		-1,	//Fire:
188		-1,	//Ice:
189		-1,	//Generator:
190		-1,	//Spawn:
191		-1,	//Oil:
192		-1,	//Magma:
193		-1,	//Stone:
194		-1,	//C4:
195		-1,	//C4++:
196		-1,	//Fuse:
197		-1,	//Wall, Destructible:
198		-1,	//Wind:
199		-1,	//Acid:
200		1,	//Steam:
201		-1,	//Salt:
202		-1,	//Salt-Water:
203		-1,	//Glass:
204		-1,	//Custom 1
205		-1,	//Custom 2
206		-1,	//Custom 3
207};
208
209//Does it burn things?
210//As far as I can tell, not implemented yet
211int fireburn[] =
212{
213		0, //Sand:
214		0, //Water:
215		0, //Wall:
216		0, //Eraser:
217		0, //Plant:
218		1, //Fire:
219		0, //Ice:
220		0, //Generator:
221		0, //Spawn:
222		0, //Oil:
223		0, //Magma:
224		0, //Stone:
225		0, //C4:
226		0, //C4++:
227		0, //Fuse:
228		0, //Wall, Destructible:
229		0, //Wind:
230		0, //Acid:
231		0, //Steam:
232		0, //Salt:
233		0, //Salt-Water:
234		0, //Glass:
235		0, //Custom 1
236		0, //Custom 2
237		0, //Custom 3
238};
239
240//How explosive is it?
241//As far as I can tell, not implemented yet
242int exploness[] =
243{
244		0, //Sand:
245		0, //Water:
246		0, //Wall:
247		0, //Eraser:
248		0, //Plant:
249		0, //Fire:
250		0, //Ice:
251		0, //Generator:
252		0, //Spawn:
253		0, //Oil:
254		0, //Magma:
255		0, //Stone:
256		10,//C4:
257		20,//C4++:
258		0, //Fuse:
259		0, //Wall, Destructible:
260		0, //Wind:
261		0, //Acid:
262		0, //Steam:
263		0, //Salt:
264		0, //Salt-Water:
265		0, //Glass:
266		0, //Custom 1
267		0, //Custom 2
268		0, //Custom 3
269};