diff options
author | Simon Howard | 2006-02-16 01:12:28 +0000 |
---|---|---|
committer | Simon Howard | 2006-02-16 01:12:28 +0000 |
commit | 4af352a213431e577a48dd8b3ece7822cb7168bc (patch) | |
tree | 12f055c323cb6de2c031fdfe2c1631f88be38d56 /src/net_defs.h | |
parent | b693c7f12dbbf367ef41c8aba08774968bfe0604 (diff) | |
download | chocolate-doom-4af352a213431e577a48dd8b3ece7822cb7168bc.tar.gz chocolate-doom-4af352a213431e577a48dd8b3ece7822cb7168bc.tar.bz2 chocolate-doom-4af352a213431e577a48dd8b3ece7822cb7168bc.zip |
Define a new type net_full_ticcmd_t, a structure containing all ticcmds
for a given tic. Store received game data in a receive window. Add
send queues for clients and add data from the receive window to
generate complete sets of ticcmds.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 369
Diffstat (limited to 'src/net_defs.h')
-rw-r--r-- | src/net_defs.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/net_defs.h b/src/net_defs.h index 906ad91a..ffb84152 100644 --- a/src/net_defs.h +++ b/src/net_defs.h @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: net_defs.h 323 2006-01-22 22:29:42Z fraggle $ +// $Id: net_defs.h 369 2006-02-16 01:12:28Z fraggle $ // // Copyright(C) 2005 Simon Howard // @@ -21,6 +21,12 @@ // 02111-1307, USA. // // $Log$ +// Revision 1.12 2006/02/16 01:12:28 fraggle +// Define a new type net_full_ticcmd_t, a structure containing all ticcmds +// for a given tic. Store received game data in a receive window. Add +// send queues for clients and add data from the receive window to +// generate complete sets of ticcmds. +// // Revision 1.11 2006/01/22 22:29:42 fraggle // Periodically request the time from clients to estimate their offset to // the server time. @@ -69,6 +75,7 @@ #ifndef NET_DEFS_H #define NET_DEFS_H +#include "doomdef.h" #include "doomtype.h" #include "d_ticcmd.h" @@ -180,5 +187,14 @@ typedef struct ticcmd_t cmd; } net_ticdiff_t; +// Complete set of ticcmds from all players + +typedef struct +{ + unsigned int seq; + boolean playeringame[MAXPLAYERS]; + net_ticdiff_t cmds[MAXPLAYERS]; +} net_full_ticcmd_t; + #endif /* #ifndef NET_DEFS_H */ |