Debian Codegraph @

terps/plus/extracommands.h

raw symbols SCIP
1 //
2 // extracommands.h
3 // Part of Plus, an interpreter for Scott Adams Graphic Adventures Plus
4 //
5 // Created by Petter Sjölund on 2022-06-28.
6 //
7
8 #ifndef extracommands_h
9 #define extracommands_h
10
11 #include <stdio.h>
12
13 typedef enum {
14 COM_IT = 1,
15 COM_AGAIN = 2,
16 COM_WHERE = 4,
17 COM_UNDO = 5,
18 COM_TRANSCRIPT = 6,
19 COM_TRANSCRIPT_OFF = 7,
20 COM_RESTART = 8,
21 COM_RAMSAVE = 9,
22 COM_RAMRESTORE = 10,
23 COM_ON = 11,
24 COM_OFF = 12,
25 COM_MAND = 13,
26 COM_LOAD = 14,
27 COM_SAVE = 15,
28 COM_RAM = 16,
29 COM_GAME = 17,
30 } ExtraWordType;
31
32 typedef enum {
33 RESULT_AGAIN,
34 RESULT_ONE_WORD,
35 RESULT_TWO_WORDS,
36 RESULT_NOT_UNDERSTOOD
37 } ExtraCommandResult;
38
39 ExtraCommandResult PerformExtraCommand(int command, int nextcommand);
40
41 #endif /* extracommands_h */