KDEFS.H 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. /*
  2. * $Source: f:/miner/source/main/editor/rcs/kdefs.h $
  3. * $Revision: 2.1 $
  4. * $Author: yuan $
  5. * $Date: 1995/03/08 16:07:10 $
  6. *
  7. * Prototypes for functions called from keypresses or buttons.
  8. *
  9. * $Log: kdefs.h $
  10. * Revision 2.1 1995/03/08 16:07:10 yuan
  11. * Added segment sizing default functions.
  12. *
  13. * Revision 2.0 1995/02/27 11:34:34 john
  14. * Version 2.0! No anonymous unions, Watcom 10.0, with no need
  15. * for bitmaps.tbl.
  16. *
  17. * Revision 1.97 1995/01/12 12:10:22 yuan
  18. * Added coop object capability.
  19. *
  20. * Revision 1.96 1994/10/27 10:06:33 mike
  21. * kill macro stuff.
  22. *
  23. * Revision 1.95 1994/09/26 23:22:59 matt
  24. * Added functions to keep player's starting position from getting messed up
  25. *
  26. * Revision 1.94 1994/09/24 14:15:24 mike
  27. * Custom colored object support.
  28. *
  29. * Revision 1.93 1994/09/23 18:03:52 yuan
  30. * Finished wall checking code.
  31. *
  32. * Revision 1.92 1994/09/14 16:50:49 yuan
  33. * Added load mine only function
  34. *
  35. * Revision 1.91 1994/08/16 18:11:03 yuan
  36. * Maded C place you in the center of a segment.
  37. *
  38. * Revision 1.90 1994/08/15 17:47:55 yuan
  39. * Added external walls.
  40. *
  41. * Revision 1.89 1994/08/03 10:32:10 mike
  42. * Texture map propagation without uv assignment.
  43. *
  44. * Revision 1.88 1994/08/02 14:18:01 mike
  45. * Add Object dialog.
  46. *
  47. * Revision 1.87 1994/07/22 17:19:15 yuan
  48. * Working on dialog box for refuel/repair/material/control centers.
  49. *
  50. * Revision 1.86 1994/07/21 17:26:49 matt
  51. * When new mine created, the default save filename is now reset
  52. *
  53. * Revision 1.85 1994/07/21 12:47:26 mike
  54. * *** empty log message ***
  55. *
  56. * Revision 1.84 1994/07/14 14:49:19 yuan
  57. * Added prototype
  58. *
  59. * Revision 1.83 1994/07/14 14:43:09 yuan
  60. * Added new rotation functions
  61. *
  62. * Revision 1.82 1994/07/01 17:57:04 john
  63. * First version of not-working hostage system
  64. *
  65. *
  66. * Revision 1.81 1994/06/21 12:57:27 yuan
  67. * Remove center from segment function added to menu.
  68. *
  69. * Revision 1.80 1994/06/17 16:05:20 mike
  70. * Prototype set_average_light_on_all_quick.
  71. *
  72. * Revision 1.79 1994/05/31 16:43:24 john
  73. * Added hooks to create materialization centers.
  74. *
  75. * Revision 1.78 1994/05/27 10:34:40 yuan
  76. * Added new Dialog boxes for Walls and Triggers.
  77. *
  78. * Revision 1.77 1994/05/25 18:08:44 yuan
  79. * Revamping walls and triggers interface.
  80. * Wall interface complete, but triggers are still in progress.
  81. *
  82. * Revision 1.76 1994/05/09 23:34:04 mike
  83. * SubtractFromGroup, CreateSloppyAdjacentJointsGroup, ClearFoundList
  84. *
  85. * Revision 1.75 1994/05/03 18:31:17 mike
  86. * Add PerturbCurside.
  87. *
  88. * Revision 1.74 1994/05/03 11:04:39 mike
  89. * Add prototypes for new segment sizing functions.
  90. *
  91. * Revision 1.73 1994/04/29 10:32:04 yuan
  92. * Added door 8... Door typing system should be replaced soon.
  93. *
  94. */
  95. // In khelp.c
  96. int DoHelp();
  97. // In kcurve.c
  98. int InitCurve();
  99. int GenerateCurve();
  100. int DecreaseR4();
  101. int IncreaseR4();
  102. int DecreaseR1();
  103. int IncreaseR1();
  104. int DeleteCurve();
  105. int SetCurve();
  106. // In kmine.c
  107. int SaveMine();
  108. int LoadMine();
  109. int MineMenu();
  110. int CreateNewMine();
  111. int LoadOldMine();
  112. int SaveSituation();
  113. int LoadSituation();
  114. // In kgame.c
  115. void SetPlayerPosition(void);
  116. int SaveGameData();
  117. int LoadGameData();
  118. int LoadMineOnly();
  119. void ResetFilename();
  120. // In group.c
  121. int LoadGroup();
  122. int SaveGroup();
  123. int PrevGroup();
  124. int NextGroup();
  125. int CreateGroup();
  126. int SubtractFromGroup();
  127. int DeleteGroup();
  128. int MarkGroupSegment();
  129. int MoveGroup(void);
  130. int CopyGroup(void);
  131. int AttachSegmentNew();
  132. int UngroupSegment();
  133. int GroupSegment();
  134. int Degroup();
  135. int RotateGroup();
  136. // In segment.c
  137. void ToggleBottom();
  138. void make_curside_bottom_side();
  139. // In editor.c
  140. int UndoCommand();
  141. // In kview.c
  142. int ZoomOut();
  143. int ZoomIn();
  144. int MoveAway();
  145. int MoveCloser();
  146. int ToggleChaseMode();
  147. // In kbuild.c
  148. int CreateBridge();
  149. int FormJoint();
  150. int CreateAdjacentJoint();
  151. int CreateAdjacentJointsSegment();
  152. int CreateAdjacentJointsAll();
  153. int CreateSloppyAdjacentJoint();
  154. int CreateSloppyAdjacentJointsGroup();
  155. // In ksegmove.c
  156. int DecreaseHeading();
  157. int IncreaseHeading();
  158. int DecreasePitch();
  159. int IncreasePitch();
  160. int DecreaseBank();
  161. int IncreaseBank();
  162. // In ksegsel.c
  163. int SelectCurrentSegForward();
  164. int SelectCurrentSegBackward();
  165. int SelectNextSide();
  166. int SelectPrevSide();
  167. int CopySegToMarked();
  168. int SelectBottom();
  169. int SelectFront();
  170. int SelectTop();
  171. int SelectBack();
  172. int SelectLeft();
  173. int SelectRight();
  174. // In ksegsize.c
  175. int IncreaseSegLength();
  176. int DecreaseSegLength();
  177. int DecreaseSegWidth();
  178. int IncreaseSegWidth();
  179. int IncreaseSegHeight();
  180. int DecreaseSegHeight();
  181. int ToggleSegSizeMode();
  182. int PerturbCurside();
  183. int PerturbCursideBig();
  184. int IncreaseSegLengthBig();
  185. int DecreaseSegLengthBig();
  186. int DecreaseSegWidthBig();
  187. int IncreaseSegWidthBig();
  188. int IncreaseSegHeightBig();
  189. int DecreaseSegHeightBig();
  190. int IncreaseSegLengthDefault();
  191. int DecreaseSegLengthDefault();
  192. int IncreaseSegWidthDefault();
  193. int DecreaseSegWidthDefault();
  194. int IncreaseSegHeightDefault();
  195. int DecreaseSegHeightDefault();
  196. // In ktmap.c
  197. int AssignTexture();
  198. int AssignTexture2();
  199. int ClearTexture2();
  200. int PropagateTextures();
  201. int PropagateTexturesMove();
  202. int PropagateTexturesMoveUVs();
  203. int PropagateTexturesUVs();
  204. int PropagateTexturesSelected();
  205. //--//// In macro.c
  206. //--//int MacroMenu();
  207. //--//int MacroPlayFast();
  208. //--//int MacroPlayNormal();
  209. //--//int MacroRecordAll();
  210. //--//int MacroRecordKeys();
  211. //--//int MacroSave();
  212. //--//int MacroLoad();
  213. // In editor.c
  214. int medlisp_update_screen();
  215. int medlisp_delete_segment(void);
  216. int medlisp_scale_segment(void);
  217. int medlisp_rotate_segment(void);
  218. int medlisp_add_segment();
  219. int AttachSegment();
  220. int DeleteSegment();
  221. int DosShell();
  222. int CallLisp();
  223. int ExitEditor();
  224. int ShowAbout();
  225. int ExchangeMarkandCurseg();
  226. int CopySegtoMarked();
  227. int med_keypad_goto_prev();
  228. int med_keypad_goto_next();
  229. int med_keypad_goto();
  230. int med_increase_tilings();
  231. int med_decrease_tilings();
  232. int ToggleAutosave();
  233. int MarkStart();
  234. int MarkEnd();
  235. // Texture.c
  236. int TexFlipX();
  237. int TexFlipY();
  238. int TexSlideUp();
  239. int TexSlideLeft();
  240. int TexSetDefault();
  241. int TexSlideRight();
  242. int TexRotateLeft();
  243. int TexSlideDown();
  244. int TexRotateRight();
  245. int TexSelectActiveEdge();
  246. int TexRotate90Degrees();
  247. int TexIncreaseTiling();
  248. int TexDecreaseTiling();
  249. int TexSlideUpBig();
  250. int TexSlideLeftBig();
  251. int TexSlideRightBig();
  252. int TexRotateLeftBig();
  253. int TexSlideDownBig();
  254. int TexRotateRightBig();
  255. int TexStretchDown();
  256. int TexStretchUp();
  257. // object.c
  258. int ObjectPlaceObject();
  259. int ObjectMakeCoop();
  260. int ObjectPlaceObjectTmap();
  261. int ObjectDelete();
  262. int ObjectMoveForward();
  263. int ObjectMoveLeft();
  264. int ObjectSetDefault();
  265. int ObjectMoveRight();
  266. int ObjectMoveBack();
  267. int ObjectMoveDown();
  268. int ObjectMoveUp();
  269. int ObjectMoveNearer();
  270. int ObjectMoveFurther();
  271. int ObjectSelectNextinSegment();
  272. int ObjectSelectNextType();
  273. int ObjectDecreaseBank();
  274. int ObjectIncreaseBank();
  275. int ObjectDecreasePitch();
  276. int ObjectIncreasePitch();
  277. int ObjectDecreaseHeading();
  278. int ObjectIncreaseHeading();
  279. int ObjectResetObject();
  280. // elight.c
  281. int LightSelectNextVertex();
  282. int LightSelectNextEdge();
  283. int LightCopyIntensity();
  284. int LightCopyIntensitySegment();
  285. int LightDecreaseLightVertex();
  286. int LightIncreaseLightVertex();
  287. int LightDecreaseLightSide();
  288. int LightIncreaseLightSide();
  289. int LightDecreaseLightSegment();
  290. int LightIncreaseLightSegment();
  291. int LightSetMaximum();
  292. int LightSetDefault();
  293. int LightSetDefaultAll();
  294. int LightAmbientLighting();
  295. // seguvs.c
  296. int fix_bogus_uvs_on_side();
  297. int fix_bogus_uvs_all();
  298. void set_average_light_on_curside(void);
  299. void set_average_light_on_all(void);
  300. void set_average_light_on_all_quick(void);
  301. // Miscellaneous, please put in correct file if you have time
  302. int IncreaseDrawDepth();
  303. int DecreaseDrawDepth();
  304. int GotoGame();
  305. int GotoGameScreen();
  306. int DropIntoDebugger();
  307. int CreateDefaultNewSegment();
  308. int CreateDefaultNewSegmentandAttach();
  309. int ClearSelectedList();
  310. int ClearFoundList();
  311. int SortSelectedList();
  312. int SetPlayerFromCurseg();
  313. int SetPlayerFromCursegAndRotate();
  314. int SetPlayerFromCursegMinusOne();
  315. int FindConcaveSegs();
  316. int SelectNextFoundSeg();
  317. int SelectPreviousFoundSeg(void);
  318. int do_reset_orient();
  319. int GameZoomOut();
  320. int GameZoomIn();
  321. // John's temp page stuff
  322. int medtmp_set_page();
  323. // In objpage.c
  324. int objpage_goto_next_object();
  325. // In medsel.c
  326. extern int SortSelectedList(void);
  327. extern int SelectNextFoundSeg(void);
  328. extern int SelectPreviousFoundSeg(void);
  329. // In wall.c
  330. extern int wall_add_blastable(void);
  331. extern int wall_add_door(void);
  332. extern int wall_add_closed_wall(void);
  333. extern int wall_add_external_wall(void);
  334. extern int wall_lock_door(void);
  335. extern int wall_unlock_door(void);
  336. extern int wall_automate_door(void);
  337. extern int wall_deautomate_door(void);
  338. extern int wall_add_illusion(void);
  339. extern int wall_remove(void);
  340. extern int wall_restore_all(void);
  341. extern int wall_assign_door_1(void);
  342. extern int wall_assign_door_2(void);
  343. extern int wall_assign_door_3(void);
  344. extern int wall_assign_door_4(void);
  345. extern int wall_assign_door_5(void);
  346. extern int wall_assign_door_6(void);
  347. extern int wall_assign_door_7(void);
  348. extern int wall_assign_door_8(void);
  349. extern int do_wall_dialog(void);
  350. extern int do_trigger_dialog(void);
  351. extern int check_walls(void);
  352. extern int delete_all_walls(void);
  353. // In centers.c
  354. extern int do_centers_dialog(void);
  355. // In switch.c
  356. //extern int trigger_add_damage(void);
  357. //extern int trigger_add_blank(void);
  358. //extern int trigger_add_exit(void);
  359. //extern int trigger_add_repair(void);
  360. //extern int trigger_control(void);
  361. //extern int trigger_remove(void);
  362. //extern int trigger_add_if_control_center_dead(void);
  363. extern int bind_wall_to_control_trigger(void);
  364. // In med.c
  365. extern int fuelcen_create_from_curseg();
  366. extern int repaircen_create_from_curseg();
  367. extern int controlcen_create_from_curseg();
  368. extern int robotmaker_create_from_curseg();
  369. extern int fuelcen_reset_all();
  370. extern void RestoreGameState();
  371. extern int fuelcen_delete_from_curseg();
  372. // In editor\robot.c
  373. extern int do_robot_dialog();
  374. extern int do_object_dialog();
  375. // In editor\hostage.c
  376. extern int do_hostage_dialog();
  377.