home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Xconq 7.1.0 / src / xconq-7.1.0 / kernel / cmd.def < prev    next >
Encoding:
Text File  |  1996-07-07  |  8.1 KB  |  420 lines  |  [TEXT/R*ch]

  1. /* Definitions of cross-interface commands for Xconq.
  2.    Copyright (C) 1993, 1994, 1995 Stanley T. Shebs.
  3.  
  4. Xconq is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.  See the file COPYING.  */
  8.  
  9. DEF_CMD(  ' ' , "reserve", "U", do_reserve,
  10.   "put into reserve for this turn")
  11.  
  12. DEF_CMD(  '!' , "detonate", "U", do_detonate,
  13.   "detonate")
  14.  
  15. /* _CMD(  '"' , "", "", do_,
  16.   "") */
  17.  
  18. DEF_CMD(  '#' , "distance", "", do_distance,
  19.   "display distance to selected place")
  20.  
  21. /* _CMD(  '$' , "", "", do_,
  22.   "") */
  23.  
  24. /* _CMD(  '%' , "", "", do_,
  25.   "") */
  26.  
  27. /* _CMD(  '&' , "", "", do_,
  28.   "") */
  29.  
  30. /* _CMD(  ''' , "", "", do_,
  31.   "") */
  32.  
  33. /* _CMD(  '(' , "", "", do_,
  34.   "") */
  35.  
  36. /* _CMD(  ')' , "", "", do_,
  37.   "") */
  38.  
  39. /* _CMD(  '*' , "", "", do_,
  40.   "") */
  41.  
  42. /* _CMD(  '+' , "", "", do_,
  43.   "") */
  44.  
  45. /* _CMD(  ',' , "", "", do_,
  46.   "") */
  47.  
  48. /* _CMD(  '-' , "", "", do_,
  49.   "") */
  50.  
  51. DEF_CMD(  '.' , "recenter", "", do_recenter,
  52.   "center around the current point or selected units")
  53.  
  54. /* _CMD(  '/' , "", "", do_,
  55.   "") */
  56.  
  57. /* _CMD(  ':' , "", "", do_,
  58.   "") */
  59.  
  60. /* _CMD(  ';' , "", "", do_,
  61.   "") */
  62.  
  63. /* _CMD(  '<' , "", "", do_,
  64.   "") */
  65.  
  66. /* _CMD(  '=' , "", "", do_,
  67.   "") */
  68.  
  69. /* _CMD(  '>' , "", "", do_,
  70.   "") */
  71.  
  72. DEF_CMD(  '?' , "help", "", do_help,
  73.   "display help info")
  74.  
  75. /* DEF_CMD(  '@' , "angle", "", do_set_map_angle,
  76.   "change the angle at which a map is viewed") */
  77.  
  78. /* _CMD(  '[' , "", "", do_,
  79.   "") */
  80.  
  81. /* _CMD(C('['), "", "", do_,
  82.   "") */
  83.  
  84. /* _CMD(  '\\' , "", "", do_,
  85.   "") */
  86.  
  87. /* _CMD(C('\\'), "", "", do_,
  88.   "") */
  89.  
  90. /* _CMD(  ']' , "", "", do_,
  91.   "") */
  92.  
  93. /* _CMD(C(']'), "", "", do_,
  94.   "") */
  95.  
  96. /* _CMD(  '^' , "", "", do_,
  97.   "") */
  98.  
  99. /* _CMD(C('^'), "", "", do_,
  100.   "") */
  101.  
  102. /* _CMD(  '_' , "", "", do_,
  103.   "") */
  104.  
  105. /* _CMD(C('_'), "", "", do_,
  106.   "") */
  107.  
  108. /* _CMD(  '`' , "", "", do_,
  109.   "") */
  110.  
  111. /* _CMD(  '{' , "zoom-out", "", do_,
  112.   "") */
  113.  
  114. /* _CMD(  '|' , "", "", do_,
  115.   "") */
  116.  
  117. /* _CMD(  '}' , "zoom-in", "", do_,
  118.   "") */
  119.  
  120. /* _CMD(  '~' , "", "", do_,
  121.   "") */
  122.  
  123. DEF_CMD(  'a' , "attack", "U", do_attack,
  124.   "attack")
  125.  
  126. DEF_CMD(  'A' , "add-terrain", "U", do_add_terrain,
  127.   "add (or alter) terrain")
  128.  
  129. DEF_CMD(C('A'), "auto", "U", do_auto,
  130.   "toggle AI control of unit")
  131.  
  132. DEF_CMD(  'b' , "southwest", "U", do_dir,
  133.   "move southwest")
  134.  
  135. DEF_CMD(  'B' , "southwest-multiple", "U", do_dir_multiple,
  136.   "move southwest multiple")
  137.  
  138. /* _CMD(C('B'), "", "", do_,
  139.   "") */
  140.  
  141. /* _CMD(  'c' , "", "", do_,
  142.   "") */
  143.  
  144. DEF_CMD(  'C' , "clear-plan", "U", do_clear_plan,
  145.   "clear unit plans")
  146.  
  147. /* _CMD(C('C'), "", "", do_,
  148.   "") */
  149.  
  150. DEF_CMD(  'd' , "delay", "U", do_delay,
  151.   "delay unit action until after others have moved")
  152.  
  153. DEF_CMD(  'D' , "disband", "U", do_disband,
  154.   "disband a unit")
  155.  
  156. DEF_CMD(C('D'), "detach", "U", do_detach,
  157.   "detach part of a unit")
  158.  
  159. DEF_CMD(  'e' , "embark", "U", do_embark,
  160.   "embark units onto transport occupying same unit")
  161.  
  162. /* _CMD(  'E' , "", "", do_,
  163.   "") */
  164.  
  165. DEF_CMD(C('E'), "disembark", "U", do_disembark,
  166.   "disembark from transport into same cell")
  167.  
  168. DEF_CMD(  'f' , "fire", "U", do_fire,
  169.   "fire at a unit")
  170.  
  171. DEF_CMD(  'F' , "formation", "U", do_set_formation,
  172.   "set position of units relative to another")
  173.  
  174. DEF_CMD(C('F'), "fire-into", "U", do_fire_into,
  175.   "fire into a location")
  176.  
  177. DEF_CMD(  'g' , "give", "U", do_give,
  178.   "give supplies")
  179.  
  180. DEF_CMD(  'G' , "give-unit", "US", do_give_unit,
  181.   "give unit to side")
  182.  
  183. /* _CMD(C('G'), "", "", do_,
  184.   "") */
  185.  
  186. DEF_CMD(  'h' , "west", "U", do_dir,
  187.   "move west")
  188.  
  189. DEF_CMD(  'H' , "west-multiple", "U", do_dir_multiple,
  190.   "move west multiple")
  191.  
  192. /* _CMD(C('H'), "", "", do_,
  193.   "") */
  194.  
  195. DEF_CMD(  'i' , "in", "U", do_occupant,
  196.   "look at occupant(s)")
  197.  
  198. /* _CMD(  'I' , "", "", do_,
  199.   "") */
  200.  
  201. /* _CMD(C('I'), "", "", do_,
  202.   "") */
  203.  
  204. DEF_CMD(  'j' , "south", "U", do_dir,
  205.   "move south")
  206.  
  207. DEF_CMD(  'J' , "south-multiple", "U", do_dir_multiple,
  208.   "move south multiple")
  209.  
  210. /* _CMD(C('J'), "", "", do_,
  211.   "") */
  212.  
  213. DEF_CMD(  'k' , "north", "U", do_dir,
  214.   "move north")
  215.  
  216. DEF_CMD(  'K' , "north-multiple", "U", do_dir_multiple,
  217.   "move north multiple")
  218.  
  219. /* _CMD(C('K'), "", "", do_,
  220.   "") */
  221.  
  222. DEF_CMD(  'l' , "east", "U", do_dir,
  223.   "move east")
  224.  
  225. DEF_CMD(  'L' , "east-multiple", "U", do_dir_multiple,
  226.   "move east multiple")
  227.  
  228. /* _CMD(C('L'), "", "", do_,
  229.   "") */
  230.  
  231. DEF_CMD(  'm' , "move-to", "U", do_move_to,
  232.   "move to a place")
  233.  
  234. DEF_CMD(  'M' , "message", "S", do_message,
  235.   "send a message to another side or sides")
  236.  
  237. DEF_CMD(C('M'), "end-turn", "", do_end_turn,
  238.   "end activity for this turn")
  239.  
  240. DEF_CMD(  'n' , "southeast", "U", do_dir,
  241.   "move southeast")
  242.  
  243. DEF_CMD(  'N' , "southeast-multiple", "U", do_dir_multiple,
  244.   "move southeast multiple")
  245.  
  246. /* _CMD(C('N'), "", "", do_,
  247.   "") */
  248.  
  249. DEF_CMD(  'o' , "other", "", do_other,
  250.   "other commands")
  251.  
  252. /* _CMD(  'O' , "", "", do_,
  253.   "") */
  254.  
  255. /* _CMD(C('O'), "", "", do_,
  256.   "") */
  257.  
  258. DEF_CMD(  'p' , "produce", "U", do_produce,
  259.   "set material production")
  260.  
  261. DEF_CMD(  'P' , "produce-unit", "U", do_build,
  262.   "set up construction tasks")
  263.  
  264. /* _CMD(C('P'), "", "", do_,
  265.   "") */
  266.  
  267. /* _CMD(  'q' , "", "", do_,
  268.   "") */
  269.  
  270. DEF_CMD(  'Q' , "quit", "", do_quit,
  271.   "get out of the game")
  272.  
  273. /* _CMD(C('Q'), "", "", do_,
  274.   "") */
  275.  
  276. DEF_CMD(  'r' , "return", "U", do_return,
  277.   "return to a resupply point")
  278.  
  279. DEF_CMD(  'R' , "remove-terrain", "U", do_remove_terrain,
  280.   "remove terrain")
  281.  
  282. DEF_CMD(C('R'), "refresh", "", do_refresh,
  283.   "refresh/redraw display")
  284.  
  285. DEF_CMD(  's' , "sleep", "U", do_sleep,
  286.   "go to sleep")
  287.  
  288. DEF_CMD(  'S' , "save", "", do_save,
  289.   "save the game into a file")
  290.  
  291. /* _CMD(C('S'), "", "", do_,
  292.   "") */
  293.  
  294. DEF_CMD(  't' , "take", "U", do_take,
  295.   "take supplies from unit or terrain")
  296.  
  297. DEF_CMD(  'T' , "take-unit", "U", do_take_unit,
  298.   "take unit from another side")
  299.  
  300. /* _CMD(C('T'), "", "", do_,
  301.   "") */
  302.  
  303. DEF_CMD(  'u' , "northeast", "U", do_dir,
  304.   "move northeast")
  305.  
  306. DEF_CMD(  'U' , "northeast-multiple", "U", do_dir_multiple,
  307.   "move northeast multiple")
  308.  
  309. /* _CMD(C('U'), "", "", do_,
  310.   "") */
  311.  
  312. DEF_CMD(  'w' , "wake", "U", do_wake,
  313.   "wake units up")
  314.  
  315. DEF_CMD(  'W' , "wakeall", "U", do_wake_all,
  316.   "wake units and all their occupants up")
  317.  
  318. /* _CMD(C('W'), "", "", do_,
  319.   "") */
  320.  
  321. /* _CMD(  'v' , "", "", do_,
  322.   "") */
  323.  
  324. /* _CMD(  'V' , "", "", do_,
  325.   "") */
  326.  
  327. /* _CMD(C('V'), "", "", do_,
  328.   "") */
  329.  
  330. DEF_CMD(  'y' , "northwest", "U", do_dir,
  331.   "move northwest")
  332.  
  333. DEF_CMD(  'Y' , "northwest-multiple", "U", do_dir_multiple,
  334.   "move northwest multiple")
  335.  
  336. /* _CMD(C('Y'), "", "", do_,
  337.   "") */
  338.  
  339. DEF_CMD(  'z' , "survey", "", do_survey,
  340.   "switch between surveying and moving")
  341.  
  342. /* _CMD(  'Z' , "", "", do_,
  343.   "") */
  344.  
  345. /* _CMD(C('Z'), "", "", do_,
  346.   "") */
  347.  
  348. /* Commands with no dedicated single characters. */
  349.  
  350. DEF_CMD(   0  , "add-player", "", do_add_player,
  351.   "add another player to the game")
  352.  
  353. DEF_CMD(   0  , "ai", "", do_ai_side,
  354.   "switch side over to AI control")
  355.  
  356. DEF_CMD(   0  , "copying", "", do_copying,
  357.   "display copying conditions")
  358.  
  359. DEF_CMD(   0  , "distrust", "", do_distrust,
  360.   "declare lack of trust in a side")
  361.  
  362. DEF_CMD(   0  , "draw", "", do_draw_willingness,
  363.   "declare willingness to draw")
  364.  
  365. DEF_CMD(   0  , "follow-action", "", do_follow_action,
  366.   "toggle action following")
  367.  
  368. DEF_CMD(   0  , "if", "", do_standing_orders,
  369.   "set up standing orders")
  370.  
  371. DEF_CMD(   0  , "name", "U", do_name,
  372.   "name a unit")
  373.  
  374. DEF_CMD(   0  , "print", "", do_print_view,
  375.   "print a view of the world")
  376.  
  377. DEF_CMD(   0  , "rate", "", do_set_rate,
  378.   "set AI play rate")
  379.  
  380. DEF_CMD(   0  , "replan", "", do_force_global_replan,
  381.   "")
  382.  
  383. DEF_CMD(   0  , "resign", "", do_resign,
  384.   "")
  385.  
  386. DEF_CMD(   0  , "surrender-to", "", do_surrender_to,
  387.   "")
  388.  
  389. DEF_CMD(   0  , "trust", "", do_trust,
  390.   "declare trust in another side")
  391.  
  392. DEF_CMD(   0  , "version", "", do_version,
  393.   "display version info")
  394.  
  395. DEF_CMD(   0  , "warranty", "", do_warranty,
  396.   "display non-warranty")
  397.  
  398. #ifdef DESIGNERS
  399.  
  400. DEF_CMD(   0  , "design", "", do_design,
  401.   "toggle designer abilities")
  402.  
  403. DEF_CMD(   0  , "gdl", "", do_gdl,
  404.   "evaluate a GDL form")
  405.  
  406. #endif /* DESIGNERS */
  407.  
  408. #ifdef DEBUGGING
  409.  
  410. DEF_CMD(   0  , "D", "", do_debug,
  411.   "toggle general debugging")
  412.  
  413. DEF_CMD(   0  , "DG", "", do_debugg,
  414.   "toggle graphical interface debugging")
  415.  
  416. DEF_CMD(   0  , "DM", "", do_debugm,
  417.   "toggle AI (mplayer) debugging")
  418.  
  419. #endif /* DEBUGGING */
  420.