Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
325 serge 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
#ifdef __GNUG__
29
#pragma interface
30
#endif
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
    signed char forwardmove;    // *2048 for move
39
    signed 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
 
48
#endif
49
//-----------------------------------------------------------------------------
50
//
51
// $Log:$
52
//
53
//-----------------------------------------------------------------------------