d_items.c
上传用户:xuyinpeng
上传日期:2021-05-12
资源大小:455k
文件大小:2k
源码类别:

射击游戏

开发平台:

Visual C++

  1. // Emacs style mode select   -*- C++ -*- 
  2. //-----------------------------------------------------------------------------
  3. //
  4. // $Id:$
  5. //
  6. // Copyright (C) 1993-1996 by id Software, Inc.
  7. //
  8. // This source is available for distribution and/or modification
  9. // only under the terms of the DOOM Source Code License as
  10. // published by id Software. All rights reserved.
  11. //
  12. // The source is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
  15. // for more details.
  16. //
  17. // $Log:$
  18. //
  19. // DESCRIPTION:
  20. //
  21. //-----------------------------------------------------------------------------
  22. static const char
  23. rcsid[] = "$Id:$";
  24. // We are referring to sprite numbers.
  25. #include "info.h"
  26. #ifdef __GNUG__
  27. #pragma implementation "d_items.h"
  28. #endif
  29. #include "d_items.h"
  30. //
  31. // PSPRITE ACTIONS for waepons.
  32. // This struct controls the weapon animations.
  33. //
  34. // Each entry is:
  35. //   ammo/amunition type
  36. //  upstate
  37. //  downstate
  38. // readystate
  39. // atkstate, i.e. attack/fire/hit frame
  40. // flashstate, muzzle flash
  41. //
  42. weaponinfo_t weaponinfo[NUMWEAPONS] =
  43. {
  44.     {
  45. // fist
  46. am_noammo,
  47. S_PUNCHUP,
  48. S_PUNCHDOWN,
  49. S_PUNCH,
  50. S_PUNCH1,
  51. S_NULL
  52.     },
  53.     {
  54. // pistol
  55. am_clip,
  56. S_PISTOLUP,
  57. S_PISTOLDOWN,
  58. S_PISTOL,
  59. S_PISTOL1,
  60. S_PISTOLFLASH
  61.     },
  62.     {
  63. // shotgun
  64. am_shell,
  65. S_SGUNUP,
  66. S_SGUNDOWN,
  67. S_SGUN,
  68. S_SGUN1,
  69. S_SGUNFLASH1
  70.     },
  71.     {
  72. // chaingun
  73. am_clip,
  74. S_CHAINUP,
  75. S_CHAINDOWN,
  76. S_CHAIN,
  77. S_CHAIN1,
  78. S_CHAINFLASH1
  79.     },
  80.     {
  81. // missile launcher
  82. am_misl,
  83. S_MISSILEUP,
  84. S_MISSILEDOWN,
  85. S_MISSILE,
  86. S_MISSILE1,
  87. S_MISSILEFLASH1
  88.     },
  89.     {
  90. // plasma rifle
  91. am_cell,
  92. S_PLASMAUP,
  93. S_PLASMADOWN,
  94. S_PLASMA,
  95. S_PLASMA1,
  96. S_PLASMAFLASH1
  97.     },
  98.     {
  99. // bfg 9000
  100. am_cell,
  101. S_BFGUP,
  102. S_BFGDOWN,
  103. S_BFG,
  104. S_BFG1,
  105. S_BFGFLASH1
  106.     },
  107.     {
  108. // chainsaw
  109. am_noammo,
  110. S_SAWUP,
  111. S_SAWDOWN,
  112. S_SAW,
  113. S_SAW1,
  114. S_NULL
  115.     },
  116.     {
  117. // super shotgun
  118. am_shell,
  119. S_DSGUNUP,
  120. S_DSGUNDOWN,
  121. S_DSGUN,
  122. S_DSGUN1,
  123. S_DSGUNFLASH1
  124.     },
  125. };