wolf_powerups.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. Copyright (C) 2004 Michael Liebscher
  3. Copyright (C) 2000-2002 by DarkOne the Hacker
  4. This program is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License
  6. as published by the Free Software Foundation; either version 2
  7. of the License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  15. */
  16. /*
  17. * wolf_powerups.h: Wolfenstein3-D power-up handler.
  18. *
  19. * Author: Michael Liebscher <johnnycanuck@users.sourceforge.net>
  20. * Date: 2004
  21. *
  22. * Acknowledgement:
  23. * Portion of this code was derived from NewWolf, and was originally
  24. * written by DarkOne the Hacker.
  25. *
  26. */
  27. /*
  28. Notes:
  29. This module is implemented by wolf_powerups.c
  30. */
  31. #ifndef __WOLF_POWERUPS_H__
  32. #define __WOLF_POWERUPS_H__
  33. typedef enum
  34. {
  35. //please provide description
  36. pow_gibs, // 1% if <=10%; SLURPIESND
  37. pow_gibs2, // 1% if <=10%; SLURPIESND
  38. pow_alpo, // 4% if <100%; HEALTH1SND
  39. pow_firstaid, // 25% if <100%; HEALTH2SND
  40. pow_key1, // gold key; GETKEYSND
  41. pow_key2, // silver key; GETKEYSND
  42. pow_key3, // not used
  43. pow_key4, // not used
  44. pow_cross, // 100pts; BONUS1SND
  45. pow_chalice, // 500pts; BONUS2SND
  46. pow_bible, // 1000pts; BONUS3SND
  47. pow_crown, // 5000pts; BONUS4SND
  48. pow_clip, // 8bul if <99bul; GETAMMOSND
  49. pow_clip2, // 4bul if <99bul; GETAMMOSND
  50. pow_machinegun, // machine gun; GETMACHINESND
  51. pow_chaingun, // gatling gun; GETGATLINGSND
  52. pow_food, // 10% if <100%; HEALTH1SND
  53. pow_fullheal, // 99%, 25bul; BONUS1UPSND
  54. pow_25clip, // 25bul if <99bul; GETAMMOBOXSND
  55. pow_spear, // spear of destiny!
  56. pow_last
  57. // add new types <!only!> here (after last)
  58. } pow_t;
  59. typedef struct powerup_s
  60. {
  61. int x, y;
  62. pow_t type;
  63. int sprite;
  64. } powerup_t;
  65. extern void Powerup_Reset( void );
  66. extern void Powerup_Spawn( int x, int y, int type );
  67. extern void Powerup_PickUp( int x, int y );
  68. #endif /* __WOLF_POWERUPS_H__ */