ADATA.CPP 100 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361
  1. /*
  2. ** Command & Conquer Red Alert(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /* $Header: /CounterStrike/ADATA.CPP 3 3/07/97 4:27p Joe_bostic $ */
  19. /***********************************************************************************************
  20. *** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
  21. ***********************************************************************************************
  22. * *
  23. * Project Name : Command & Conquer *
  24. * *
  25. * File Name : ADATA.CPP *
  26. * *
  27. * Programmer : Joe L. Bostic *
  28. * *
  29. * Start Date : May 30, 1994 *
  30. * *
  31. * Last Update : July 9, 1996 [JLB] *
  32. * *
  33. *---------------------------------------------------------------------------------------------*
  34. * Functions: *
  35. * AnimTypeClass::AnimTypeClass -- Constructor for animation types. *
  36. * AnimTypeClass::One_Time -- Performs one time action for animation types. *
  37. * AnimTypeClass::Init -- Load any animation artwork that is theater specific. *
  38. * Anim_Name -- Fetches the ASCII name of the animation type specified. *
  39. * AnimTypeClass::As_Reference -- Fetch a reference to the animation type specified. *
  40. * AnimTypeClass::Init_Heap -- Initialize the animation type system. *
  41. * AnimTypeClass::operator new -- Allocate an animation type object from private pool. *
  42. * AnimTypeClass::operator delete -- Returns an anim type class object back to the pool. *
  43. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  44. #include "function.h"
  45. static AnimTypeClass const AtomBomb(
  46. ANIM_ATOM_BLAST, // Animation number.
  47. "ATOMSFX", // Data name of animation.
  48. 72, // Maximum dimension of animation.
  49. 19, // Biggest animation stage.
  50. false, // Theater specific art imagery?
  51. false, // Normalized animation rate?
  52. false, // Uses white translucent table?
  53. true, // Scorches the ground?
  54. true, // Forms a crater?
  55. false, // Sticks to unit in square?
  56. false, // Ground level animation?
  57. false, // Translucent colors in this animation?
  58. false, // Is this a flame thrower animation?
  59. 0, // Damage to apply per tick (fixed point).
  60. 1, // Delay between frames.
  61. 0, // Starting frame number.
  62. 0, // Loop start frame number.
  63. 0, // Ending frame of loop back.
  64. -1, // Number of animation stages.
  65. 0, // Number of times the animation loops.
  66. VOC_NONE, // Sound effect to play.
  67. ANIM_NONE
  68. );
  69. static AnimTypeClass const SputDoor(
  70. ANIM_SPUTDOOR, // Animation number.
  71. "SPUTDOOR", // Data name of animation.
  72. 42, // Maximum dimension of animation.
  73. 1, // Biggest animation stage.
  74. false, // Theater specific art imagery?
  75. true, // Normalized animation rate?
  76. false, // Uses white translucent table?
  77. false, // Scorches the ground?
  78. false, // Forms a crater?
  79. false, // Sticks to unit in square?
  80. false, // Ground level animation?
  81. false, // Translucent colors in this animation?
  82. false, // Is this a flame thrower animation?
  83. 0, // Damage to apply per tick (fixed point).
  84. 1, // Delay between frames.
  85. 0, // Starting frame number.
  86. 0, // Loop start frame number.
  87. -1, // Ending frame of loop back.
  88. -1, // Number of animation stages.
  89. 1, // Number of times the animation loops.
  90. VOC_NONE, // Sound effect to play.
  91. ANIM_NONE
  92. );
  93. // Electrocution death anim from Tesla coil
  94. static AnimTypeClass const ElectricDie(
  95. ANIM_ELECT_DIE, // Animation number.
  96. "ELECTRO", // Data name of animation.
  97. 16, // Maximum dimension of animation.
  98. 0, // Biggest animation stage.
  99. true, // Theater specific art imagery?
  100. false, // Normalized animation rate?
  101. false, // Uses white translucent table?
  102. true, // Scorches the ground?
  103. false, // Forms a crater?
  104. false, // Sticks to unit in square?
  105. true, // Ground level animation?
  106. false, // Translucent colors in this animation?
  107. false, // Is this a flame thrower animation?
  108. 0, // Damage to apply per tick (fixed point).
  109. 1, // Delay between frames.
  110. 0, // Starting frame number.
  111. 0, // Loop start frame number.
  112. 3, // Ending frame of loop back.
  113. -1, // Number of animation stages.
  114. 5, // Number of times the animation loops.
  115. VOC_NONE, // Sound effect to play.
  116. ANIM_FIRE_MED
  117. );
  118. // Electrocution death anim from Tesla coil for dog
  119. static AnimTypeClass const DogElectricDie(
  120. ANIM_DOG_ELECT_DIE, // Animation number.
  121. "ELECTDOG", // Data name of animation.
  122. 17, // Maximum dimension of animation.
  123. 0, // Biggest animation stage.
  124. false, // Theater specific art imagery?
  125. false, // Normalized animation rate?
  126. false, // Uses white translucent table?
  127. true, // Scorches the ground?
  128. false, // Forms a crater?
  129. false, // Sticks to unit in square?
  130. true, // Ground level animation?
  131. false, // Translucent colors in this animation?
  132. false, // Is this a flame thrower animation?
  133. 0, // Damage to apply per tick (fixed point).
  134. 1, // Delay between frames.
  135. 0, // Starting frame number.
  136. 0, // Loop start frame number.
  137. 3, // Ending frame of loop back.
  138. -1, // Number of animation stages.
  139. 5, // Number of times the animation loops.
  140. VOC_NONE, // Sound effect to play.
  141. ANIM_FIRE_MED
  142. );
  143. static AnimTypeClass const SAMN(
  144. ANIM_SAM_N, // Animation number.
  145. "SAMFIRE", // Data name of animation.
  146. 55, // Maximum dimension of animation.
  147. 4, // Biggest animation stage.
  148. false, // Theater specific art imagery?
  149. false, // Normalized animation rate?
  150. false, // Uses white translucent table?
  151. false, // Scorches the ground?
  152. false, // Forms a crater?
  153. false, // Sticks to unit in square?
  154. false, // Ground level animation?
  155. false, // Translucent colors in this animation?
  156. false, // Is this a flame thrower animation?
  157. 0, // Damage to apply per tick (fixed point).
  158. 1, // Delay between frames.
  159. 18*0, // Starting frame number.
  160. 0, // Loop start frame number.
  161. 0, // Ending frame of loop back.
  162. 18, // Number of animation stages.
  163. 0, // Number of times the animation loops.
  164. VOC_NONE, // Sound effect to play.
  165. ANIM_NONE
  166. );
  167. static AnimTypeClass const SAMNW(
  168. ANIM_SAM_NW, // Animation number.
  169. "SAMFIRE", // Data name of animation.
  170. 55, // Maximum dimension of animation.
  171. 22, // Biggest animation stage.
  172. false, // Theater specific art imagery?
  173. false, // Normalized animation rate?
  174. false, // Uses white translucent table?
  175. false, // Scorches the ground?
  176. false, // Forms a crater?
  177. false, // Sticks to unit in square?
  178. false, // Ground level animation?
  179. false, // Translucent colors in this animation?
  180. false, // Is this a flame thrower animation?
  181. 0, // Damage to apply per tick (fixed point).
  182. 1, // Delay between frames.
  183. 18*1, // Starting frame number.
  184. 0, // Loop start frame number.
  185. 0, // Ending frame of loop back.
  186. 18, // Number of animation stages.
  187. 0, // Number of times the animation loops.
  188. VOC_NONE, // Sound effect to play.
  189. ANIM_NONE
  190. );
  191. static AnimTypeClass const SAMW(
  192. ANIM_SAM_W, // Animation number.
  193. "SAMFIRE", // Data name of animation.
  194. 55, // Maximum dimension of animation.
  195. 40, // Biggest animation stage.
  196. false, // Theater specific art imagery?
  197. false, // Normalized animation rate?
  198. false, // Uses white translucent table?
  199. false, // Scorches the ground?
  200. false, // Forms a crater?
  201. false, // Sticks to unit in square?
  202. false, // Ground level animation?
  203. false, // Translucent colors in this animation?
  204. false, // Is this a flame thrower animation?
  205. 0, // Damage to apply per tick (fixed point).
  206. 1, // Delay between frames.
  207. 18*2, // Starting frame number.
  208. 0, // Loop start frame number.
  209. 0, // Ending frame of loop back.
  210. 18, // Number of animation stages.
  211. 0, // Number of times the animation loops.
  212. VOC_NONE, // Sound effect to play.
  213. ANIM_NONE
  214. );
  215. static AnimTypeClass const SAMSW(
  216. ANIM_SAM_SW, // Animation number.
  217. "SAMFIRE", // Data name of animation.
  218. 55, // Maximum dimension of animation.
  219. 58, // Biggest animation stage.
  220. false, // Theater specific art imagery?
  221. false, // Normalized animation rate?
  222. false, // Uses white translucent table?
  223. false, // Scorches the ground?
  224. false, // Forms a crater?
  225. false, // Sticks to unit in square?
  226. false, // Ground level animation?
  227. false, // Translucent colors in this animation?
  228. false, // Is this a flame thrower animation?
  229. 0, // Damage to apply per tick (fixed point).
  230. 1, // Delay between frames.
  231. 18*3, // Starting frame number.
  232. 0, // Loop start frame number.
  233. 0, // Ending frame of loop back.
  234. 18, // Number of animation stages.
  235. 0, // Number of times the animation loops.
  236. VOC_NONE, // Sound effect to play.
  237. ANIM_NONE
  238. );
  239. static AnimTypeClass const SAMS(
  240. ANIM_SAM_S, // Animation number.
  241. "SAMFIRE", // Data name of animation.
  242. 55, // Maximum dimension of animation.
  243. 76, // Biggest animation stage.
  244. false, // Theater specific art imagery?
  245. false, // Normalized animation rate?
  246. false, // Uses white translucent table?
  247. false, // Scorches the ground?
  248. false, // Forms a crater?
  249. false, // Sticks to unit in square?
  250. false, // Ground level animation?
  251. false, // Translucent colors in this animation?
  252. false, // Is this a flame thrower animation?
  253. 0, // Damage to apply per tick (fixed point).
  254. 1, // Delay between frames.
  255. 18*4, // Starting frame number.
  256. 0, // Loop start frame number.
  257. 0, // Ending frame of loop back.
  258. 18, // Number of animation stages.
  259. 0, // Number of times the animation loops.
  260. VOC_NONE, // Sound effect to play.
  261. ANIM_NONE
  262. );
  263. static AnimTypeClass const SAMSE(
  264. ANIM_SAM_SE, // Animation number.
  265. "SAMFIRE", // Data name of animation.
  266. 55, // Maximum dimension of animation.
  267. 94, // Biggest animation stage.
  268. false, // Theater specific art imagery?
  269. false, // Normalized animation rate?
  270. false, // Uses white translucent table?
  271. false, // Scorches the ground?
  272. false, // Forms a crater?
  273. false, // Sticks to unit in square?
  274. false, // Ground level animation?
  275. false, // Translucent colors in this animation?
  276. false, // Is this a flame thrower animation?
  277. 0, // Damage to apply per tick (fixed point).
  278. 1, // Delay between frames.
  279. 18*5, // Starting frame number.
  280. 0, // Loop start frame number.
  281. 0, // Ending frame of loop back.
  282. 18, // Number of animation stages.
  283. 0, // Number of times the animation loops.
  284. VOC_NONE, // Sound effect to play.
  285. ANIM_NONE
  286. );
  287. static AnimTypeClass const SAME(
  288. ANIM_SAM_E, // Animation number.
  289. "SAMFIRE", // Data name of animation.
  290. 55, // Maximum dimension of animation.
  291. 112, // Biggest animation stage.
  292. false, // Theater specific art imagery?
  293. false, // Normalized animation rate?
  294. false, // Uses white translucent table?
  295. false, // Scorches the ground?
  296. false, // Forms a crater?
  297. false, // Sticks to unit in square?
  298. false, // Ground level animation?
  299. false, // Translucent colors in this animation?
  300. false, // Is this a flame thrower animation?
  301. 0, // Damage to apply per tick (fixed point).
  302. 1, // Delay between frames.
  303. 18*6, // Starting frame number.
  304. 0, // Loop start frame number.
  305. 0, // Ending frame of loop back.
  306. 18, // Number of animation stages.
  307. 0, // Number of times the animation loops.
  308. VOC_NONE, // Sound effect to play.
  309. ANIM_NONE
  310. );
  311. static AnimTypeClass const SAMNE(
  312. ANIM_SAM_NE, // Animation number.
  313. "SAMFIRE", // Data name of animation.
  314. 55, // Maximum dimension of animation.
  315. 130, // Biggest animation stage.
  316. false, // Theater specific art imagery?
  317. false, // Normalized animation rate?
  318. false, // Uses white translucent table?
  319. false, // Scorches the ground?
  320. false, // Forms a crater?
  321. false, // Sticks to unit in square?
  322. false, // Ground level animation?
  323. false, // Translucent colors in this animation?
  324. false, // Is this a flame thrower animation?
  325. 0, // Damage to apply per tick (fixed point).
  326. 1, // Delay between frames.
  327. 18*7, // Starting frame number.
  328. 0, // Loop start frame number.
  329. 0, // Ending frame of loop back.
  330. 18, // Number of animation stages.
  331. 0, // Number of times the animation loops.
  332. VOC_NONE, // Sound effect to play.
  333. ANIM_NONE
  334. );
  335. static AnimTypeClass const LZSmoke(
  336. ANIM_LZ_SMOKE, // Animation number.
  337. "SMOKLAND", // Data name of animation.
  338. 32, // Maximum dimension of animation.
  339. 72, // Biggest animation stage.
  340. false, // Theater specific art imagery?
  341. true, // Normalized animation rate?
  342. false, // Uses white translucent table?
  343. false, // Scorches the ground?
  344. false, // Forms a crater?
  345. false, // Sticks to unit in square?
  346. true, // Ground level animation?
  347. false, // Translucent colors in this animation?
  348. false, // Is this a flame thrower animation?
  349. 0, // Damage to apply per tick (fixed point).
  350. 2, // Delay between frames.
  351. 0, // Starting frame number.
  352. 72, // Loop start frame number.
  353. 91, // Ending frame of loop back.
  354. -1, // Number of animation stages.
  355. 255, // Number of times the animation loops.
  356. VOC_NONE, // Sound effect to play.
  357. ANIM_NONE
  358. );
  359. /*
  360. ** Flammable object burning animations. Primarily used on trees and buildings.
  361. */
  362. static AnimTypeClass const BurnSmall(
  363. ANIM_BURN_SMALL, // Animation number.
  364. "BURN-S", // Data name of animation.
  365. 11, // Maximum dimension of animation.
  366. 13, // Biggest animation stage.
  367. false, // Theater specific art imagery?
  368. false, // Normalized animation rate?
  369. false, // Uses white translucent table?
  370. false, // Scorches the ground?
  371. false, // Forms a crater?
  372. false, // Sticks to unit in square?
  373. true, // Ground level animation?
  374. false, // Translucent colors in this animation?
  375. false, // Is this a flame thrower animation?
  376. fixed(1, 32), // Damage to apply per tick (fixed point).
  377. 2, // Delay between frames.
  378. 0, // Starting frame number.
  379. 30, // Loop start frame number.
  380. 62, // Ending frame of loop back.
  381. -1, // Number of animation stages.
  382. 4, // Number of times the animation loops.
  383. VOC_NONE, // Sound effect to play.
  384. ANIM_NONE
  385. );
  386. static AnimTypeClass const BurnMed(
  387. ANIM_BURN_MED, // Animation number.
  388. "BURN-M", // Data name of animation.
  389. 14, // Maximum dimension of animation.
  390. 13, // Biggest animation stage.
  391. false, // Theater specific art imagery?
  392. false, // Normalized animation rate?
  393. false, // Uses white translucent table?
  394. false, // Scorches the ground?
  395. false, // Forms a crater?
  396. false, // Sticks to unit in square?
  397. true, // Ground level animation?
  398. false, // Translucent colors in this animation?
  399. false, // Is this a flame thrower animation?
  400. fixed(1, 16), // Damage to apply per tick (fixed point).
  401. 2, // Delay between frames.
  402. 0, // Starting frame number.
  403. 30, // Loop start frame number.
  404. 62, // Ending frame of loop back.
  405. -1, // Number of animation stages.
  406. 4, // Number of times the animation loops.
  407. VOC_NONE, // Sound effect to play.
  408. ANIM_NONE
  409. );
  410. static AnimTypeClass const BurnBig(
  411. ANIM_BURN_BIG, // Animation number.
  412. "BURN-L", // Data name of animation.
  413. 23, // Maximum dimension of animation.
  414. 13, // Biggest animation stage.
  415. false, // Theater specific art imagery?
  416. false, // Normalized animation rate?
  417. false, // Uses white translucent table?
  418. true, // Scorches the ground?
  419. false, // Forms a crater?
  420. false, // Sticks to unit in square?
  421. true, // Ground level animation?
  422. false, // Translucent colors in this animation?
  423. false, // Is this a flame thrower animation?
  424. fixed(1, 10), // Damage to apply per tick (fixed point).
  425. 2, // Delay between frames.
  426. 0, // Starting frame number.
  427. 30, // Loop start frame number.
  428. 62, // Ending frame of loop back.
  429. -1, // Number of animation stages.
  430. 4, // Number of times the animation loops.
  431. VOC_NONE, // Sound effect to play.
  432. ANIM_NONE
  433. );
  434. /*
  435. ** Flammable object burning animations that trail into smoke. Used for
  436. ** buildings and the gunboat.
  437. */
  438. static AnimTypeClass const OnFireSmall(
  439. ANIM_ON_FIRE_SMALL, // Animation number.
  440. "BURN-S", // Data name of animation.
  441. 11, // Maximum dimension of animation.
  442. 13, // Biggest animation stage.
  443. false, // Theater specific art imagery?
  444. false, // Normalized animation rate?
  445. false, // Uses white translucent table?
  446. false, // Scorches the ground?
  447. false, // Forms a crater?
  448. false, // Sticks to unit in square?
  449. true, // Ground level animation?
  450. false, // Translucent colors in this animation?
  451. false, // Is this a flame thrower animation?
  452. fixed(1, 32), // Damage to apply per tick (fixed point).
  453. 2, // Delay between frames.
  454. 0, // Starting frame number.
  455. 30, // Loop start frame number.
  456. 62, // Ending frame of loop back.
  457. -1, // Number of animation stages.
  458. 4, // Number of times the animation loops.
  459. VOC_NONE, // Sound effect to play.
  460. ANIM_SMOKE_M
  461. );
  462. static AnimTypeClass const OnFireMed(
  463. ANIM_ON_FIRE_MED, // Animation number.
  464. "BURN-M", // Data name of animation.
  465. 14, // Maximum dimension of animation.
  466. 13, // Biggest animation stage.
  467. false, // Theater specific art imagery?
  468. false, // Normalized animation rate?
  469. false, // Uses white translucent table?
  470. false, // Scorches the ground?
  471. false, // Forms a crater?
  472. false, // Sticks to unit in square?
  473. true, // Ground level animation?
  474. false, // Translucent colors in this animation?
  475. false, // Is this a flame thrower animation?
  476. fixed(1, 16), // Damage to apply per tick (fixed point).
  477. 2, // Delay between frames.
  478. 0, // Starting frame number.
  479. 30, // Loop start frame number.
  480. 62, // Ending frame of loop back.
  481. -1, // Number of animation stages.
  482. 4, // Number of times the animation loops.
  483. VOC_NONE, // Sound effect to play.
  484. ANIM_ON_FIRE_SMALL
  485. );
  486. static AnimTypeClass const OnFireBig(
  487. ANIM_ON_FIRE_BIG, // Animation number.
  488. "BURN-L", // Data name of animation.
  489. 23, // Maximum dimension of animation.
  490. 13, // Biggest animation stage.
  491. false, // Theater specific art imagery?
  492. false, // Normalized animation rate?
  493. false, // Uses white translucent table?
  494. true, // Scorches the ground?
  495. false, // Forms a crater?
  496. false, // Sticks to unit in square?
  497. true, // Ground level animation?
  498. false, // Translucent colors in this animation?
  499. false, // Is this a flame thrower animation?
  500. fixed(1, 10), // Damage to apply per tick (fixed point).
  501. 2, // Delay between frames.
  502. 0, // Starting frame number.
  503. 30, // Loop start frame number.
  504. 62, // Ending frame of loop back.
  505. -1, // Number of animation stages.
  506. 4, // Number of times the animation loops.
  507. VOC_NONE, // Sound effect to play.
  508. ANIM_ON_FIRE_MED
  509. );
  510. static AnimTypeClass const Parachute(
  511. ANIM_PARACHUTE, // Animation number.
  512. "PARACH", // Data name of animation.
  513. 32, // Maximum dimension of animation.
  514. 15, // Biggest animation stage.
  515. false, // Theater specific art imagery?
  516. false, // Normalized animation rate?
  517. false, // Uses white translucent table?
  518. false, // Scorches the ground?
  519. false, // Forms a crater?
  520. false, // Sticks to unit in square?
  521. false, // Ground level animation?
  522. false, // Translucent colors in this animation?
  523. false, // Is this a flame thrower animation?
  524. 0, // Damage to apply per tick (fixed point).
  525. 4, // Delay between frames.
  526. 0, // Starting frame number.
  527. 7, // Loop start frame number.
  528. -1, // Loopback frame number.
  529. -1, // Number of animation stages.
  530. 15, // Number of times the animation loops.
  531. VOC_NONE, // Sound effect to play.
  532. ANIM_NONE
  533. );
  534. static AnimTypeClass const ParaBomb(
  535. ANIM_PARA_BOMB, // Animation number.
  536. "PARABOMB", // Data name of animation.
  537. 32, // Maximum dimension of animation.
  538. 8, // Biggest animation stage.
  539. false, // Theater specific art imagery?
  540. false, // Normalized animation rate?
  541. false, // Uses white translucent table?
  542. false, // Scorches the ground?
  543. false, // Forms a crater?
  544. false, // Sticks to unit in square?
  545. false, // Ground level animation?
  546. false, // Translucent colors in this animation?
  547. false, // Is this a flame thrower animation?
  548. 0, // Damage to apply per tick (fixed point).
  549. 4, // Delay between frames.
  550. 0, // Starting frame number.
  551. 7, // Loop start frame number.
  552. -1, // Loopback frame number.
  553. -1, // Number of animation stages.
  554. 15, // Number of times the animation loops.
  555. VOC_NONE, // Sound effect to play.
  556. ANIM_NONE
  557. );
  558. static AnimTypeClass const FBall1(
  559. ANIM_FBALL1, // Animation number.
  560. "FBALL1", // Data name of animation.
  561. 67, // Maximum dimension of animation.
  562. 6, // Biggest animation stage.
  563. false, // Theater specific art imagery?
  564. true, // Normalized animation rate?
  565. false, // Uses white translucent table?
  566. false, // Scorches the ground?
  567. true, // Forms a crater?
  568. false, // Sticks to unit in square?
  569. false, // Ground level animation?
  570. false, // Translucent colors in this animation?
  571. false, // Is this a flame thrower animation?
  572. 0, // Damage to apply per tick (fixed point).
  573. 1, // Delay between frames.
  574. 0, // Starting frame number.
  575. 0, // Loop start frame number.
  576. -1, // Ending frame of loop back.
  577. -1, // Number of animation stages.
  578. 1, // Number of times the animation loops.
  579. VOC_KABOOM25, // Sound effect to play.
  580. ANIM_NONE
  581. );
  582. static AnimTypeClass const Frag1(
  583. ANIM_FRAG1, // Animation number.
  584. "FRAG1", // Data name of animation.
  585. 45, // Maximum dimension of animation.
  586. 3, // Biggest animation stage.
  587. false, // Theater specific art imagery?
  588. true, // Normalized animation rate?
  589. false, // Uses white translucent table?
  590. false, // Scorches the ground?
  591. true, // Forms a crater?
  592. true, // Sticks to unit in square?
  593. true, // Ground level animation?
  594. false, // Translucent colors in this animation?
  595. false, // Is this a flame thrower animation?
  596. 0, // Damage to apply per tick (fixed point).
  597. 1, // Delay between frames.
  598. 0, // Starting frame number.
  599. 0, // Loop start frame number.
  600. -1, // Ending frame of loop back.
  601. -1, // Number of animation stages.
  602. 1, // Number of times the animation loops.
  603. VOC_KABOOM30, // Sound effect to play.
  604. ANIM_NONE
  605. );
  606. static AnimTypeClass const VehHit1(
  607. ANIM_VEH_HIT1, // Animation number.
  608. "VEH-HIT1", // Data name of animation.
  609. 30, // Maximum dimension of animation.
  610. 4, // Biggest animation stage.
  611. false, // Theater specific art imagery?
  612. true, // Normalized animation rate?
  613. false, // Uses white translucent table?
  614. false, // Scorches the ground?
  615. true, // Forms a crater?
  616. true, // Sticks to unit in square?
  617. false, // Ground level animation?
  618. false, // Translucent colors in this animation?
  619. false, // Is this a flame thrower animation?
  620. 0, // Damage to apply per tick (fixed point).
  621. 1, // Delay between frames.
  622. 0, // Starting frame number.
  623. 0, // Loop start frame number.
  624. -1, // Ending frame of loop back.
  625. -1, // Number of animation stages.
  626. 1, // Number of times the animation loops.
  627. VOC_KABOOM25, // Sound effect to play.
  628. ANIM_NONE
  629. );
  630. static AnimTypeClass const VehHit2(
  631. ANIM_VEH_HIT2, // Animation number.
  632. "VEH-HIT2", // Data name of animation.
  633. 21, // Maximum dimension of animation.
  634. 1, // Biggest animation stage.
  635. false, // Theater specific art imagery?
  636. true, // Normalized animation rate?
  637. false, // Uses white translucent table?
  638. false, // Scorches the ground?
  639. true, // Forms a crater?
  640. true, // Sticks to unit in square?
  641. false, // Ground level animation?
  642. false, // Translucent colors in this animation?
  643. false, // Is this a flame thrower animation?
  644. 0, // Damage to apply per tick (fixed point).
  645. 1, // Delay between frames.
  646. 0, // Starting frame number.
  647. 0, // Loop start frame number.
  648. -1, // Ending frame of loop back.
  649. -1, // Number of animation stages.
  650. 1, // Number of times the animation loops.
  651. VOC_KABOOM12, // Sound effect to play.
  652. ANIM_NONE
  653. );
  654. static AnimTypeClass const VehHit3(
  655. ANIM_VEH_HIT3, // Animation number.
  656. "VEH-HIT3", // Data name of animation.
  657. 19, // Maximum dimension of animation.
  658. 3, // Biggest animation stage.
  659. false, // Theater specific art imagery?
  660. true, // Normalized animation rate?
  661. false, // Uses white translucent table?
  662. false, // Scorches the ground?
  663. false, // Forms a crater?
  664. true, // Sticks to unit in square?
  665. false, // Ground level animation?
  666. false, // Translucent colors in this animation?
  667. false, // Is this a flame thrower animation?
  668. 0, // Damage to apply per tick (fixed point).
  669. 1, // Delay between frames.
  670. 0, // Starting frame number.
  671. 0, // Loop start frame number.
  672. -1, // Ending frame of loop back.
  673. -1, // Number of animation stages.
  674. 1, // Number of times the animation loops.
  675. VOC_KABOOM12, // Sound effect to play.
  676. ANIM_NONE
  677. );
  678. static AnimTypeClass const ArtExp1(
  679. ANIM_ART_EXP1, // Animation number.
  680. "ART-EXP1", // Data name of animation.
  681. 41, // Maximum dimension of animation.
  682. 1, // Biggest animation stage.
  683. false, // Theater specific art imagery?
  684. true, // Normalized animation rate?
  685. false, // Uses white translucent table?
  686. false, // Scorches the ground?
  687. true, // Forms a crater?
  688. false, // Sticks to unit in square?
  689. false, // Ground level animation?
  690. false, // Translucent colors in this animation?
  691. false, // Is this a flame thrower animation?
  692. 0, // Damage to apply per tick (fixed point).
  693. 1, // Delay between frames.
  694. 0, // Starting frame number.
  695. 0, // Loop start frame number.
  696. -1, // Ending frame of loop back.
  697. -1, // Number of animation stages.
  698. 1, // Number of times the animation loops.
  699. VOC_KABOOM22, // Sound effect to play.
  700. ANIM_NONE
  701. );
  702. static AnimTypeClass const Napalm1(
  703. ANIM_NAPALM1, // Animation number.
  704. "NAPALM1", // Data name of animation.
  705. 21, // Maximum dimension of animation.
  706. 5, // Biggest animation stage.
  707. false, // Theater specific art imagery?
  708. false, // Normalized animation rate?
  709. false, // Uses white translucent table?
  710. true, // Scorches the ground?
  711. false, // Forms a crater?
  712. false, // Sticks to unit in square?
  713. false, // Ground level animation?
  714. false, // Translucent colors in this animation?
  715. false, // Is this a flame thrower animation?
  716. 0, // Damage to apply per tick (fixed point).
  717. 1, // Delay between frames.
  718. 0, // Starting frame number.
  719. 0, // Loop start frame number.
  720. -1, // Ending frame of loop back.
  721. -1, // Number of animation stages.
  722. 1, // Number of times the animation loops.
  723. VOC_FIRE_EXPLODE, // Sound effect to play.
  724. ANIM_NONE
  725. );
  726. static AnimTypeClass const Napalm2(
  727. ANIM_NAPALM2, // Animation number.
  728. "NAPALM2", // Data name of animation.
  729. 41, // Maximum dimension of animation.
  730. 5, // Biggest animation stage.
  731. false, // Theater specific art imagery?
  732. false, // Normalized animation rate?
  733. false, // Uses white translucent table?
  734. true, // Scorches the ground?
  735. false, // Forms a crater?
  736. false, // Sticks to unit in square?
  737. false, // Ground level animation?
  738. false, // Translucent colors in this animation?
  739. false, // Is this a flame thrower animation?
  740. 0, // Damage to apply per tick (fixed point).
  741. 1, // Delay between frames.
  742. 0, // Starting frame number.
  743. 0, // Loop start frame number.
  744. -1, // Ending frame of loop back.
  745. -1, // Number of animation stages.
  746. 1, // Number of times the animation loops.
  747. VOC_FIRE_EXPLODE, // Sound effect to play.
  748. ANIM_NONE
  749. );
  750. static AnimTypeClass const Napalm3(
  751. ANIM_NAPALM3, // Animation number.
  752. "NAPALM3", // Data name of animation.
  753. 78, // Maximum dimension of animation.
  754. 5, // Biggest animation stage.
  755. false, // Theater specific art imagery?
  756. false, // Normalized animation rate?
  757. false, // Uses white translucent table?
  758. true, // Scorches the ground?
  759. false, // Forms a crater?
  760. false, // Sticks to unit in square?
  761. false, // Ground level animation?
  762. false, // Translucent colors in this animation?
  763. false, // Is this a flame thrower animation?
  764. 0, // Damage to apply per tick (fixed point).
  765. 1, // Delay between frames.
  766. 0, // Starting frame number.
  767. 0, // Loop start frame number.
  768. -1, // Ending frame of loop back.
  769. -1, // Number of animation stages.
  770. 1, // Number of times the animation loops.
  771. VOC_FIRE_LAUNCH, // Sound effect to play.
  772. ANIM_NONE
  773. );
  774. static AnimTypeClass const SmokePuff(
  775. ANIM_SMOKE_PUFF, // Animation number.
  776. "SMOKEY", // Data name of animation.
  777. 24, // Maximum dimension of animation.
  778. 2, // Biggest animation stage.
  779. false, // Theater specific art imagery?
  780. true, // Normalized animation rate?
  781. false, // Uses white translucent table?
  782. false, // Scorches the ground?
  783. false, // Forms a crater?
  784. false, // Sticks to unit in square?
  785. false, // Ground level animation?
  786. true, // Translucent colors in this animation?
  787. false, // Is this a flame thrower animation?
  788. 0, // Damage to apply per tick (fixed point).
  789. 1, // Delay between frames.
  790. 0, // Starting frame number.
  791. 0, // Loop start frame number.
  792. -1, // Ending frame of loop back.
  793. -1, // Number of animation stages.
  794. 1, // Number of times the animation loops.
  795. VOC_NONE, // Sound effect to play.
  796. ANIM_NONE
  797. );
  798. static AnimTypeClass const FireBallFade(
  799. ANIM_FBALL_FADE, // Animation number.
  800. "FB2", // Data name of animation.
  801. 24, // Maximum dimension of animation.
  802. 1, // Biggest animation stage.
  803. false, // Theater specific art imagery?
  804. true, // Normalized animation rate?
  805. false, // Uses white translucent table?
  806. false, // Scorches the ground?
  807. false, // Forms a crater?
  808. false, // Sticks to unit in square?
  809. false, // Ground level animation?
  810. false, // Translucent colors in this animation?
  811. false, // Is this a flame thrower animation?
  812. 0, // Damage to apply per tick (fixed point).
  813. 1, // Delay between frames.
  814. 0, // Starting frame number.
  815. 0, // Loop start frame number.
  816. -1, // Ending frame of loop back.
  817. -1, // Number of animation stages.
  818. 1, // Number of times the animation loops.
  819. VOC_NONE, // Sound effect to play.
  820. ANIM_NONE
  821. );
  822. static AnimTypeClass const Piff(
  823. ANIM_PIFF, // Animation number.
  824. "PIFF", // Data name of animation.
  825. 13, // Maximum dimension of animation.
  826. 1, // Biggest animation stage.
  827. false, // Theater specific art imagery?
  828. true, // Normalized animation rate?
  829. false, // Uses white translucent table?
  830. false, // Scorches the ground?
  831. false, // Forms a crater?
  832. false, // Sticks to unit in square?
  833. false, // Ground level animation?
  834. false, // Translucent colors in this animation?
  835. false, // Is this a flame thrower animation?
  836. 0, // Damage to apply per tick (fixed point).
  837. 1, // Delay between frames.
  838. 0, // Starting frame number.
  839. 0, // Loop start frame number.
  840. -1, // Ending frame of loop back.
  841. -1, // Number of animation stages.
  842. 1, // Number of times the animation loops.
  843. VOC_NONE, // Sound effect to play.
  844. ANIM_NONE
  845. );
  846. static AnimTypeClass const PiffPiff(
  847. ANIM_PIFFPIFF, // Animation number.
  848. "PIFFPIFF", // Data name of animation.
  849. 20, // Maximum dimension of animation.
  850. 2, // Biggest animation stage.
  851. false, // Theater specific art imagery?
  852. true, // Normalized animation rate?
  853. false, // Uses white translucent table?
  854. false, // Scorches the ground?
  855. false, // Forms a crater?
  856. false, // Sticks to unit in square?
  857. false, // Ground level animation?
  858. false, // Translucent colors in this animation?
  859. false, // Is this a flame thrower animation?
  860. 0, // Damage to apply per tick (fixed point).
  861. 1, // Delay between frames.
  862. 0, // Starting frame number.
  863. 0, // Loop start frame number.
  864. -1, // Ending frame of loop back.
  865. -1, // Number of animation stages.
  866. 1, // Number of times the animation loops.
  867. VOC_NONE, // Sound effect to play.
  868. ANIM_NONE
  869. );
  870. static AnimTypeClass const Fire3(
  871. ANIM_FIRE_SMALL, // Animation number.
  872. "FIRE3", // Data name of animation.
  873. 23, // Maximum dimension of animation.
  874. 0, // Biggest animation stage.
  875. false, // Theater specific art imagery?
  876. false, // Normalized animation rate?
  877. false, // Uses white translucent table?
  878. false, // Scorches the ground?
  879. false, // Forms a crater?
  880. false, // Sticks to unit in square?
  881. true, // Ground level animation?
  882. false, // Translucent colors in this animation?
  883. false, // Is this a flame thrower animation?
  884. fixed(1, 32), // Damage to apply per tick (fixed point).
  885. 1, // Delay between frames.
  886. 0, // Starting frame number.
  887. 0, // Loop start frame number.
  888. -1, // Ending frame of loop back.
  889. -1, // Number of animation stages.
  890. 2, // Number of times the animation loops.
  891. VOC_NONE, // Sound effect to play.
  892. ANIM_NONE
  893. );
  894. static AnimTypeClass const Fire1(
  895. ANIM_FIRE_MED2, // Animation number.
  896. "FIRE1", // Data name of animation.
  897. 23, // Maximum dimension of animation.
  898. 0, // Biggest animation stage.
  899. false, // Theater specific art imagery?
  900. false, // Normalized animation rate?
  901. false, // Uses white translucent table?
  902. true, // Scorches the ground?
  903. false, // Forms a crater?
  904. false, // Sticks to unit in square?
  905. true, // Ground level animation?
  906. false, // Translucent colors in this animation?
  907. false, // Is this a flame thrower animation?
  908. fixed(1, 16), // Damage to apply per tick (fixed point).
  909. 1, // Delay between frames.
  910. 0, // Starting frame number.
  911. 0, // Loop start frame number.
  912. -1, // Ending frame of loop back.
  913. -1, // Number of animation stages.
  914. 3, // Number of times the animation loops.
  915. VOC_NONE, // Sound effect to play.
  916. ANIM_NONE
  917. );
  918. static AnimTypeClass const Fire4(
  919. ANIM_FIRE_TINY, // Animation number.
  920. "FIRE4", // Data name of animation.
  921. 7, // Maximum dimension of animation.
  922. 0, // Biggest animation stage.
  923. false, // Theater specific art imagery?
  924. false, // Normalized animation rate?
  925. false, // Uses white translucent table?
  926. false, // Scorches the ground?
  927. false, // Forms a crater?
  928. false, // Sticks to unit in square?
  929. true, // Ground level animation?
  930. false, // Translucent colors in this animation?
  931. false, // Is this a flame thrower animation?
  932. fixed(1, 32), // Damage to apply per tick (fixed point).
  933. 1, // Delay between frames.
  934. 0, // Starting frame number.
  935. 0, // Loop start frame number.
  936. -1, // Ending frame of loop back.
  937. -1, // Number of animation stages.
  938. 3, // Number of times the animation loops.
  939. VOC_NONE, // Sound effect to play.
  940. ANIM_NONE
  941. );
  942. static AnimTypeClass const Fire2(
  943. ANIM_FIRE_MED, // Animation number.
  944. "FIRE2", // Data name of animation.
  945. 23, // Maximum dimension of animation.
  946. 0, // Biggest animation stage.
  947. false, // Theater specific art imagery?
  948. false, // Normalized animation rate?
  949. false, // Uses white translucent table?
  950. true, // Scorches the ground?
  951. false, // Forms a crater?
  952. false, // Sticks to unit in square?
  953. true, // Ground level animation?
  954. false, // Translucent colors in this animation?
  955. false, // Is this a flame thrower animation?
  956. fixed(1, 16), // Damage to apply per tick (fixed point).
  957. 1, // Delay between frames.
  958. 0, // Starting frame number.
  959. 0, // Loop start frame number.
  960. -1, // Ending frame of loop back.
  961. -1, // Number of animation stages.
  962. 3, // Number of times the animation loops.
  963. VOC_NONE, // Sound effect to play.
  964. ANIM_NONE
  965. );
  966. static AnimTypeClass const OilFieldBurn(
  967. ANIM_OILFIELD_BURN, // Animation number.
  968. "FLMSPT", // Data name of animation.
  969. 42, // Maximum dimension of animation.
  970. 58, // Biggest animation stage.
  971. false, // Theater specific art imagery?
  972. true, // Normalized animation rate?
  973. false, // Uses white translucent table?
  974. false, // Scorches the ground?
  975. false, // Forms a crater?
  976. false, // Sticks to unit in square?
  977. true, // Ground level animation?
  978. false, // Translucent colors in this animation?
  979. false, // Is this a flame thrower animation?
  980. 0, // Damage to apply per tick (fixed point).
  981. 1, // Delay between frames.
  982. 0, // Starting frame number.
  983. 33, // Loop start frame number.
  984. 99, // Ending frame of loop back.
  985. 66, // Number of animation stages.
  986. 65535, // Number of times the animation loops.
  987. VOC_NONE, // Sound effect to play.
  988. ANIM_NONE
  989. );
  990. static AnimTypeClass const Gunfire(
  991. ANIM_MUZZLE_FLASH, // Animation number.
  992. "GUNFIRE", // Data name of animation.
  993. 16, // Maximum dimension of animation.
  994. 0, // Biggest animation stage.
  995. false, // Theater specific art imagery?
  996. false, // Normalized animation rate?
  997. false, // Uses white translucent table?
  998. false, // Scorches the ground?
  999. false, // Forms a crater?
  1000. false, // Sticks to unit in square?
  1001. true, // Ground level animation?
  1002. true, // Translucent colors in this animation?
  1003. false, // Is this a flame thrower animation?
  1004. 0, // Damage to apply per tick (fixed point).
  1005. 1, // Delay between frames.
  1006. 0, // Starting frame number.
  1007. 0, // Loop start frame number.
  1008. 0, // Number of times the animation loops.
  1009. 1, // Number of animation stages.
  1010. 1, // Ending frame of loop back.
  1011. VOC_NONE, // Sound effect to play.
  1012. ANIM_NONE
  1013. );
  1014. static AnimTypeClass const SmokeM(
  1015. ANIM_SMOKE_M, // Animation number.
  1016. "SMOKE_M", // Data name of animation.
  1017. 28, // Maximum dimension of animation.
  1018. 30, // Biggest animation stage.
  1019. false, // Theater specific art imagery?
  1020. true, // Normalized animation rate?
  1021. false, // Uses white translucent table?
  1022. false, // Scorches the ground?
  1023. false, // Forms a crater?
  1024. false, // Sticks to unit in square?
  1025. true, // Ground level animation?
  1026. false, // Translucent colors in this animation?
  1027. false, // Is this a flame thrower animation?
  1028. 0, // Damage to apply per tick (fixed point).
  1029. 1, // Delay between frames.
  1030. 0, // Starting frame number.
  1031. 67, // Loop start frame number.
  1032. -1, // Loopback frame number.
  1033. -1, // Number of animation stages.
  1034. 6, // Number of times the animation loops.
  1035. VOC_NONE, // Sound effect to play.
  1036. ANIM_NONE
  1037. );
  1038. /*
  1039. ** Mini-gun fire effect -- used by guard towers.
  1040. */
  1041. static AnimTypeClass const GUNN(
  1042. ANIM_GUN_N, // Animation number.
  1043. "MINIGUN", // Data name of animation.
  1044. 18, // Maximum dimension of animation.
  1045. 0, // Biggest animation stage.
  1046. false, // Theater specific art imagery?
  1047. false, // Normalized animation rate?
  1048. false, // Uses white translucent table?
  1049. false, // Scorches the ground?
  1050. false, // Forms a crater?
  1051. false, // Sticks to unit in square?
  1052. false, // Ground level animation?
  1053. false, // Translucent colors in this animation?
  1054. false, // Is this a flame thrower animation?
  1055. 0, // Damage to apply per tick (fixed point).
  1056. 1, // Delay between frames.
  1057. 0, // Starting frame number.
  1058. 0, // Loop start frame number.
  1059. 0, // Number of times the animation loops.
  1060. 6, // Number of animation stages.
  1061. 0, // Ending frame of loop back.
  1062. VOC_NONE, // Sound effect to play.
  1063. ANIM_NONE
  1064. );
  1065. static AnimTypeClass const GUNNW(
  1066. ANIM_GUN_NW, // Animation number.
  1067. "MINIGUN", // Data name of animation.
  1068. 18, // Maximum dimension of animation.
  1069. 0, // Biggest animation stage.
  1070. false, // Theater specific art imagery?
  1071. false, // Normalized animation rate?
  1072. false, // Uses white translucent table?
  1073. false, // Scorches the ground?
  1074. false, // Forms a crater?
  1075. false, // Sticks to unit in square?
  1076. false, // Ground level animation?
  1077. false, // Translucent colors in this animation?
  1078. false, // Is this a flame thrower animation?
  1079. 0, // Damage to apply per tick (fixed point).
  1080. 1, // Delay between frames.
  1081. 6, // Starting frame number.
  1082. 0, // Loop start frame number.
  1083. 0, // Number of times the animation loops.
  1084. 6, // Number of animation stages.
  1085. 0, // Ending frame of loop back.
  1086. VOC_NONE, // Sound effect to play.
  1087. ANIM_NONE
  1088. );
  1089. static AnimTypeClass const GUNW(
  1090. ANIM_GUN_W, // Animation number.
  1091. "MINIGUN", // Data name of animation.
  1092. 18, // Maximum dimension of animation.
  1093. 0, // Biggest animation stage.
  1094. false, // Theater specific art imagery?
  1095. false, // Normalized animation rate?
  1096. false, // Uses white translucent table?
  1097. false, // Scorches the ground?
  1098. false, // Forms a crater?
  1099. false, // Sticks to unit in square?
  1100. false, // Ground level animation?
  1101. false, // Translucent colors in this animation?
  1102. false, // Is this a flame thrower animation?
  1103. 0, // Damage to apply per tick (fixed point).
  1104. 1, // Delay between frames.
  1105. 12, // Starting frame number.
  1106. 0, // Loop start frame number.
  1107. 0, // Number of times the animation loops.
  1108. 6, // Number of animation stages.
  1109. 0, // Ending frame of loop back.
  1110. VOC_NONE, // Sound effect to play.
  1111. ANIM_NONE
  1112. );
  1113. static AnimTypeClass const GUNSW(
  1114. ANIM_GUN_SW, // Animation number.
  1115. "MINIGUN", // Data name of animation.
  1116. 18, // Maximum dimension of animation.
  1117. 0, // Biggest animation stage.
  1118. false, // Theater specific art imagery?
  1119. false, // Normalized animation rate?
  1120. false, // Uses white translucent table?
  1121. false, // Scorches the ground?
  1122. false, // Forms a crater?
  1123. false, // Sticks to unit in square?
  1124. false, // Ground level animation?
  1125. false, // Translucent colors in this animation?
  1126. false, // Is this a flame thrower animation?
  1127. 0, // Damage to apply per tick (fixed point).
  1128. 1, // Delay between frames.
  1129. 18, // Starting frame number.
  1130. 0, // Loop start frame number.
  1131. 0, // Number of times the animation loops.
  1132. 6, // Number of animation stages.
  1133. 0, // Ending frame of loop back.
  1134. VOC_NONE, // Sound effect to play.
  1135. ANIM_NONE
  1136. );
  1137. static AnimTypeClass const GUNS(
  1138. ANIM_GUN_S, // Animation number.
  1139. "MINIGUN", // Data name of animation.
  1140. 18, // Maximum dimension of animation.
  1141. 0, // Biggest animation stage.
  1142. false, // Theater specific art imagery?
  1143. false, // Normalized animation rate?
  1144. false, // Uses white translucent table?
  1145. false, // Scorches the ground?
  1146. false, // Forms a crater?
  1147. false, // Sticks to unit in square?
  1148. false, // Ground level animation?
  1149. false, // Translucent colors in this animation?
  1150. false, // Is this a flame thrower animation?
  1151. 0, // Damage to apply per tick (fixed point).
  1152. 1, // Delay between frames.
  1153. 24, // Starting frame number.
  1154. 0, // Loop start frame number.
  1155. 0, // Number of times the animation loops.
  1156. 6, // Number of animation stages.
  1157. 0, // Ending frame of loop back.
  1158. VOC_NONE, // Sound effect to play.
  1159. ANIM_NONE
  1160. );
  1161. static AnimTypeClass const GUNSE(
  1162. ANIM_GUN_SE, // Animation number.
  1163. "MINIGUN", // Data name of animation.
  1164. 18, // Maximum dimension of animation.
  1165. 0, // Biggest animation stage.
  1166. false, // Theater specific art imagery?
  1167. false, // Normalized animation rate?
  1168. false, // Uses white translucent table?
  1169. false, // Scorches the ground?
  1170. false, // Forms a crater?
  1171. false, // Sticks to unit in square?
  1172. false, // Ground level animation?
  1173. false, // Translucent colors in this animation?
  1174. false, // Is this a flame thrower animation?
  1175. 0, // Damage to apply per tick (fixed point).
  1176. 1, // Delay between frames.
  1177. 30, // Starting frame number.
  1178. 0, // Loop start frame number.
  1179. 0, // Number of times the animation loops.
  1180. 6, // Number of animation stages.
  1181. 0, // Ending frame of loop back.
  1182. VOC_NONE, // Sound effect to play.
  1183. ANIM_NONE
  1184. );
  1185. static AnimTypeClass const GUNE(
  1186. ANIM_GUN_E, // Animation number.
  1187. "MINIGUN", // Data name of animation.
  1188. 18, // Maximum dimension of animation.
  1189. 0, // Biggest animation stage.
  1190. false, // Theater specific art imagery?
  1191. false, // Normalized animation rate?
  1192. false, // Uses white translucent table?
  1193. false, // Scorches the ground?
  1194. false, // Forms a crater?
  1195. false, // Sticks to unit in square?
  1196. false, // Ground level animation?
  1197. false, // Translucent colors in this animation?
  1198. false, // Is this a flame thrower animation?
  1199. 0, // Damage to apply per tick (fixed point).
  1200. 1, // Delay between frames.
  1201. 36, // Starting frame number.
  1202. 0, // Loop start frame number.
  1203. 0, // Number of times the animation loops.
  1204. 6, // Number of animation stages.
  1205. 0, // Ending frame of loop back.
  1206. VOC_NONE, // Sound effect to play.
  1207. ANIM_NONE
  1208. );
  1209. static AnimTypeClass const GUNNE(
  1210. ANIM_GUN_NE, // Animation number.
  1211. "MINIGUN", // Data name of animation.
  1212. 18, // Maximum dimension of animation.
  1213. 0, // Biggest animation stage.
  1214. false, // Theater specific art imagery?
  1215. false, // Normalized animation rate?
  1216. false, // Uses white translucent table?
  1217. false, // Scorches the ground?
  1218. false, // Forms a crater?
  1219. false, // Sticks to unit in square?
  1220. false, // Ground level animation?
  1221. false, // Translucent colors in this animation?
  1222. false, // Is this a flame thrower animation?
  1223. 0, // Damage to apply per tick (fixed point).
  1224. 1, // Delay between frames.
  1225. 42, // Starting frame number.
  1226. 0, // Loop start frame number.
  1227. 0, // Number of times the animation loops.
  1228. 6, // Number of animation stages.
  1229. 0, // Ending frame of loop back.
  1230. VOC_NONE, // Sound effect to play.
  1231. ANIM_NONE
  1232. );
  1233. static AnimTypeClass const CDeviator(
  1234. ANIM_CRATE_DEVIATOR, // Animation number.
  1235. "DEVIATOR", // Data name of animation.
  1236. 48, // Maximum dimension of animation.
  1237. 0, // Biggest animation stage.
  1238. false, // Theater specific art imagery?
  1239. true, // Normalized animation rate?
  1240. false, // Uses white translucent table?
  1241. false, // Scorches the ground?
  1242. false, // Forms a crater?
  1243. false, // Sticks to unit in square?
  1244. false, // Ground level animation?
  1245. false, // Translucent colors in this animation?
  1246. false, // Is this a flame thrower animation?
  1247. 0, // Damage to apply per tick (fixed point).
  1248. 2, // Delay between frames.
  1249. 0, // Starting frame number.
  1250. 0, // Loop start frame number.
  1251. 0, // Ending frame of loop back.
  1252. -1, // Number of animation stages.
  1253. 0, // Number of times the animation loops.
  1254. VOC_NONE, // Sound effect to play.
  1255. ANIM_NONE // Follow up animation.
  1256. );
  1257. static AnimTypeClass const CrateArmor(
  1258. ANIM_CRATE_ARMOR, // Animation number.
  1259. "ARMOR", // Data name of animation.
  1260. 48, // Maximum dimension of animation.
  1261. 0, // Biggest animation stage.
  1262. false, // Theater specific art imagery?
  1263. true, // Normalized animation rate?
  1264. false, // Uses white translucent table?
  1265. false, // Scorches the ground?
  1266. false, // Forms a crater?
  1267. false, // Sticks to unit in square?
  1268. false, // Ground level animation?
  1269. false, // Translucent colors in this animation?
  1270. false, // Is this a flame thrower animation?
  1271. 0, // Damage to apply per tick (fixed point).
  1272. 2, // Delay between frames.
  1273. 0, // Starting frame number.
  1274. 0, // Loop start frame number.
  1275. 0, // Ending frame of loop back.
  1276. -1, // Number of animation stages.
  1277. 0, // Number of times the animation loops.
  1278. VOC_NONE, // Sound effect to play.
  1279. ANIM_NONE // Follow up animation.
  1280. );
  1281. static AnimTypeClass const CrateSpeed(
  1282. ANIM_CRATE_SPEED, // Animation number.
  1283. "SPEED", // Data name of animation.
  1284. 48, // Maximum dimension of animation.
  1285. 0, // Biggest animation stage.
  1286. false, // Theater specific art imagery?
  1287. true, // Normalized animation rate?
  1288. false, // Uses white translucent table?
  1289. false, // Scorches the ground?
  1290. false, // Forms a crater?
  1291. false, // Sticks to unit in square?
  1292. false, // Ground level animation?
  1293. false, // Translucent colors in this animation?
  1294. false, // Is this a flame thrower animation?
  1295. 0, // Damage to apply per tick (fixed point).
  1296. 2, // Delay between frames.
  1297. 0, // Starting frame number.
  1298. 0, // Loop start frame number.
  1299. 0, // Ending frame of loop back.
  1300. -1, // Number of animation stages.
  1301. 0, // Number of times the animation loops.
  1302. VOC_NONE, // Sound effect to play.
  1303. ANIM_NONE // Follow up animation.
  1304. );
  1305. static AnimTypeClass const CrateFPower(
  1306. ANIM_CRATE_FPOWER, // Animation number.
  1307. "FPOWER", // Data name of animation.
  1308. 48, // Maximum dimension of animation.
  1309. 0, // Biggest animation stage.
  1310. false, // Theater specific art imagery?
  1311. true, // Normalized animation rate?
  1312. false, // Uses white translucent table?
  1313. false, // Scorches the ground?
  1314. false, // Forms a crater?
  1315. false, // Sticks to unit in square?
  1316. false, // Ground level animation?
  1317. false, // Translucent colors in this animation?
  1318. false, // Is this a flame thrower animation?
  1319. 0, // Damage to apply per tick (fixed point).
  1320. 2, // Delay between frames.
  1321. 0, // Starting frame number.
  1322. 0, // Loop start frame number.
  1323. 0, // Ending frame of loop back.
  1324. -1, // Number of animation stages.
  1325. 0, // Number of times the animation loops.
  1326. VOC_NONE, // Sound effect to play.
  1327. ANIM_NONE // Follow up animation.
  1328. );
  1329. static AnimTypeClass const CrateTQuake(
  1330. ANIM_CRATE_TQUAKE, // Animation number.
  1331. "TQUAKE", // Data name of animation.
  1332. 48, // Maximum dimension of animation.
  1333. 0, // Biggest animation stage.
  1334. false, // Theater specific art imagery?
  1335. true, // Normalized animation rate?
  1336. false, // Uses white translucent table?
  1337. false, // Scorches the ground?
  1338. false, // Forms a crater?
  1339. false, // Sticks to unit in square?
  1340. false, // Ground level animation?
  1341. false, // Translucent colors in this animation?
  1342. false, // Is this a flame thrower animation?
  1343. 0, // Damage to apply per tick (fixed point).
  1344. 2, // Delay between frames.
  1345. 0, // Starting frame number.
  1346. 0, // Loop start frame number.
  1347. 0, // Ending frame of loop back.
  1348. -1, // Number of animation stages.
  1349. 0, // Number of times the animation loops.
  1350. VOC_NONE, // Sound effect to play.
  1351. ANIM_NONE // Follow up animation.
  1352. );
  1353. static AnimTypeClass const CDollar(
  1354. ANIM_CRATE_DOLLAR, // Animation number.
  1355. "DOLLAR", // Data name of animation.
  1356. 48, // Maximum dimension of animation.
  1357. 0, // Biggest animation stage.
  1358. false, // Theater specific art imagery?
  1359. true, // Normalized animation rate?
  1360. false, // Uses white translucent table?
  1361. false, // Scorches the ground?
  1362. false, // Forms a crater?
  1363. false, // Sticks to unit in square?
  1364. false, // Ground level animation?
  1365. false, // Translucent colors in this animation?
  1366. false, // Is this a flame thrower animation?
  1367. 0, // Damage to apply per tick (fixed point).
  1368. 2, // Delay between frames.
  1369. 0, // Starting frame number.
  1370. 0, // Loop start frame number.
  1371. 0, // Ending frame of loop back.
  1372. -1, // Number of animation stages.
  1373. 0, // Number of times the animation loops.
  1374. VOC_NONE, // Sound effect to play.
  1375. ANIM_NONE // Follow up animation.
  1376. );
  1377. static AnimTypeClass const CEarth(
  1378. ANIM_CRATE_EARTH, // Animation number.
  1379. "EARTH", // Data name of animation.
  1380. 48, // Maximum dimension of animation.
  1381. 0, // Biggest animation stage.
  1382. false, // Theater specific art imagery?
  1383. true, // Normalized animation rate?
  1384. false, // Uses white translucent table?
  1385. false, // Scorches the ground?
  1386. false, // Forms a crater?
  1387. false, // Sticks to unit in square?
  1388. false, // Ground level animation?
  1389. false, // Translucent colors in this animation?
  1390. false, // Is this a flame thrower animation?
  1391. 0, // Damage to apply per tick (fixed point).
  1392. 2, // Delay between frames.
  1393. 0, // Starting frame number.
  1394. 0, // Loop start frame number.
  1395. 0, // Ending frame of loop back.
  1396. -1, // Number of animation stages.
  1397. 0, // Number of times the animation loops.
  1398. VOC_NONE, // Sound effect to play.
  1399. ANIM_NONE // Follow up animation.
  1400. );
  1401. static AnimTypeClass const CEmpulse(
  1402. ANIM_CRATE_EMPULSE, // Animation number.
  1403. "EMPULSE", // Data name of animation.
  1404. 48, // Maximum dimension of animation.
  1405. 0, // Biggest animation stage.
  1406. false, // Theater specific art imagery?
  1407. true, // Normalized animation rate?
  1408. false, // Uses white translucent table?
  1409. false, // Scorches the ground?
  1410. false, // Forms a crater?
  1411. false, // Sticks to unit in square?
  1412. false, // Ground level animation?
  1413. false, // Translucent colors in this animation?
  1414. false, // Is this a flame thrower animation?
  1415. 0, // Damage to apply per tick (fixed point).
  1416. 2, // Delay between frames.
  1417. 0, // Starting frame number.
  1418. 0, // Loop start frame number.
  1419. 0, // Ending frame of loop back.
  1420. -1, // Number of animation stages.
  1421. 0, // Number of times the animation loops.
  1422. VOC_NONE, // Sound effect to play.
  1423. ANIM_NONE // Follow up animation.
  1424. );
  1425. static AnimTypeClass const CInvun(
  1426. ANIM_CRATE_INVUN, // Animation number.
  1427. "INVUN", // Data name of animation.
  1428. 48, // Maximum dimension of animation.
  1429. 0, // Biggest animation stage.
  1430. false, // Theater specific art imagery?
  1431. true, // Normalized animation rate?
  1432. false, // Uses white translucent table?
  1433. false, // Scorches the ground?
  1434. false, // Forms a crater?
  1435. false, // Sticks to unit in square?
  1436. false, // Ground level animation?
  1437. false, // Translucent colors in this animation?
  1438. false, // Is this a flame thrower animation?
  1439. 0, // Damage to apply per tick (fixed point).
  1440. 2, // Delay between frames.
  1441. 0, // Starting frame number.
  1442. 0, // Loop start frame number.
  1443. 0, // Ending frame of loop back.
  1444. -1, // Number of animation stages.
  1445. 0, // Number of times the animation loops.
  1446. VOC_NONE, // Sound effect to play.
  1447. ANIM_NONE // Follow up animation.
  1448. );
  1449. static AnimTypeClass const CMine(
  1450. ANIM_CRATE_MINE, // Animation number.
  1451. "MINE", // Data name of animation.
  1452. 48, // Maximum dimension of animation.
  1453. 0, // Biggest animation stage.
  1454. false, // Theater specific art imagery?
  1455. true, // Normalized animation rate?
  1456. false, // Uses white translucent table?
  1457. false, // Scorches the ground?
  1458. false, // Forms a crater?
  1459. false, // Sticks to unit in square?
  1460. false, // Ground level animation?
  1461. false, // Translucent colors in this animation?
  1462. false, // Is this a flame thrower animation?
  1463. 0, // Damage to apply per tick (fixed point).
  1464. 2, // Delay between frames.
  1465. 0, // Starting frame number.
  1466. 0, // Loop start frame number.
  1467. 0, // Ending frame of loop back.
  1468. -1, // Number of animation stages.
  1469. 0, // Number of times the animation loops.
  1470. VOC_NONE, // Sound effect to play.
  1471. ANIM_NONE // Follow up animation.
  1472. );
  1473. static AnimTypeClass const CRapid(
  1474. ANIM_CRATE_RAPID, // Animation number.
  1475. "RAPID", // Data name of animation.
  1476. 48, // Maximum dimension of animation.
  1477. 0, // Biggest animation stage.
  1478. false, // Theater specific art imagery?
  1479. true, // Normalized animation rate?
  1480. false, // Uses white translucent table?
  1481. false, // Scorches the ground?
  1482. false, // Forms a crater?
  1483. false, // Sticks to unit in square?
  1484. false, // Ground level animation?
  1485. false, // Translucent colors in this animation?
  1486. false, // Is this a flame thrower animation?
  1487. 0, // Damage to apply per tick (fixed point).
  1488. 2, // Delay between frames.
  1489. 0, // Starting frame number.
  1490. 0, // Loop start frame number.
  1491. 0, // Ending frame of loop back.
  1492. -1, // Number of animation stages.
  1493. 0, // Number of times the animation loops.
  1494. VOC_NONE, // Sound effect to play.
  1495. ANIM_NONE // Follow up animation.
  1496. );
  1497. static AnimTypeClass const CStealth(
  1498. ANIM_CRATE_STEALTH, // Animation number.
  1499. "STEALTH2", // Data name of animation.
  1500. 48, // Maximum dimension of animation.
  1501. 0, // Biggest animation stage.
  1502. false, // Theater specific art imagery?
  1503. true, // Normalized animation rate?
  1504. false, // Uses white translucent table?
  1505. false, // Scorches the ground?
  1506. false, // Forms a crater?
  1507. false, // Sticks to unit in square?
  1508. false, // Ground level animation?
  1509. false, // Translucent colors in this animation?
  1510. false, // Is this a flame thrower animation?
  1511. 0, // Damage to apply per tick (fixed point).
  1512. 2, // Delay between frames.
  1513. 0, // Starting frame number.
  1514. 0, // Loop start frame number.
  1515. 0, // Ending frame of loop back.
  1516. -1, // Number of animation stages.
  1517. 0, // Number of times the animation loops.
  1518. VOC_NONE, // Sound effect to play.
  1519. ANIM_NONE // Follow up animation.
  1520. );
  1521. static AnimTypeClass const ChronoBox(
  1522. ANIM_CHRONO_BOX, // Animation number.
  1523. "CHRONBOX", // Data name of animation.
  1524. 48, // Maximum dimension of animation.
  1525. 0, // Biggest animation stage.
  1526. false, // Theater specific art imagery?
  1527. true, // Normalized animation rate?
  1528. false, // Uses white translucent table?
  1529. false, // Scorches the ground?
  1530. false, // Forms a crater?
  1531. false, // Sticks to unit in square?
  1532. false, // Ground level animation?
  1533. false, // Translucent colors in this animation?
  1534. false, // Is this a flame thrower animation?
  1535. 0, // Damage to apply per tick (fixed point).
  1536. 2, // Delay between frames.
  1537. 0, // Starting frame number.
  1538. 0, // Loop start frame number.
  1539. 0, // Ending frame of loop back.
  1540. -1, // Number of animation stages.
  1541. 0, // Number of times the animation loops.
  1542. VOC_NONE, // Sound effect to play.
  1543. ANIM_NONE // Follow up animation.
  1544. );
  1545. static AnimTypeClass const GPSBox(
  1546. ANIM_GPS_BOX, // Animation number.
  1547. "GPSBOX", // Data name of animation.
  1548. 48, // Maximum dimension of animation.
  1549. 0, // Biggest animation stage.
  1550. false, // Theater specific art imagery?
  1551. true, // Normalized animation rate?
  1552. false, // Uses white translucent table?
  1553. false, // Scorches the ground?
  1554. false, // Forms a crater?
  1555. false, // Sticks to unit in square?
  1556. false, // Ground level animation?
  1557. false, // Translucent colors in this animation?
  1558. false, // Is this a flame thrower animation?
  1559. 0, // Damage to apply per tick (fixed point).
  1560. 2, // Delay between frames.
  1561. 0, // Starting frame number.
  1562. 0, // Loop start frame number.
  1563. 0, // Ending frame of loop back.
  1564. -1, // Number of animation stages.
  1565. 0, // Number of times the animation loops.
  1566. VOC_NONE, // Sound effect to play.
  1567. ANIM_NONE // Follow up animation.
  1568. );
  1569. static AnimTypeClass const InvulBox(
  1570. ANIM_INVUL_BOX, // Animation number.
  1571. "INVULBOX", // Data name of animation.
  1572. 48, // Maximum dimension of animation.
  1573. 0, // Biggest animation stage.
  1574. false, // Theater specific art imagery?
  1575. true, // Normalized animation rate?
  1576. false, // Uses white translucent table?
  1577. false, // Scorches the ground?
  1578. false, // Forms a crater?
  1579. false, // Sticks to unit in square?
  1580. false, // Ground level animation?
  1581. false, // Translucent colors in this animation?
  1582. false, // Is this a flame thrower animation?
  1583. 0, // Damage to apply per tick (fixed point).
  1584. 2, // Delay between frames.
  1585. 0, // Starting frame number.
  1586. 0, // Loop start frame number.
  1587. 0, // Ending frame of loop back.
  1588. -1, // Number of animation stages.
  1589. 0, // Number of times the animation loops.
  1590. VOC_NONE, // Sound effect to play.
  1591. ANIM_NONE // Follow up animation.
  1592. );
  1593. static AnimTypeClass const ParaBox(
  1594. ANIM_PARA_BOX, // Animation number.
  1595. "PARABOX", // Data name of animation.
  1596. 48, // Maximum dimension of animation.
  1597. 0, // Biggest animation stage.
  1598. false, // Theater specific art imagery?
  1599. true, // Normalized animation rate?
  1600. false, // Uses white translucent table?
  1601. false, // Scorches the ground?
  1602. false, // Forms a crater?
  1603. false, // Sticks to unit in square?
  1604. false, // Ground level animation?
  1605. false, // Translucent colors in this animation?
  1606. false, // Is this a flame thrower animation?
  1607. 0, // Damage to apply per tick (fixed point).
  1608. 2, // Delay between frames.
  1609. 0, // Starting frame number.
  1610. 0, // Loop start frame number.
  1611. 0, // Ending frame of loop back.
  1612. -1, // Number of animation stages.
  1613. 0, // Number of times the animation loops.
  1614. VOC_NONE, // Sound effect to play.
  1615. ANIM_NONE // Follow up animation.
  1616. );
  1617. static AnimTypeClass const SonarBox(
  1618. ANIM_SONAR_BOX, // Animation number.
  1619. "SONARBOX", // Data name of animation.
  1620. 48, // Maximum dimension of animation.
  1621. 0, // Biggest animation stage.
  1622. false, // Theater specific art imagery?
  1623. true, // Normalized animation rate?
  1624. false, // Uses white translucent table?
  1625. false, // Scorches the ground?
  1626. false, // Forms a crater?
  1627. false, // Sticks to unit in square?
  1628. false, // Ground level animation?
  1629. false, // Translucent colors in this animation?
  1630. false, // Is this a flame thrower animation?
  1631. 0, // Damage to apply per tick (fixed point).
  1632. 2, // Delay between frames.
  1633. 0, // Starting frame number.
  1634. 0, // Loop start frame number.
  1635. 0, // Ending frame of loop back.
  1636. -1, // Number of animation stages.
  1637. 0, // Number of times the animation loops.
  1638. VOC_NONE, // Sound effect to play.
  1639. ANIM_NONE // Follow up animation.
  1640. );
  1641. static AnimTypeClass const CMissile(
  1642. ANIM_CRATE_MISSILE, // Animation number.
  1643. "MISSILE2", // Data name of animation.
  1644. 48, // Maximum dimension of animation.
  1645. 0, // Biggest animation stage.
  1646. false, // Theater specific art imagery?
  1647. true, // Normalized animation rate?
  1648. false, // Uses white translucent table?
  1649. false, // Scorches the ground?
  1650. false, // Forms a crater?
  1651. false, // Sticks to unit in square?
  1652. false, // Ground level animation?
  1653. false, // Translucent colors in this animation?
  1654. false, // Is this a flame thrower animation?
  1655. 0, // Damage to apply per tick (fixed point).
  1656. 2, // Delay between frames.
  1657. 0, // Starting frame number.
  1658. 0, // Loop start frame number.
  1659. 0, // Ending frame of loop back.
  1660. -1, // Number of animation stages.
  1661. 0, // Number of times the animation loops.
  1662. VOC_NONE, // Sound effect to play.
  1663. ANIM_NONE // Follow up animation.
  1664. );
  1665. static AnimTypeClass const MoveFlash(
  1666. ANIM_MOVE_FLASH, // Animation number.
  1667. "MOVEFLSH", // Data name of animation.
  1668. 24, // Maximum dimension of animation.
  1669. 0, // Biggest animation stage.
  1670. true, // Theater specific art imagery?
  1671. true, // Normalized animation rate?
  1672. true, // Uses white translucent table?
  1673. false, // Scorches the ground?
  1674. false, // Forms a crater?
  1675. false, // Sticks to unit in square?
  1676. true, // Ground level animation?
  1677. false, // Translucent colors in this animation?
  1678. false, // Is this a flame thrower animation?
  1679. 0, // Damage to apply per tick (fixed point).
  1680. 1, // Delay between frames.
  1681. 0, // Starting frame number.
  1682. 0, // Loop start frame number.
  1683. 0, // Ending frame of loop back.
  1684. -1, // Number of animation stages.
  1685. 0, // Number of times the animation loops.
  1686. VOC_NONE, // Sound effect to play.
  1687. ANIM_NONE // Follow up animation.
  1688. );
  1689. static AnimTypeClass const Corpse1(
  1690. ANIM_CORPSE1, // Animation number.
  1691. "CORPSE1", // Data name of animation.
  1692. 24, // Maximum dimension of animation.
  1693. 1, // Biggest animation stage.
  1694. true, // Theater specific art imagery?
  1695. true, // Normalized animation rate?
  1696. false, // Uses white translucent table?
  1697. false, // Scorches the ground?
  1698. false, // Forms a crater?
  1699. false, // Sticks to unit in square?
  1700. true, // Ground level animation?
  1701. true, // Translucent colors in this animation?
  1702. false, // Is this a flame thrower animation?
  1703. 0, // Damage to apply per tick (fixed point).
  1704. 15, // Delay between frames.
  1705. 0, // Starting frame number.
  1706. 0, // Loop start frame number.
  1707. 0, // Ending frame of loop back.
  1708. -1, // Number of animation stages.
  1709. 0, // Number of times the animation loops.
  1710. VOC_NONE, // Sound effect to play.
  1711. ANIM_NONE
  1712. );
  1713. static AnimTypeClass const Corpse2(
  1714. ANIM_CORPSE2, // Animation number.
  1715. "CORPSE2", // Data name of animation.
  1716. 24, // Maximum dimension of animation.
  1717. 1, // Biggest animation stage.
  1718. true, // Theater specific art imagery?
  1719. true, // Normalized animation rate?
  1720. false, // Uses white translucent table?
  1721. false, // Scorches the ground?
  1722. false, // Forms a crater?
  1723. false, // Sticks to unit in square?
  1724. true, // Ground level animation?
  1725. true, // Translucent colors in this animation?
  1726. false, // Is this a flame thrower animation?
  1727. 0, // Damage to apply per tick (fixed point).
  1728. 15, // Delay between frames.
  1729. 0, // Starting frame number.
  1730. 0, // Loop start frame number.
  1731. 0, // Ending frame of loop back.
  1732. -1, // Number of animation stages.
  1733. 0, // Number of times the animation loops.
  1734. VOC_NONE, // Sound effect to play.
  1735. ANIM_NONE
  1736. );
  1737. static AnimTypeClass const Corpse3(
  1738. ANIM_CORPSE3, // Animation number.
  1739. "CORPSE3", // Data name of animation.
  1740. 24, // Maximum dimension of animation.
  1741. 1, // Biggest animation stage.
  1742. true, // Theater specific art imagery?
  1743. true, // Normalized animation rate?
  1744. false, // Uses white translucent table?
  1745. false, // Scorches the ground?
  1746. false, // Forms a crater?
  1747. false, // Sticks to unit in square?
  1748. true, // Ground level animation?
  1749. true, // Translucent colors in this animation?
  1750. false, // Is this a flame thrower animation?
  1751. 0, // Damage to apply per tick (fixed point).
  1752. 15, // Delay between frames.
  1753. 0, // Starting frame number.
  1754. 0, // Loop start frame number.
  1755. 0, // Ending frame of loop back.
  1756. -1, // Number of animation stages.
  1757. 0, // Number of times the animation loops.
  1758. VOC_NONE, // Sound effect to play.
  1759. ANIM_NONE
  1760. );
  1761. static AnimTypeClass const Twinkle1(
  1762. ANIM_TWINKLE1, // Animation number.
  1763. "TWINKLE1", // Data name of animation.
  1764. 8, // Maximum dimension of animation.
  1765. 1, // Biggest animation stage.
  1766. false, // Theater specific art imagery?
  1767. true, // Normalized animation rate?
  1768. false, // Uses white translucent table?
  1769. false, // Scorches the ground?
  1770. false, // Forms a crater?
  1771. false, // Sticks to unit in square?
  1772. false, // Ground level animation?
  1773. false, // Translucent colors in this animation?
  1774. false, // Is this a flame thrower animation?
  1775. 0, // Damage to apply per tick (fixed point).
  1776. 1, // Delay between frames.
  1777. 0, // Starting frame number.
  1778. 0, // Loop start frame number.
  1779. -1, // Ending frame of loop back.
  1780. -1, // Number of animation stages.
  1781. 1, // Number of times the animation loops.
  1782. VOC_NONE, // Sound effect to play.
  1783. ANIM_NONE
  1784. );
  1785. static AnimTypeClass const Twinkle2(
  1786. ANIM_TWINKLE2, // Animation number.
  1787. "TWINKLE2", // Data name of animation.
  1788. 8, // Maximum dimension of animation.
  1789. 1, // Biggest animation stage.
  1790. false, // Theater specific art imagery?
  1791. true, // Normalized animation rate?
  1792. false, // Uses white translucent table?
  1793. false, // Scorches the ground?
  1794. false, // Forms a crater?
  1795. false, // Sticks to unit in square?
  1796. false, // Ground level animation?
  1797. false, // Translucent colors in this animation?
  1798. false, // Is this a flame thrower animation?
  1799. 0, // Damage to apply per tick (fixed point).
  1800. 1, // Delay between frames.
  1801. 0, // Starting frame number.
  1802. 0, // Loop start frame number.
  1803. -1, // Ending frame of loop back.
  1804. -1, // Number of animation stages.
  1805. 1, // Number of times the animation loops.
  1806. VOC_NONE, // Sound effect to play.
  1807. ANIM_NONE
  1808. );
  1809. static AnimTypeClass const Twinkle3(
  1810. ANIM_TWINKLE3, // Animation number.
  1811. "TWINKLE3", // Data name of animation.
  1812. 8, // Maximum dimension of animation.
  1813. 1, // Biggest animation stage.
  1814. false, // Theater specific art imagery?
  1815. true, // Normalized animation rate?
  1816. false, // Uses white translucent table?
  1817. false, // Scorches the ground?
  1818. false, // Forms a crater?
  1819. false, // Sticks to unit in square?
  1820. false, // Ground level animation?
  1821. false, // Translucent colors in this animation?
  1822. false, // Is this a flame thrower animation?
  1823. 0, // Damage to apply per tick (fixed point).
  1824. 1, // Delay between frames.
  1825. 0, // Starting frame number.
  1826. 0, // Loop start frame number.
  1827. -1, // Ending frame of loop back.
  1828. -1, // Number of animation stages.
  1829. 1, // Number of times the animation loops.
  1830. VOC_NONE, // Sound effect to play.
  1831. ANIM_NONE
  1832. );
  1833. static AnimTypeClass const Flak(
  1834. ANIM_FLAK, // Animation number.
  1835. "FLAK", // Data name of animation.
  1836. 8, // Maximum dimension of animation.
  1837. 7, // Biggest animation stage.
  1838. false, // Theater specific art imagery?
  1839. true, // Normalized animation rate?
  1840. false, // Uses white translucent table?
  1841. false, // Scorches the ground?
  1842. false, // Forms a crater?
  1843. false, // Sticks to unit in square?
  1844. false, // Ground level animation?
  1845. false, // Translucent colors in this animation?
  1846. false, // Is this a flame thrower animation?
  1847. 0, // Damage to apply per tick (fixed point).
  1848. 1, // Delay between frames.
  1849. 0, // Starting frame number.
  1850. 0, // Loop start frame number.
  1851. -1, // Ending frame of loop back.
  1852. -1, // Number of animation stages.
  1853. 1, // Number of times the animation loops.
  1854. VOC_NONE, // Sound effect to play.
  1855. ANIM_NONE
  1856. );
  1857. static AnimTypeClass const WaterExp1(
  1858. ANIM_WATER_EXP1, // Animation number.
  1859. "H2O_EXP1", // Data name of animation.
  1860. 64, // Maximum dimension of animation.
  1861. 3, // Biggest animation stage.
  1862. false, // Theater specific art imagery?
  1863. true, // Normalized animation rate?
  1864. false, // Uses white translucent table?
  1865. false, // Scorches the ground?
  1866. false, // Forms a crater?
  1867. false, // Sticks to unit in square?
  1868. true, // Ground level animation?
  1869. false, // Translucent colors in this animation?
  1870. false, // Is this a flame thrower animation?
  1871. 0, // Damage to apply per tick (fixed point).
  1872. 1, // Delay between frames.
  1873. 0, // Starting frame number.
  1874. 0, // Loop start frame number.
  1875. -1, // Ending frame of loop back.
  1876. -1, // Number of animation stages.
  1877. 1, // Number of times the animation loops.
  1878. VOC_SPLASH, // Sound effect to play.
  1879. ANIM_NONE
  1880. );
  1881. static AnimTypeClass const WaterExp2(
  1882. ANIM_WATER_EXP2, // Animation number.
  1883. "H2O_EXP2", // Data name of animation.
  1884. 40, // Maximum dimension of animation.
  1885. 3, // Biggest animation stage.
  1886. false, // Theater specific art imagery?
  1887. true, // Normalized animation rate?
  1888. false, // Uses white translucent table?
  1889. false, // Scorches the ground?
  1890. false, // Forms a crater?
  1891. false, // Sticks to unit in square?
  1892. true, // Ground level animation?
  1893. false, // Translucent colors in this animation?
  1894. false, // Is this a flame thrower animation?
  1895. 0, // Damage to apply per tick (fixed point).
  1896. 1, // Delay between frames.
  1897. 0, // Starting frame number.
  1898. 0, // Loop start frame number.
  1899. -1, // Ending frame of loop back.
  1900. -1, // Number of animation stages.
  1901. 1, // Number of times the animation loops.
  1902. VOC_SPLASH, // Sound effect to play.
  1903. ANIM_NONE
  1904. );
  1905. static AnimTypeClass const WaterExp3(
  1906. ANIM_WATER_EXP3, // Animation number.
  1907. "H2O_EXP3", // Data name of animation.
  1908. 32, // Maximum dimension of animation.
  1909. 3, // Biggest animation stage.
  1910. false, // Theater specific art imagery?
  1911. true, // Normalized animation rate?
  1912. false, // Uses white translucent table?
  1913. false, // Scorches the ground?
  1914. false, // Forms a crater?
  1915. false, // Sticks to unit in square?
  1916. true, // Ground level animation?
  1917. false, // Translucent colors in this animation?
  1918. false, // Is this a flame thrower animation?
  1919. 0, // Damage to apply per tick (fixed point).
  1920. 1, // Delay between frames.
  1921. 0, // Starting frame number.
  1922. 0, // Loop start frame number.
  1923. -1, // Ending frame of loop back.
  1924. -1, // Number of animation stages.
  1925. 1, // Number of times the animation loops.
  1926. VOC_SPLASH, // Sound effect to play.
  1927. ANIM_NONE
  1928. );
  1929. static AnimTypeClass const MineExp1(
  1930. ANIM_MINE_EXP1, // Animation number.
  1931. "VEH-HIT2", // Data name of animation.
  1932. 21, // Maximum dimension of animation.
  1933. 1, // Biggest animation stage.
  1934. false, // Theater specific art imagery?
  1935. true, // Normalized animation rate?
  1936. false, // Uses white translucent table?
  1937. false, // Scorches the ground?
  1938. true, // Forms a crater?
  1939. false, // Sticks to unit in square?
  1940. false, // Ground level animation?
  1941. false, // Translucent colors in this animation?
  1942. false, // Is this a flame thrower animation?
  1943. 0, // Damage to apply per tick (fixed point).
  1944. 1, // Delay between frames.
  1945. 0, // Starting frame number.
  1946. 0, // Loop start frame number.
  1947. -1, // Ending frame of loop back.
  1948. -1, // Number of animation stages.
  1949. 1, // Number of times the animation loops.
  1950. VOC_MINEBLOW, // Sound effect to play.
  1951. ANIM_NONE
  1952. );
  1953. #ifdef FIXIT_ANTS
  1954. static AnimTypeClass const AntDeath(
  1955. ANIM_ANT_DEATH, // Animation number.
  1956. "ANTDIE", // Data name of animation.
  1957. 28, // Maximum dimension of animation.
  1958. 1, // Biggest animation stage.
  1959. false, // Theater specific art imagery?
  1960. true, // Normalized animation rate?
  1961. false, // Uses white translucent table?
  1962. false, // Scorches the ground?
  1963. false, // Forms a crater?
  1964. false, // Sticks to unit in square?
  1965. true, // Ground level animation?
  1966. true, // Translucent colors in this animation?
  1967. false, // Is this a flame thrower animation?
  1968. 0, // Damage to apply per tick (fixed point).
  1969. 4, // Delay between frames.
  1970. 0, // Starting frame number.
  1971. 0, // Loop start frame number.
  1972. -1, // Ending frame of loop back.
  1973. -1, // Number of animation stages.
  1974. 1, // Number of times the animation loops.
  1975. VOC_ANTDIE, // Sound effect to play.
  1976. ANIM_NONE
  1977. );
  1978. #endif
  1979. /***********************************************************************************************
  1980. * AnimTypeClass::AnimTypeClass -- Constructor for animation types. *
  1981. * *
  1982. * This is the constructor for static objects that elaborate the various animation types *
  1983. * allowed in the game. Each animation in the game is of one of these types. *
  1984. * *
  1985. * INPUT: see below... *
  1986. * *
  1987. * OUTPUT: none *
  1988. * *
  1989. * WARNINGS: none *
  1990. * *
  1991. * HISTORY: *
  1992. * 08/23/1994 JLB : Created. *
  1993. *=============================================================================================*/
  1994. AnimTypeClass::AnimTypeClass(
  1995. AnimType anim,
  1996. char const * name,
  1997. int size,
  1998. int biggest,
  1999. bool istheater,
  2000. bool isnormal,
  2001. bool iswhitetrans,
  2002. bool isscorcher,
  2003. bool iscrater,
  2004. bool issticky,
  2005. bool ground,
  2006. bool istrans,
  2007. bool isflame,
  2008. fixed damage,
  2009. int delaytime,
  2010. int start,
  2011. int loopstart,
  2012. int loopend,
  2013. int stages,
  2014. int loops,
  2015. VocType soundid,
  2016. AnimType chainto) :
  2017. ObjectTypeClass(RTTI_ANIMTYPE,
  2018. int(anim),
  2019. true,
  2020. true,
  2021. false,
  2022. false,
  2023. true,
  2024. true,
  2025. false,
  2026. TXT_NONE,
  2027. name
  2028. ),
  2029. IsNormalized(isnormal),
  2030. IsGroundLayer(ground),
  2031. IsTranslucent(istrans),
  2032. IsWhiteTrans(iswhitetrans),
  2033. IsFlameThrower(isflame),
  2034. IsScorcher(isscorcher),
  2035. IsCraterForming(iscrater),
  2036. IsSticky(issticky),
  2037. IsTheater(istheater),
  2038. Type(anim),
  2039. Size(size),
  2040. Biggest(biggest),
  2041. Damage(damage),
  2042. Delay(delaytime),
  2043. Start(start),
  2044. LoopStart(loopstart),
  2045. LoopEnd(loopend),
  2046. Stages(stages),
  2047. Loops(loops),
  2048. Sound(soundid),
  2049. ChainTo(chainto)
  2050. {
  2051. }
  2052. /***********************************************************************************************
  2053. * AnimTypeClass::operator new -- Allocate an animation type object from private pool. *
  2054. * *
  2055. * This routine will allocate an animation type class object. *
  2056. * *
  2057. * INPUT: none *
  2058. * *
  2059. * OUTPUT: Returns with a pointer to the newly allocated anim type object. If no anim type *
  2060. * could be allocated, then NULL is returned. *
  2061. * *
  2062. * WARNINGS: none *
  2063. * *
  2064. * HISTORY: *
  2065. * 07/09/1996 JLB : Created. *
  2066. *=============================================================================================*/
  2067. void * AnimTypeClass::operator new(size_t)
  2068. {
  2069. return(AnimTypes.Alloc());
  2070. }
  2071. /***********************************************************************************************
  2072. * AnimTypeClass::operator delete -- Returns an anim type class object back to the pool. *
  2073. * *
  2074. * This will return the anim type class object back to the memory pool from whence it was *
  2075. * previously allocated. *
  2076. * *
  2077. * INPUT: pointer -- Pointer to the anim type class object to return to the memory pool. *
  2078. * *
  2079. * OUTPUT: none *
  2080. * *
  2081. * WARNINGS: none *
  2082. * *
  2083. * HISTORY: *
  2084. * 07/09/1996 JLB : Created. *
  2085. *=============================================================================================*/
  2086. void AnimTypeClass::operator delete(void * pointer)
  2087. {
  2088. AnimTypes.Free((AnimTypeClass *)pointer);
  2089. }
  2090. /***********************************************************************************************
  2091. * AnimTypeClass::Init_Heap -- Initialize the animation type system. *
  2092. * *
  2093. * This routine is called to initialize the animation type class heap. It allocates all *
  2094. * known animation types. *
  2095. * *
  2096. * INPUT: none *
  2097. * *
  2098. * OUTPUT: none *
  2099. * *
  2100. * WARNINGS: none *
  2101. * *
  2102. * HISTORY: *
  2103. * 07/09/1996 JLB : Created. *
  2104. *=============================================================================================*/
  2105. void AnimTypeClass::Init_Heap(void)
  2106. {
  2107. /*
  2108. ** These anim type class objects must be allocated in the exact order that they
  2109. ** are specified in the AnimType enumeration. This is necessary because the heap
  2110. ** allocation block index serves double duty as the type number index.
  2111. */
  2112. new AnimTypeClass(FBall1);
  2113. new AnimTypeClass(FireBallFade);
  2114. new AnimTypeClass(Frag1);
  2115. new AnimTypeClass(VehHit1);
  2116. new AnimTypeClass(VehHit2);
  2117. new AnimTypeClass(VehHit3);
  2118. new AnimTypeClass(ArtExp1);
  2119. new AnimTypeClass(Napalm1);
  2120. new AnimTypeClass(Napalm2);
  2121. new AnimTypeClass(Napalm3);
  2122. new AnimTypeClass(SmokePuff);
  2123. new AnimTypeClass(Piff);
  2124. new AnimTypeClass(PiffPiff);
  2125. new AnimTypeClass(Fire3);
  2126. new AnimTypeClass(Fire2);
  2127. new AnimTypeClass(Fire1);
  2128. new AnimTypeClass(Fire4);
  2129. new AnimTypeClass(Gunfire);
  2130. new AnimTypeClass(SmokeM);
  2131. new AnimTypeClass(BurnSmall);
  2132. new AnimTypeClass(BurnMed);
  2133. new AnimTypeClass(BurnBig);
  2134. new AnimTypeClass(OnFireSmall);
  2135. new AnimTypeClass(OnFireMed);
  2136. new AnimTypeClass(OnFireBig);
  2137. new AnimTypeClass(SAMN);
  2138. new AnimTypeClass(SAMNE);
  2139. new AnimTypeClass(SAME);
  2140. new AnimTypeClass(SAMSE);
  2141. new AnimTypeClass(SAMS);
  2142. new AnimTypeClass(SAMSW);
  2143. new AnimTypeClass(SAMW);
  2144. new AnimTypeClass(SAMNW);
  2145. new AnimTypeClass(GUNN);
  2146. new AnimTypeClass(GUNNE);
  2147. new AnimTypeClass(GUNE);
  2148. new AnimTypeClass(GUNSE);
  2149. new AnimTypeClass(GUNS);
  2150. new AnimTypeClass(GUNSW);
  2151. new AnimTypeClass(GUNW);
  2152. new AnimTypeClass(GUNNW);
  2153. new AnimTypeClass(LZSmoke);
  2154. new AnimTypeClass(CDeviator);
  2155. new AnimTypeClass(CDollar);
  2156. new AnimTypeClass(CEarth);
  2157. new AnimTypeClass(CEmpulse);
  2158. new AnimTypeClass(CInvun);
  2159. new AnimTypeClass(CMine);
  2160. new AnimTypeClass(CRapid);
  2161. new AnimTypeClass(CStealth);
  2162. new AnimTypeClass(CMissile);
  2163. new AnimTypeClass(MoveFlash);
  2164. new AnimTypeClass(OilFieldBurn);
  2165. new AnimTypeClass(ElectricDie);
  2166. new AnimTypeClass(Parachute);
  2167. new AnimTypeClass(DogElectricDie);
  2168. new AnimTypeClass(Corpse1);
  2169. new AnimTypeClass(Corpse2);
  2170. new AnimTypeClass(Corpse3);
  2171. new AnimTypeClass(SputDoor);
  2172. new AnimTypeClass(AtomBomb);
  2173. new AnimTypeClass(ChronoBox);
  2174. new AnimTypeClass(GPSBox);
  2175. new AnimTypeClass(InvulBox);
  2176. new AnimTypeClass(ParaBox);
  2177. new AnimTypeClass(SonarBox);
  2178. new AnimTypeClass(Twinkle1);
  2179. new AnimTypeClass(Twinkle2);
  2180. new AnimTypeClass(Twinkle3);
  2181. new AnimTypeClass(Flak);
  2182. new AnimTypeClass(WaterExp1);
  2183. new AnimTypeClass(WaterExp2);
  2184. new AnimTypeClass(WaterExp3);
  2185. new AnimTypeClass(CrateArmor);
  2186. new AnimTypeClass(CrateSpeed);
  2187. new AnimTypeClass(CrateFPower);
  2188. new AnimTypeClass(CrateTQuake);
  2189. new AnimTypeClass(ParaBomb);
  2190. new AnimTypeClass(MineExp1);
  2191. #ifdef FIXIT_ANTS
  2192. new AnimTypeClass(AntDeath);
  2193. #endif
  2194. }
  2195. /***********************************************************************************************
  2196. * AnimTypeClass::One_Time -- Performs one time action for animation types. *
  2197. * *
  2198. * This will load the animation shape data. It is called by the game initialization *
  2199. * process. *
  2200. * *
  2201. * INPUT: none *
  2202. * *
  2203. * OUTPUT: none *
  2204. * *
  2205. * WARNINGS: This routine should be called ONLY once. *
  2206. * *
  2207. * HISTORY: *
  2208. * 06/02/1994 JLB : Created. *
  2209. *=============================================================================================*/
  2210. void AnimTypeClass::One_Time(void)
  2211. {
  2212. for (AnimType index = ANIM_FIRST; index < ANIM_COUNT; index++) {
  2213. char fullname[_MAX_FNAME+_MAX_EXT];
  2214. AnimTypeClass const & anim = As_Reference(index);
  2215. if (!anim.IsTheater) {
  2216. _makepath(fullname, NULL, NULL, As_Reference(index).IniName, ".SHP");
  2217. #ifndef NDEBUG
  2218. RawFileClass file(fullname);
  2219. if (file.Is_Available()) {
  2220. ((void const *&)As_Reference(index).ImageData) = Load_Alloc_Data(file);
  2221. } else {
  2222. ((void const *&)As_Reference(index).ImageData) = MFCD::Retrieve(fullname);
  2223. }
  2224. #else
  2225. ((void const *&)As_Reference(index).ImageData) = MFCD::Retrieve(fullname);
  2226. #endif
  2227. }
  2228. }
  2229. }
  2230. /***********************************************************************************************
  2231. * AnimTypeClass::Init -- Load any animation artwork that is theater specific. *
  2232. * *
  2233. * This routine will examine all the animation types and for any that are theater *
  2234. * specific, it will fetch a pointer to the artwork appropriate for the theater specified. *
  2235. * *
  2236. * INPUT: theater -- The theater to align the animation artwork with. *
  2237. * *
  2238. * OUTPUT: none *
  2239. * *
  2240. * WARNINGS: Call this routine when the theater changes. *
  2241. * *
  2242. * HISTORY: *
  2243. * 07/06/1996 JLB : Created. *
  2244. *=============================================================================================*/
  2245. void AnimTypeClass::Init(TheaterType theater)
  2246. {
  2247. if (theater != LastTheater) {
  2248. for (AnimType index = ANIM_FIRST; index < ANIM_COUNT; index++) {
  2249. AnimTypeClass const & anim = As_Reference(index);
  2250. if (anim.IsTheater) {
  2251. char fullname[_MAX_FNAME+_MAX_EXT]; // Fully constructed iconset name.
  2252. _makepath(fullname, NULL, NULL, anim.IniName, Theaters[theater].Suffix);
  2253. ((void const *&)anim.ImageData) = MFCD::Retrieve(fullname);
  2254. }
  2255. }
  2256. }
  2257. }
  2258. /***********************************************************************************************
  2259. * Anim_Name -- Fetches the ASCII name of the animation type specified. *
  2260. * *
  2261. * This will convert the animation type specified into a text name. This name can be used *
  2262. * for uniquely identifying the animation. *
  2263. * *
  2264. * INPUT: anim -- The anim type to convert to a text string. *
  2265. * *
  2266. * OUTPUT: Returns with a pointer to the ASCII string that identifies this animation. *
  2267. * *
  2268. * WARNINGS: none *
  2269. * *
  2270. * HISTORY: *
  2271. * 07/06/1996 JLB : Created. *
  2272. *=============================================================================================*/
  2273. char const * Anim_Name(AnimType anim)
  2274. {
  2275. if (anim == ANIM_NONE) return("");
  2276. return(AnimTypeClass::As_Reference(anim).IniName);
  2277. }
  2278. /***********************************************************************************************
  2279. * AnimTypeClass::As_Reference -- Fetch a reference to the animation type specified. *
  2280. * *
  2281. * This routine will convert the animation type specified into a reference to the *
  2282. * animation type class object. *
  2283. * *
  2284. * INPUT: type -- The animation type to convert into a reference. *
  2285. * *
  2286. * OUTPUT: Returns with a reference to the animation type class object. *
  2287. * *
  2288. * WARNINGS: Be sure that the animation type specified is legal. If it isn't then the *
  2289. * results of this routine are undefined. *
  2290. * *
  2291. * HISTORY: *
  2292. * 07/06/1996 JLB : Created. *
  2293. *=============================================================================================*/
  2294. AnimTypeClass & AnimTypeClass::As_Reference(AnimType type)
  2295. {
  2296. return(* AnimTypes.Ptr(type));
  2297. }