]> git.lizzy.rs Git - plan9front.git/blob - sys/src/games/doom/d_ticcmd.h
merge
[plan9front.git] / sys / src / games / doom / d_ticcmd.h
1 // Emacs style mode select   -*- C++ -*- 
2 //-----------------------------------------------------------------------------
3 //
4 // $Id:$
5 //
6 // Copyright (C) 1993-1996 by id Software, Inc.
7 //
8 // This source is available for distribution and/or modification
9 // only under the terms of the DOOM Source Code License as
10 // published by id Software. All rights reserved.
11 //
12 // The source is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
15 // for more details.
16 //
17 // DESCRIPTION:
18 //      System specific interface stuff.
19 //
20 //-----------------------------------------------------------------------------
21
22
23 #ifndef __D_TICCMD__
24 #define __D_TICCMD__
25
26 #include "doomtype.h"
27
28
29 #pragma pack on
30
31
32 // The data sampled per tick (single player)
33 // and transmitted to other peers (multiplayer).
34 // Mainly movements/button commands per game tick,
35 // plus a checksum for internal state consistency.
36 typedef struct
37 {
38     char        forwardmove;    // *2048 for move
39     char        sidemove;       // *2048 for move
40     short       angleturn;      // <<16 for angle delta
41     short       consistancy;    // checks for net game
42     byte        chatchar;
43     byte        buttons;
44 } ticcmd_t;
45
46
47 #pragma pack off
48
49
50 #endif
51 //-----------------------------------------------------------------------------
52 //
53 // $Log:$
54 //
55 //-----------------------------------------------------------------------------