/TheElements/jni/elementproperties.h

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