home *** CD-ROM | disk | FTP | other *** search
/ Adventures in Heaven 2 / adventuresinheaven2powergamesfordosandwindows.iso / windows / arcade / cbzone / c_extern.h < prev    next >
C/C++ Source or Header  |  1992-05-27  |  6KB  |  300 lines

  1. /*
  2.  * c_externs.h
  3.  *  -- Todd W Mummert, December 1990, CMU
  4.  *
  5.  * Mostly a garbage file.  If all the world would get
  6.  * ANSI compilers, this file could actually be useful
  7.  * as we could then do argument checking.  Actually, I should
  8.  * #ifdef the arguments, but haven't gotten around to it yet.
  9.  */
  10.  
  11. #ifndef FunctionPrototypes
  12. #define FunctionPrototypes 0
  13. #endif
  14.  
  15. /* now some externs from c_gpr.c */
  16. extern Bool gprcondeventwait(
  17. #if FunctionPrototypes
  18.         char* /* key */,
  19.         Position_t* /* posn */
  20. #endif
  21. );
  22. extern void bitblt(
  23. #if FunctionPrototypes
  24.         Window_t* /* window */
  25. #endif
  26. );
  27. extern void clearentirescreen(
  28. #if FunctionPrototypes
  29. #endif
  30. );
  31. extern void clearrectangle(
  32. #if FunctionPrototypes
  33.         Window_t* /* window */,
  34.         Position_t* /* dsto */
  35. #endif
  36. );
  37. extern void drawrectangle(
  38. #if FunctionPrototypes
  39.         int /* x */,
  40.         int /* y */,
  41.         int /* width */,
  42.         int /* height */
  43. #endif
  44. );
  45. extern void flushwindow(
  46. #if FunctionPrototypes
  47. #endif
  48. );
  49. extern void gprcircle(
  50. #if FunctionPrototypes
  51.         Position_t* /* center */,
  52.         int /* radius */
  53. #endif
  54. );
  55. extern void gprcirclefilled(
  56. #if FunctionPrototypes
  57.         Position_t* /* center */,
  58.         int /* radius */
  59. #endif
  60. );
  61. extern void gprinqconfig(
  62. #if FunctionPrototypes
  63.         int* /* argc */,
  64.         char** /* argv */
  65. #endif
  66. );
  67. extern void gprinqcursor(
  68. #if FunctionPrototypes
  69.         Position_t* /* posn */
  70. #endif
  71. );
  72. extern Font gprloadfontfile(
  73. #if FunctionPrototypes
  74.         char* /* name */
  75. #endif
  76. );
  77. extern void gprsetclippingactive(
  78. #if FunctionPrototypes
  79.         Bool /* flag */
  80. #endif
  81. );
  82. extern void gprsetclipwindow(
  83. #if FunctionPrototypes
  84.         Window_t* /* window */
  85. #endif
  86. );
  87. extern void gprsetcursorposition(
  88. #if FunctionPrototypes
  89.         Position_t* /* posn */
  90. #endif
  91. );
  92. extern void gprsetdrawvalue(
  93. #if FunctionPrototypes
  94.         int /* index */
  95. #endif
  96. );
  97. extern void gprsettextbackgroundvalue(
  98. #if FunctionPrototypes
  99.         int /* index */
  100. #endif
  101. );
  102. extern void gprsettextfont(
  103. #if FunctionPrototypes
  104.         Font /* font */
  105. #endif
  106. );
  107. extern void gprsettextvalue(
  108. #if FunctionPrototypes
  109.         int /* index */
  110. #endif
  111. );
  112. extern void multiline(
  113. #if FunctionPrototypes
  114.         XSegment* /* segments */,
  115.         int /* number */
  116. #endif
  117. );
  118. extern void polyline(
  119. #if FunctionPrototypes
  120.         XPoint* /* points */,
  121.         int /* number */
  122. #endif
  123. );
  124. extern void printstring(
  125. #if FunctionPrototypes
  126.         int /* x */,
  127.         int /* y */,
  128.         char* /* string */,
  129.         int /* nchars */
  130. #endif
  131. );
  132. extern void putpixmap(
  133. #if FunctionPrototypes
  134.         int /* i */,
  135.         int* /* p */
  136. #endif
  137. );
  138. extern void removepixmap(
  139. #if FunctionPrototypes
  140.         int /* i */,
  141.         int* /* p */
  142. #endif
  143. );
  144. extern void timeclock(
  145. #if FunctionPrototypes
  146.         struct timeval* /* tval */
  147. #endif
  148. );
  149. extern void tonetime(
  150. #if FunctionPrototypes
  151. #endif
  152. );
  153. extern void waitforkey(
  154. #if FunctionPrototypes
  155.         char /* c */
  156. #endif
  157. );
  158.  
  159. /* now some externs from c_graphics.c */
  160. extern void clearscreen(
  161. #if FunctionPrototypes
  162. #endif
  163. );
  164. extern void drawcracks(
  165. #if FunctionPrototypes
  166. #endif
  167. );
  168. extern void drawhorizon(
  169. #if FunctionPrototypes
  170.         float /* azm */
  171. #endif
  172. );
  173. extern void joystick(
  174. #if FunctionPrototypes
  175.         int* /* position */,
  176.         Genericp /* pl */,
  177.         Bool /* sens */
  178. #endif
  179. );
  180. extern void message(
  181. #if FunctionPrototypes
  182.         int /* number */,
  183.         Bool /* bell */
  184. #endif
  185. );
  186. extern void scanner(
  187. #if FunctionPrototypes
  188.         Genericp /* o */
  189. #endif
  190. );
  191. extern void screeninit(
  192. #if FunctionPrototypes
  193. #endif
  194. );
  195. extern void staticscreen(
  196. #if FunctionPrototypes
  197. #endif
  198. );
  199. extern void updatedisplay(
  200. #if FunctionPrototypes
  201.         Bool /* missile */,
  202.         Bool /* lander */,
  203.     LONG /* score */,
  204.         int /* numleft */,
  205.         Bool /* sens */,
  206.         Bool /* reset */
  207. #endif
  208. );
  209. extern void xhairs(
  210. #if FunctionPrototypes
  211.         Bool /* aligned */
  212. #endif
  213. );
  214.  
  215. /* now some externs from c_explode.c */
  216. extern void explodeobject(
  217. #if FunctionPrototypes
  218. #endif
  219. );
  220. extern void explodesalvo(
  221. #if FunctionPrototypes
  222.         Genericp /* g */,
  223.         Genericp /* pl */
  224. #endif
  225. );
  226.  
  227. /* now some externs from c_move.c */
  228. extern void movecopter(
  229. #if FunctionPrototypes
  230.         Genericp /* g */,
  231.         Genericp /* pl */
  232. #endif
  233. );
  234. extern void movelander(
  235. #if FunctionPrototypes
  236.         Genericp /* g */,
  237.         Genericp /* pl */
  238. #endif
  239. );
  240. extern void movemissile(
  241. #if FunctionPrototypes
  242.         Genericp /* g */,
  243.         Genericp /* pl */
  244. #endif
  245. );
  246. extern void movesuper(
  247. #if FunctionPrototypes
  248.         Genericp /* g */,
  249.         Genericp /* pl */
  250. #endif
  251. );
  252. extern void movetank(
  253. #if FunctionPrototypes
  254.         Genericp /* g */,
  255.         Genericp /* pl */
  256. #endif
  257. );
  258. extern void placeobjects(
  259. #if FunctionPrototypes
  260.         Genericp /* o */,
  261.         Bool /* missilerun */,
  262.     LONG /* score */
  263. #endif
  264. );
  265.  
  266. /* now some externs from c_draw.c */
  267. extern void drawobject(
  268. #if FunctionPrototypes
  269.         Genericp /* g */,
  270.         Genericp /* pl */
  271. #endif
  272. );
  273. extern void displayobject(
  274. #if FunctionPrototypes
  275.         DCp /* dc */
  276. #endif
  277. );
  278.  
  279. /* now some externs from c_scores.c */
  280. extern LONG scores(
  281. #if FunctionPrototypes
  282.     LONG /* score */
  283. #endif
  284. );
  285.  
  286. /* now some externs from c_parseopts.c */
  287. extern void parseopt(
  288. #if FunctionPrototypes
  289.         int /* argc */,
  290.         char** /* argv */,
  291.         Bool /* status */
  292. #endif
  293. );
  294.  
  295. /* let everybody know the options exist */
  296. extern Optionp opt;
  297.  
  298. /* also need to know if the player is paused */
  299. extern Bool paused;
  300.