XenevaOS
Loading...
Searching...
No Matches
d_ticcmd.h
Go to the documentation of this file.
1//
2// Copyright(C) 1993-1996 Id Software, Inc.
3// Copyright(C) 1993-2008 Raven Software
4// Copyright(C) 2005-2014 Simon Howard
5//
6// This program is free software; you can redistribute it and/or
7// modify it under the terms of the GNU General Public License
8// as published by the Free Software Foundation; either version 2
9// of the License, or (at your option) any later version.
10//
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14// GNU General Public License for more details.
15//
16// DESCRIPTION:
17// System specific interface stuff.
18//
19
20
21#ifndef __D_TICCMD__
22#define __D_TICCMD__
23
24#include "doomtype.h"
25
26
27// The data sampled per tick (single player)
28// and transmitted to other peers (multiplayer).
29// Mainly movements/button commands per game tick,
30// plus a checksum for internal state consistency.
31
32typedef struct
33{
34 signed char forwardmove; // *2048 for move
35 signed char sidemove; // *2048 for move
36 short angleturn; // <<16 for angle delta
38 byte buttons;
39 // villsa [STRIFE] according to the asm,
40 // consistancy is a short, not a byte
41 byte consistancy; // checks for net game
42
43 // villsa - Strife specific:
44
47
48 // Heretic/Hexen specific:
49
50 byte lookfly; // look/fly up/down/centering
51 byte arti; // artitype_t to use
52} ticcmd_t;
53
54
55
56#endif
Definition d_ticcmd.h:33
byte arti
Definition d_ticcmd.h:51
signed char sidemove
Definition d_ticcmd.h:35
byte lookfly
Definition d_ticcmd.h:50
byte buttons2
Definition d_ticcmd.h:45
byte chatchar
Definition d_ticcmd.h:37
signed char forwardmove
Definition d_ticcmd.h:34
short angleturn
Definition d_ticcmd.h:36
byte consistancy
Definition d_ticcmd.h:41
byte buttons
Definition d_ticcmd.h:38
int inventory
Definition d_ticcmd.h:46