CNTRLCEN.H 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
  3. SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
  4. END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
  5. ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
  6. IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
  7. SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
  8. FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
  9. CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
  10. AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
  11. COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
  12. */
  13. /*
  14. * $Source: f:/miner/source/main/rcs/cntrlcen.h $
  15. * $Revision: 2.0 $
  16. * $Author: john $
  17. * $Date: 1995/02/27 11:30:40 $
  18. *
  19. * Header for cntrlcen.c
  20. *
  21. * $Log: cntrlcen.h $
  22. * Revision 2.0 1995/02/27 11:30:40 john
  23. * New version 2.0, which has no anonymous unions, builds with
  24. * Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
  25. *
  26. * Revision 1.7 1995/02/01 16:34:14 john
  27. * Linted.
  28. *
  29. * Revision 1.6 1995/01/03 20:19:14 john
  30. * Pretty good working version of game save.
  31. *
  32. * Revision 1.5 1994/11/08 12:18:28 mike
  33. * small explosions on control center.
  34. *
  35. * Revision 1.4 1994/11/02 18:00:12 rob
  36. * Added extern for Gun_pos array for network hooks.
  37. *
  38. * Revision 1.3 1994/10/20 09:47:37 mike
  39. * *** empty log message ***
  40. *
  41. * Revision 1.2 1994/10/17 21:35:10 matt
  42. * Added support for new Control Center/Main Reactor
  43. *
  44. * Revision 1.1 1994/10/17 20:24:28 matt
  45. * Initial revision
  46. *
  47. *
  48. */
  49. #ifndef _CNTRLCEN_H
  50. #define _CNTRLCEN_H
  51. #include "vecmat.h"
  52. #include "object.h"
  53. #define MAX_CONTROLCEN_GUNS 4
  54. #define CONTROLCEN_WEAPON_NUM 6
  55. extern int N_controlcen_guns;
  56. extern int Control_center_been_hit;
  57. extern int Control_center_player_been_seen;
  58. extern int Control_center_next_fire_time;
  59. extern int Control_center_present;
  60. extern int Dead_controlcen_object_num;
  61. extern vms_vector controlcen_gun_points[MAX_CONTROLCEN_GUNS];
  62. extern vms_vector controlcen_gun_dirs[MAX_CONTROLCEN_GUNS];
  63. extern vms_vector Gun_pos[MAX_CONTROLCEN_GUNS];
  64. //return the position & orientation of a gun on the control center object
  65. extern void calc_controlcen_gun_point(vms_vector *gun_point,vms_vector *gun_dir,object *obj,int gun_num);
  66. //do whatever this thing does in a frame
  67. extern void do_controlcen_frame(object *obj);
  68. // Initialize control center for a level.
  69. // Call when a new level is started.
  70. extern void init_controlcen_for_level(void);
  71. extern void do_controlcen_destroyed_stuff(object *objp);
  72. extern void do_controlcen_dead_frame(void);
  73. #endif
  74.