home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / spiele / argon / argon.exe / src / argonv.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-25  |  1.8 KB  |  71 lines

  1. /*
  2.   argonv.h
  3.  
  4.   T.Harbaum@tu-bs.de - http://www.ibr.cs.tu-bs.de/~harbaum/pilot
  5.  
  6.   This program is distributed in the hope that it will be useful,
  7.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  8.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9.   GNU General Public License for more details.
  10.  
  11. */
  12.  
  13. #ifndef __ARGONV_H__
  14. #define __ARGONV_H__
  15.  
  16. #include <Pilot.h>
  17. #include "argonvRsc.h"
  18. #include "video.h"
  19.  
  20. #define CREATOR 'ArgV'
  21.  
  22. /* various damages */
  23. #define DAMAGE_WALL     1
  24. #define DAMAGE_FIZZLE   1  // this applies multiple times
  25. #define DAMAGE_ALIEN    5
  26. #define DAMAGE_BOMB    10
  27. #define DAMAGE_DESTROY -1
  28. #define DAMAGE_RELOAD  -2
  29. extern void damage(int amount);
  30.  
  31. /* shot modes */
  32. #define SHOT_SINGLE     0
  33. #define SHOT_DOUBLE     1
  34. #define SHOT_TRIPLE     2
  35. extern int shot_mode, shot_reload;
  36.  
  37. /* title/game state */
  38. #define STATE_RUNNING   0
  39. #define STATE_NAME      1
  40. #define STATE_TITLE     2
  41. #define STATE_HISCORE   3
  42. #define STATE_HELP      4
  43. #define STATE_WRAP      5
  44.  
  45. /* wave stuff */
  46. #define WAVE_PAUSE  20
  47. #define WAVE_INIT   100
  48.  
  49. /* scores */
  50. #define SCORE_ALIEN   1
  51. #define SCORE_10      10     // wave completed
  52. #define SCORE_100     100    // bonus
  53. #define SCORE_STAGE   1000   // stage finished 
  54. extern void score_inc(int amount);
  55.  
  56. /* player ship functions */
  57. extern void ship_save_position(void);
  58.  
  59. /* all kinds of prototypes */
  60. extern void init_shot(void);
  61. extern void init_exp(void);
  62. extern void init_bomb(void);
  63. extern void init_wave(int type, int time);
  64. extern void init_extra(void);
  65. extern void new_message(char *s);
  66.  
  67. #define ALERTF(format, args...) { char tmp[64]; StrPrintF(tmp, format, ## args); FrmCustomAlert(alt_err, tmp,0,0); }
  68. #define PRINTF(format, args...) { char tmp[64]; StrPrintF(tmp, format, ## args); VideoDrawText(0,32,tmp); }
  69.  
  70. #endif
  71.