Open Source Tomb Raider Engine
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

TombRaider1.h 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
  2. /*================================================================
  3. *
  4. * Project : OpenRaider
  5. * Author : Mongoose
  6. * Website : http://www.westga.edu/~stu7440/
  7. * Email : stu7440@westga.edu
  8. * Object : OpenRaider
  9. * License : GPL, See file COPYING for details
  10. * Comments: Loads TR 1 states and etc
  11. *
  12. * This file was generated using Mongoose's C++
  13. * template generator script. <stu7440@westga.edu>
  14. *
  15. *-- History ------------------------------------------------
  16. *
  17. * Mongoose - Created, based on:
  18. * TR Rosetta Stone ( TombRaider pak format specs )
  19. ================================================================*/
  20. #ifndef __OPENRAIDER_MONGOOSE_TOMBRAIDER1_H_
  21. #define __OPENRAIDER_MONGOOSE_TOMBRAIDER1_H_
  22. class TombRaider1
  23. {
  24. public:
  25. TombRaider1();
  26. ~TombRaider1();
  27. enum Items
  28. {
  29. Lara = 0,
  30. PistolAnimation = 1,
  31. ShotgunAnimation = 2,
  32. MagnumAnimation = 3,
  33. LaraAlternate = 4, // Lara's home appearance, wounded, or turned to gold
  34. UziAnimation = 5,
  35. LaraMutant = 6,
  36. Wolf = 7,
  37. Bear = 8,
  38. Bat = 9
  39. };
  40. enum WolfStates
  41. {
  42. WolfState_Walking = 1,
  43. WolfState_Running = 2,
  44. WolfState_Jumping = 3,
  45. WolfState_Stalking = 5,
  46. WolfState_JumpingAttack = 6,
  47. WolfState_Attacking = 7,
  48. WolfState_Lying = 8, // down
  49. WolfState_Getting = 9, // ready to strike
  50. WolfState_RunningJump = 10,
  51. WolfState_Dying = 11,
  52. WolfState_Biting = 12
  53. };
  54. };
  55. #ifdef FIXME_DONT_COMPILE
  56. // Bear = 8,
  57. // Walking = 0, on all fours
  58. // Getting = 1, back to all fours
  59. // Walking = 2, on hind legs
  60. // Running = 3, on all fours
  61. // Rearing = 4, up on hind legs
  62. // Growling = 5,?
  63. // Running = 6, and attacking
  64. // Standing = 7, on hind legs
  65. // Biting = 8,
  66. // Dying = 9,
  67. // Bat = 9,
  68. // Starting = 1, to fly
  69. // Flying = 2, straight
  70. // Biting = 3,
  71. // Circling = 4,
  72. // Dying = 5,
  73. // Crocodile = 10, (on land)
  74. // Stationary = 1,
  75. // Walking = 2,
  76. // Walking = 3,
  77. // Turning = 4,
  78. // Biting = 5,
  79. // Dying = 7,
  80. // Crocodile = 11, (in water)
  81. // Swimming = 1,
  82. // Biting = 2,
  83. // Dying = 3,
  84. // Lion = 12, (male)
  85. // Standing = 1,
  86. // Walking = 2,
  87. // Leaping = 3,
  88. // Leaping = 4, and biting
  89. // Dying = 5,
  90. // Biting = 6,
  91. // Biting = 7,
  92. // Lion = 13, (female)
  93. // Standing = 1,
  94. // Walking = 2,
  95. // Leaping = 3,
  96. // Leaping = 4, and biting
  97. // Dying = 5,
  98. // Biting = 6,
  99. // Biting = 7,
  100. // Panther = 14,
  101. // Standing = 1,
  102. // Walking = 2,
  103. // Leaping = 3,
  104. // Leaping = 4, and biting
  105. // Dying = 5,
  106. // Biting = 6,
  107. // Biting = 7,
  108. // Gorilla = 15,
  109. // Standing = 1, on all fours
  110. // Running = 3, on all fours
  111. // Walking = 4, on legs (attacking?)
  112. // Dying = 5,
  113. // Thumping = 6, chest
  114. // Waving = 7, arms
  115. // Turning = 8, leftward?
  116. // Turning = 9, rightward?
  117. // Jumping = 10, up and waving arms
  118. // Climbing = 11,
  119. // Giant = 16, Rat (on land)
  120. // Standing = 1,
  121. // Jumping = 2, and Biting
  122. // Running = 3,
  123. // Biting = 4,
  124. // Dying = 5,
  125. // Rearing = 6, up
  126. // Giant = 17, Rat (in water)
  127. // Swimming = 1,
  128. // Biting = 2,
  129. // Dying = 3,
  130. // Tyrannosaur = 18,
  131. // Standing = 1,
  132. // Walking = 2,
  133. // Running = 3,
  134. // Dying = 5,
  135. // Bellowing = 6,
  136. // Biting = 7,
  137. // Shaking = 8, Head and Spitting Out
  138. // Raptor = 19,
  139. // Dying = 0,
  140. // Standing = 1,
  141. // Walking = 2,
  142. // Running = 3,
  143. // Jumping = 4, and Biting?
  144. // Bellowing = 6,
  145. // Running = 7, and bellowing
  146. // Biting = 8,
  147. // Winged = 20, mummy (unused) / Winged mutant
  148. // Crouching = 1,
  149. // Walking = 2,
  150. // Running = 3,
  151. // Biting = 4,?
  152. // Looking = 6,
  153. // Jumping = 7,?
  154. // Clawing = 8,?
  155. // Aiming = 9, right-hand gun
  156. // Aiming = 10, and firing left-hand gun
  157. // Firing = 11, right-hand gun
  158. // Standing = 12,
  159. // Flying = 13,
  160. // Lara = 21,'s hips
  161. // [Only one state]
  162. // Lara = 22,'s hips
  163. // [Only one state]
  164. // Centaur = 23, mutant
  165. // Standing = 1,
  166. // Firing = 2,
  167. // Galloping = 3,
  168. // Aiming = 4,
  169. // Dying = 5,
  170. // Rearing = 6, up
  171. // Mummy = 24,
  172. // Standing = 1,
  173. // Falling = 2, forward
  174. // Larson = 27,
  175. // Walking = 0,
  176. // Standing = 1, holding gun
  177. // Walking = 2,
  178. // Running = 3,
  179. // Aiming = 4, gun
  180. // Injured = 5, by gunshot / Dying
  181. // Standing = 6,
  182. // Firing = 7, gun
  183. // Pierre = 28,
  184. // Standing = 1,
  185. // Walking = 2,
  186. // Running = 3,
  187. // Aiming = 4, guns
  188. // Dying = 5,
  189. // Putting = 6, guns away
  190. // Firing = 7, guns
  191. // Skateboard = 29,
  192. // Being = 0, turned around
  193. // Stationary = 1,
  194. // Stationary = 2,
  195. // Stationary = 3,
  196. // Stationary = 4,
  197. // Skateboard = 30, kid
  198. // Turning = 0, and Aiming?
  199. // Firing = 1,
  200. // Skating = 2,
  201. // Aiming = 3,
  202. // Firing = 4,
  203. // Dying = 5,
  204. // Cowboy = 31,
  205. // Aiming = 1,
  206. // Walking = 2,
  207. // Running = 3,
  208. // Aiming = 4,
  209. // Dying = 5,
  210. // Firing = 6,
  211. // 32: "Mr. T"
  212. // Dying = 0,
  213. // Standing = 1,
  214. // Walking = 2,
  215. // Running = 3,
  216. // Aiming = 4,
  217. // Firing = 6,
  218. // Winged = 33, Natla (actually, Natla with a winged mutant)
  219. // Standing = 1,
  220. // Flying = 2,
  221. // Running = 3,
  222. // Aiming = 4, and firing
  223. // 5: "Dying" the first time
  224. // Spinning = 7, around in air
  225. // Standing = 8,
  226. // Dying = 9, for real
  227. // Giant = 34, mutant
  228. // Dying = 0,
  229. // Sitting = 1, on floor
  230. // Pulling = 2, self forward
  231. // Slapping = 4, with right hand
  232. // Slapping = 5, with both hands
  233. // Making = 6, big wave with right hand
  234. // Dropping = 8, to floor after hatching
  235. // Raising = 9, arms
  236. // Shaking = 11, victim with right hand
  237. // Collapsible = 35, floor
  238. // Stationary = 0,
  239. // Shaking = 1,
  240. // Falling = 2,
  241. // Settling = 3, down
  242. // Swinging = 36, blade
  243. // Stationary = 0,
  244. // Swinging = 2,
  245. // Spikes = 37,
  246. // [Only one state]
  247. // Boulder = 38,
  248. // Stationary = 0,
  249. // Rolling = 1,
  250. // Dart = 39,
  251. // [Only one state]
  252. // Wall = 40,-mounted dartgun
  253. // Idle = 0,?
  254. // Firing = 1,?
  255. // Door = 41, (opens upward)
  256. // Upward = 0,
  257. // On = 1, side
  258. // Slamming = 42, doors
  259. // Open = 0,
  260. // Closed = 1,
  261. // Sword = 43, of Damocles
  262. // [Only one state]
  263. // Thor = 44,'s hammer's handle
  264. // Stationary = 0, in "up" position
  265. // Moving = 1, down a little and returning
  266. // Moving = 2, down all the way
  267. // Stopped = 3, at "down" position
  268. // Thor = 45,'s hammer's block
  269. // Stationary = 0,
  270. // Moving = 1, down a little and returning
  271. // Moving = 2, down all the way
  272. // Hanging = 46, ball? / Some kind of box?
  273. // [Only one state]
  274. // Metal = 47, rod? / Powered mining cart
  275. // Stationary = 0,
  276. // Moving = 1,
  277. // Movable = 48, cubical block (pushable)
  278. // Stationary = 0,
  279. // Being = 1, pulled?
  280. // Being = 2, pushed?
  281. // Movable = 49, cubical block (pushable)
  282. // Stationary = 0,
  283. // Being = 1, pulled?
  284. // Being = 2, pushed?
  285. // Movable = 50, cubical block (pushable)
  286. // Stationary = 0,
  287. // Being = 1, pulled?
  288. // Being = 2, pushed?
  289. // Movable = 51, cubical block (pushable)
  290. // Stationary = 0,
  291. // Being = 1, pulled?
  292. // Being = 2, pushed?
  293. // Movable = 52, tall block
  294. // Stationary = 0,
  295. // Moving = 1, forward?
  296. // Moving = 2, backward?
  297. // Pieces = 53, of something?
  298. // Stationary = 0,
  299. // Falling = 1,
  300. // Settling = 2, down
  301. // Sword = 54, of Damocles
  302. // [Only one state]
  303. // Above = 55,-water switch
  304. // Off = 0,
  305. // On = 1,
  306. // [states may be reversed]
  307. // Underwater = 56, switch
  308. // Off = 0,
  309. // On = 1,
  310. // [states may be reversed]
  311. // Door = 57,
  312. // Closed = 0,
  313. // Open = 1,
  314. // Door = 58,
  315. // Closed = 0,
  316. // Open = 1,
  317. // Door = 59,
  318. // Closed = 0,
  319. // Open = 1,
  320. // Door = 60,
  321. // Closed = 0,
  322. // Open = 1,
  323. // Door = 61,
  324. // Closed = 0,
  325. // Open = 1,
  326. // Door = 62,
  327. // Closed = 0,
  328. // Open = 1,
  329. // Door = 63,
  330. // Closed = 0,
  331. // Open = 1,
  332. // Door = 64,
  333. // Closed = 0,
  334. // Open = 1,
  335. // Trapdoor = 65, (opens downward)
  336. // Closed = 0,
  337. // Open = 1,
  338. // Trapdoor = 66, (opens downward)
  339. // Closed = 0,
  340. // Open = 1,
  341. // Bridge = 68, (flat)
  342. // [Only one state]
  343. // Bridge = 69, (slope = 1)
  344. // [Only one state]
  345. // Bridge = 70, (slope = 2)
  346. // [Only one state]
  347. // Passport = 71, (opening up)
  348. // [Only one state]
  349. // Compass = 72,
  350. // [Only one state]
  351. // Cogs = 74, (animated)
  352. // Stationary = 0,
  353. // Turning = 1,
  354. // Cogs = 75, (animated)
  355. // Stationary = 0,
  356. // Turning = 1,
  357. // Cogs = 76, (animated)
  358. // Stationary = 0,
  359. // Turning = 1,
  360. // Lara = 77, in CS / Scion holder in CS
  361. // Larson = 78, in CS / Natla in CS / Scion holder in CS
  362. // Larson = 79,'s gun in CS / Scion in CS / Natla in CS
  363. // Scion = 80, in CS
  364. // Passport = 81, (closed)
  365. // [Only one state]
  366. // N = 82,-thingy (Playstation memory card?)
  367. // [Only one state]
  368. // Save = 83, crystal
  369. // [Only one state]
  370. // 84: * Pistols
  371. // 85: * Shotgun
  372. // 86: * Magnums
  373. // 87: * Uzis
  374. // 88: * Pistol ammo(?)
  375. // 89: * Shotgun ammo
  376. // 90: * Magnum ammo
  377. // 91: * Uzi ammo
  378. // 93: * Small medipack
  379. // 94: * Large medipack
  380. // Sunglasses = 95,
  381. // [Only one state]
  382. // Cassette = 96, player and headphones
  383. // [Only one state]
  384. // Direction = 97, keys
  385. // [Only one state]
  386. // Pistol = 99,
  387. // [Only one state]
  388. // 100: Shotgun
  389. // [Only one state]
  390. // 101: Magnum
  391. // [Only one state]
  392. // 102: Uzi
  393. // [Only one state]
  394. // 103: Pistol ammo(?)
  395. // [Only one state]
  396. // 104: Shotgun ammo
  397. // [Only one state]
  398. // 105: Magnum ammo
  399. // [Only one state]
  400. // 106: Uzi ammo
  401. // [Only one state]
  402. // 108: Small medipack
  403. // [Only one state]
  404. // 109: Large medipack
  405. // [Only one state]
  406. // 110: * Puzzle 1
  407. // 111: * Puzzle 2
  408. // 112: * Puzzle 3
  409. // 113: * Puzzle 4
  410. // 114: Puzzle 1
  411. // [Only one state]
  412. // 115: Puzzle 2
  413. // [Only one state]
  414. // 116: Puzzle 3
  415. // [Only one state]
  416. // 117: Puzzle 4
  417. // [Only one state]
  418. // 118: Slot 1 empty
  419. // [Only one state]
  420. // 119: Slot 2 empty
  421. // [Only one state]
  422. // 120: Slot 3 empty
  423. // [Only one state]
  424. // 121: Slot 4 empty
  425. // [Only one state]
  426. // 122: Slot 1 full
  427. // [Only one state]
  428. // 123: Slot 2 full
  429. // [Only one state]
  430. // 124: Slot 3 full
  431. // [Only one state]
  432. // 125: Slot 4 full
  433. // [Only one state]
  434. // 126: * Pickup 1
  435. // 127: Pickup 1
  436. // [Only one state]
  437. // 128: Lara's hips
  438. // [Only one state]
  439. // 129: * Key 1
  440. // 130: * Key 2
  441. // 131: * Key 3
  442. // 132: * Key 4
  443. // 133: Key 1
  444. // [Only one state]
  445. // 134: Key 2
  446. // [Only one state]
  447. // 135: Key 3
  448. // [Only one state]
  449. // 136: Key 4
  450. // [Only one state]
  451. // 137: Lock 1
  452. // [Only one state]
  453. // 138: Lock 2
  454. // [Only one state]
  455. // 139: Lock 3
  456. // [Only one state]
  457. // 140: Lock 4
  458. // [Only one state]
  459. // 143: * Scion Piece
  460. // 146: Complete Scion
  461. // [Only one state]
  462. // 147: Scion Holder
  463. // [Only one state]
  464. // 150: Scion Piece
  465. // [Only one state]
  466. // 151: * Flare(?) / Explosion
  467. // 153: * Splash
  468. // 155: * Bubbles
  469. // 156: * Bubbles
  470. // 158: * Blood splatter
  471. // 160: * Flying disk
  472. // 161: Centaur statue
  473. // [Only one state]
  474. // 162: Shack suspended from wire rope
  475. // Starting = 0, position
  476. // Dropping = 1, after first fuse
  477. // Dropping = 2, after second fuse
  478. // Dropping = 3, after third fuse (to ground)
  479. // On = 4, the ground
  480. // 163: Mutant egg and holder (normal size)
  481. // Starting = 0, to hatch
  482. // Hatching = 1, (is the fragmenting hardcoded?)
  483. // 164: * Bullet hit
  484. // 165: * Sparkle
  485. // 166: Gunflare
  486. // [Only one state]
  487. // 169: Lara's hips
  488. // [Only one state]
  489. // 170: Lara's hips
  490. // [Only one state]
  491. // 172: Mutant bullet
  492. // [Only one state]
  493. // 173: Mutant grenade
  494. // [Only one state]
  495. // 176: * Splatter
  496. // 177: Lara's hips
  497. // [Only one state]
  498. // 178: * Fire
  499. // 179: Lara's hips
  500. // [Only one state]
  501. // 180: Flowing Atlantean lava
  502. // [Only one state]
  503. // 181: Mutant egg and holder (big)
  504. // Starting = 0, to hatch
  505. // Hatching = 1, (is the fragmenting hardcoded?)
  506. // 182: Motorboat
  507. // Stationary = 1, (initial)
  508. // Moving = 2,
  509. // Stationary = 3, (final)
  510. // 183: Lara's hips
  511. // [Only one state]
  512. // 189: Shrinking wedge?
  513. // [Only one state]
  514. // 190: * Standard symbols
  515. // 191: * Plant 1
  516. // 192: * Plant 2
  517. // 193: * Plant 3
  518. // 194: * Plant 4
  519. // 195: * Plant 5
  520. // 200: * Bag 1
  521. // 204: * Bag 2
  522. // 207: Gunflare
  523. // [Only one state]
  524. // 212: * Rock 1
  525. // 213: * Rock 2
  526. // 214: * Rock 3
  527. // 215: * Bag 3
  528. // 216: * Pottery 1
  529. // 217: * Pottery 2
  530. // 231: * Painted pot
  531. // 233: * Inca mummy
  532. // 236: * Pottery 3
  533. // 237: * Pottery 4
  534. // 238: * Pottery 5
  535. // 239: * Pottery 6
  536. #endif
  537. #endif