File: cmd.def

package info (click to toggle)
xconq 7.2.2-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 8,296 kB
  • ctags: 9,199
  • sloc: ansic: 107,849; sh: 2,108; perl: 2,057; makefile: 1,177; sed: 161; csh: 50; awk: 49; lisp: 39
file content (425 lines) | stat: -rw-r--r-- 8,565 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
/* Definitions of cross-interface commands for Xconq.
   Copyright (C) 1993-1997 Stanley T. Shebs.

Xconq is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.  See the file COPYING.  */

DEF_CMD(  ' ' , "reserve", "U", do_reserve,
  "put into reserve for this turn")

DEF_CMD(  '!' , "detonate", "U", do_detonate,
  "detonate")

/* _CMD(  '"' , "", "", do_,
  "") */

DEF_CMD(  '#' , "distance", "", do_distance,
  "display distance to selected place")

/* _CMD(  '$' , "", "", do_,
  "") */

/* _CMD(  '%' , "", "", do_,
  "") */

/* _CMD(  '&' , "", "", do_,
  "") */

/* _CMD(  ''' , "", "", do_,
  "") */

/* _CMD(  '(' , "", "", do_,
  "") */

/* _CMD(  ')' , "", "", do_,
  "") */

/* _CMD(  '*' , "", "", do_,
  "") */

DEF_CMD(  '+' , "up", "U", do_up,
  "increase altitude")

/* _CMD(  ',' , "", "", do_,
  "") */

DEF_CMD(  '-' , "down", "U", do_down,
  "decrease altitude")

DEF_CMD(  '.' , "recenter", "", do_recenter,
  "center around the current point or selected units")

/* _CMD(  '/' , "", "", do_,
  "") */

/* _CMD(  ':' , "", "", do_,
  "") */

/* _CMD(  ';' , "", "", do_,
  "") */

/* _CMD(  '<' , "", "", do_,
  "") */

/* _CMD(  '=' , "", "", do_,
  "") */

/* _CMD(  '>' , "", "", do_,
  "") */

DEF_CMD(  '?' , "help", "", do_help,
  "display help info")

/* DEF_CMD(  '@' , "angle", "", do_set_map_angle,
  "change the angle at which a map is viewed") */

/* _CMD(  '[' , "", "", do_,
  "") */

/* _CMD(C('['), "", "", do_,
  "") */

/* _CMD(  '\\' , "", "", do_,
  "") */

/* _CMD(C('\\'), "", "", do_,
  "") */

/* _CMD(  ']' , "", "", do_,
  "") */

/* _CMD(C(']'), "", "", do_,
  "") */

/* _CMD(  '^' , "", "", do_,
  "") */

/* _CMD(C('^'), "", "", do_,
  "") */

/* _CMD(  '_' , "", "", do_,
  "") */

/* _CMD(C('_'), "", "", do_,
  "") */

/* _CMD(  '`' , "", "", do_,
  "") */

/* _CMD(  '{' , "zoom-out", "", do_,
  "") */

/* _CMD(  '|' , "", "", do_,
  "") */

/* _CMD(  '}' , "zoom-in", "", do_,
  "") */

/* _CMD(  '~' , "", "", do_,
  "") */

DEF_CMD(  'a' , "attack", "U", do_attack,
  "attack")

DEF_CMD(  'A' , "add-terrain", "U", do_add_terrain,
  "add (or alter) terrain")

DEF_CMD(C('A'), "auto", "U", do_auto,
  "toggle AI control of unit")

DEF_CMD(  'b' , "southwest", "U", do_dir,
  "move southwest")

DEF_CMD(  'B' , "southwest-multiple", "U", do_dir_multiple,
  "move southwest multiple")

/* _CMD(C('B'), "", "", do_,
  "") */

/* _CMD(  'c' , "", "", do_,
  "") */

DEF_CMD(  'C' , "clear-plan", "U", do_clear_plan,
  "clear unit plans")

/* _CMD(C('C'), "", "", do_,
  "") */

DEF_CMD(  'd' , "delay", "U", do_delay,
  "delay unit action until after others have moved")

DEF_CMD(  'D' , "disband", "U", do_disband,
  "disband a unit")

DEF_CMD(C('D'), "detach", "U", do_detach,
  "detach part of a unit")

DEF_CMD(  'e' , "embark", "U", do_embark,
  "embark units onto transport occupying same unit")

/* _CMD(  'E' , "", "", do_,
  "") */

DEF_CMD(C('E'), "disembark", "U", do_disembark,
  "disembark from transport into same cell")

DEF_CMD(  'f' , "fire", "U", do_fire,
  "fire at a unit")

DEF_CMD(  'F' , "formation", "U", do_set_formation,
  "set position of units relative to another")

DEF_CMD(C('F'), "fire-into", "U", do_fire_into,
  "fire into a location")

DEF_CMD(  'g' , "give", "U", do_give,
  "give supplies")

DEF_CMD(  'G' , "give-unit", "US", do_give_unit,
  "give unit to side")

/* _CMD(C('G'), "", "", do_,
  "") */

DEF_CMD(  'h' , "west", "U", do_dir,
  "move west")

DEF_CMD(  'H' , "west-multiple", "U", do_dir_multiple,
  "move west multiple")

/* _CMD(C('H'), "", "", do_,
  "") */

DEF_CMD(  'i' , "in", "U", do_occupant,
  "look at occupant(s)")

DEF_CMD(  'I' , "idle", "U", do_idle,
  "idle (sentry) for a given time")

/* _CMD(C('I'), "", "", do_,
  "") */

DEF_CMD(  'j' , "south", "U", do_dir,
  "move south")

DEF_CMD(  'J' , "south-multiple", "U", do_dir_multiple,
  "move south multiple")

/* _CMD(C('J'), "", "", do_,
  "") */

DEF_CMD(  'k' , "north", "U", do_dir,
  "move north")

DEF_CMD(  'K' , "north-multiple", "U", do_dir_multiple,
  "move north multiple")

/* _CMD(C('K'), "", "", do_,
  "") */

DEF_CMD(  'l' , "east", "U", do_dir,
  "move east")

DEF_CMD(  'L' , "east-multiple", "U", do_dir_multiple,
  "move east multiple")

/* _CMD(C('L'), "", "", do_,
  "") */

DEF_CMD(  'm' , "move-to", "U", do_move_to,
  "move to a place")

DEF_CMD(  'M' , "message", "S", do_message,
  "send a message to another side or sides")

DEF_CMD(C('M'), "end-turn", "", do_end_turn,
  "end activity for this turn")

DEF_CMD(  'n' , "southeast", "U", do_dir,
  "move southeast")

DEF_CMD(  'N' , "southeast-multiple", "U", do_dir_multiple,
  "move southeast multiple")

/* _CMD(C('N'), "", "", do_,
  "") */

DEF_CMD(  'o' , "other", "", do_other,
  "other commands")

/* _CMD(  'O' , "", "", do_,
  "") */

/* _CMD(C('O'), "", "", do_,
  "") */

DEF_CMD(  'p' , "produce", "U", do_produce,
  "set material production")

DEF_CMD(  'P' , "produce-unit", "U", do_build,
  "set up construction tasks")

DEF_CMD(C('P'), "repair", "U", do_repair,
  "repair a unit")

/* _CMD(  'q' , "", "", do_,
  "") */

DEF_CMD(  'Q' , "quit", "", do_quit,
  "get out of the game")

/* _CMD(C('Q'), "", "", do_,
  "") */

DEF_CMD(  'r' , "return", "U", do_return,
  "return to a resupply point")

DEF_CMD(  'R' , "remove-terrain", "U", do_remove_terrain,
  "remove terrain")

DEF_CMD(C('R'), "refresh", "", do_refresh,
  "refresh/redraw display")

DEF_CMD(  's' , "sleep", "U", do_sleep,
  "go to sleep")

DEF_CMD(  'S' , "save", "", do_save,
  "save the game into a file")

/* _CMD(C('S'), "", "", do_,
  "") */

DEF_CMD(  't' , "take", "U", do_take,
  "take supplies from unit or terrain")

/* _CMD(  'T' , "", "", do_,
  "") */

/* _CMD(C('T'), "", "", do_,
  "") */

DEF_CMD(  'u' , "northeast", "U", do_dir,
  "move northeast")

DEF_CMD(  'U' , "northeast-multiple", "U", do_dir_multiple,
  "move northeast multiple")

/* _CMD(C('U'), "", "", do_,
  "") */

DEF_CMD(  'w' , "wake", "U", do_wake,
  "wake units up")

DEF_CMD(  'W' , "wakeall", "U", do_wake_all,
  "wake units and all their occupants up")

/* _CMD(C('W'), "", "", do_,
  "") */

/* _CMD(  'v' , "", "", do_,
  "") */

/* _CMD(  'V' , "", "", do_,
  "") */

/* _CMD(C('V'), "", "", do_,
  "") */

DEF_CMD(  'y' , "northwest", "U", do_dir,
  "move northwest")

DEF_CMD(  'Y' , "northwest-multiple", "U", do_dir_multiple,
  "move northwest multiple")

/* _CMD(C('Y'), "", "", do_,
  "") */

DEF_CMD(  'z' , "survey", "", do_survey,
  "switch between surveying and moving")

/* _CMD(  'Z' , "", "", do_,
  "") */

/* _CMD(C('Z'), "", "", do_,
  "") */

/* Commands with no dedicated single characters. */

DEF_CMD(   0  , "add-player", "", do_add_player,
  "add another player to the game")

DEF_CMD(   0  , "ai", "", do_ai_side,
  "switch side over to AI control")

DEF_CMD(   0  , "copying", "", do_copying,
  "display copying conditions")

DEF_CMD(   0  , "distrust", "", do_distrust,
  "declare lack of trust in a side")

DEF_CMD(   0  , "doctrine", "", do_doctrine,
  "examine and modify doctrine")

DEF_CMD(   0  , "draw", "", do_draw_willingness,
  "declare willingness to draw")

DEF_CMD(   0  , "follow-action", "", do_follow_action,
  "toggle action following")

DEF_CMD(   0  , "if", "", do_standing_orders,
  "set up standing orders")

DEF_CMD(   0  , "name", "U", do_name,
  "name a unit")

DEF_CMD(   0  , "print", "", do_print_view,
  "print a view of the world")

DEF_CMD(   0  , "rate", "", do_set_rate,
  "set AI play rate")

DEF_CMD(   0  , "release", "", do_release,
  "allow side to control itself")

DEF_CMD(   0  , "replan", "", do_force_global_replan,
  "")

DEF_CMD(   0  , "resign", "", do_resign,
  "")

DEF_CMD(   0  , "submit", "", do_submit,
  "allow side to be controlled by another")

DEF_CMD(   0  , "trust", "", do_trust,
  "declare trust in another side")

DEF_CMD(   0  , "version", "", do_version,
  "display version info")

DEF_CMD(   0  , "warranty", "", do_warranty,
  "display non-warranty")

#ifdef DESIGNERS

DEF_CMD(   0  , "design", "", do_design,
  "toggle designer abilities")

DEF_CMD(   0  , "gdl", "", do_gdl,
  "evaluate a GDL form")

#endif /* DESIGNERS */

#ifdef DEBUGGING

DEF_CMD(   0  , "D", "", do_debug,
  "toggle general debugging")

DEF_CMD(   0  , "DG", "", do_debugg,
  "toggle graphical interface debugging")

DEF_CMD(   0  , "DM", "", do_debugm,
  "toggle AI (mplayer) debugging")

#endif /* DEBUGGING */