DEMO.H 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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/demo.h $
  15. * $Revision: 2.0 $
  16. * $Author: john $
  17. * $Date: 1995/02/27 11:27:03 $
  18. *
  19. * Demo constants.
  20. *
  21. * $Log: demo.h $
  22. * Revision 2.0 1995/02/27 11:27:03 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.5 1994/05/14 17:16:10 matt
  27. * Got rid of externs in source (non-header) files
  28. *
  29. * Revision 1.4 1994/02/02 09:40:49 mike
  30. * prototypes, change MAX_DEMO_RECORDS.
  31. *
  32. * Revision 1.3 1994/02/01 15:15:02 mike
  33. * Self-running demo code.
  34. *
  35. * Revision 1.2 1994/02/01 11:51:49 mike
  36. * demo functions.
  37. *
  38. * Revision 1.1 1994/01/31 19:15:05 mike
  39. * Initial revision
  40. *
  41. *
  42. */
  43. #ifndef _DEMO_H
  44. #define _DEMO_H
  45. #include "types.h"
  46. #include "vecmat.h"
  47. #define DEMO_INACTIVE 0
  48. #define DEMO_RECORDING 1
  49. #define DEMO_PLAYBACK 2
  50. #define MAX_DEMO_RECS 1000 // a recording is made once/second (search for 65536 in demo.c)
  51. typedef struct _demorec {
  52. fix time;
  53. fix x,y,z;
  54. fixang p,b,h;
  55. short segnum;
  56. // short specials;
  57. } demorec;
  58. extern int Demo_mode, Auto_demo, demo_loaded;
  59. extern void start_demo_playback(void);
  60. extern void start_demo_recording(void);
  61. extern void record_demo_frame(void);
  62. extern int get_demo_data(fix curtime, vms_vector *pos, vms_angvec *pbh, short *segnum, int *do_fire);
  63. extern void demo_startup(void);
  64. #endif