Debian Codegraph @

prboom2/src/dsda/excmd.h

raw
1 //
2 // Copyright(C) 2021 by Ryan Krafnick
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // DESCRIPTION:
15 // DSDA Extended Cmd
16 //
17
18 #ifndef __DSDA_EXCMD__
19 #define __DSDA_EXCMD__
20
21 #include "d_ticcmd.h"
22
23 #define XC_JUMP 0x01
24 #define XC_SAVE 0x02
25 #define XC_LOAD 0x04
26 #define XC_GOD 0x08
27 #define XC_NOCLIP 0x10
28 #define XC_LOOK 0x20
29
30 #define XC_LOOK_RESET -32768
31
32 void dsda_EnableExCmd(void);
33 void dsda_DisableExCmd(void);
34 dboolean dsda_AllowExCmd(void);
35 dboolean dsda_ExCmdDemo(void);
36 void dsda_EnableCasualExCmdFeatures(void);
37 dboolean dsda_AllowCasualExCmdFeatures(void);
38 dboolean dsda_AllowJumping(void);
39 dboolean dsda_FreeAim(void);
40 void dsda_ReadExCmd(ticcmd_t* cmd, const byte** p);
41 void dsda_WriteExCmd(char** p, ticcmd_t* cmd);
42 void dsda_ResetExCmdQueue(void);
43 void dsda_PopExCmdQueue(ticcmd_t* cmd);
44 void dsda_QueueExCmdJump(void);
45 void dsda_QueueExCmdLook(short look);
46 void dsda_QueueExCmdSave(int slot);
47 void dsda_QueueExCmdLoad(int slot);
48 void dsda_QueueExCmdGod(void);
49 void dsda_QueueExCmdNoClip(void);
50
51 #endif