1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
6 // Copyright (C) 1993-1996 by id Software, Inc.
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.
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
20 //-----------------------------------------------------------------------------
35 // Network play related stuff.
36 // There is a data struct that stores network
37 // communication related stuff, and another
38 // one that defines the actual packets to
42 #define DOOMCOM_ID 0x12345678l
44 // Max computers/players in a game.
48 // Networking and tick handling related.
60 // Network packet data.
64 // High bit is retransmit request.
66 // Only valid if NCMD_RETRANSMIT.
72 ticcmd_t cmds[BACKUPTICS];
81 // Supposed to be DOOMCOM_ID?
84 // DOOM executes an int to execute commands.
86 // Communication between DOOM and the driver.
87 // Is CMD_SEND or CMD_GET.
89 // Is dest for send, set by get (-1 = no packet).
92 // Number of bytes in doomdata to be sent
95 // Info common to all nodes.
96 // Console is allways node 0.
98 // Flag: 1 = no duplication, 2-5 = dup for slow nets.
100 // Flag: 1 = send a backup tic in every packet.
102 // Flag: 1 = deathmatch.
104 // Flag: -1 = new game, 0-5 = load savegame
106 short episode; // 1-3
110 // Info specific to this node.
114 // These are related to the 3-display mode,
115 // in which two drones looking left and right
116 // were used to render two additional views
117 // on two additional computers.
118 // Probably not operational anymore.
119 // 1 = left, 0 = center, -1 = right
124 // The packet data to be sent.
131 // Create any new ticcmds and broadcast to other players.
132 void NetUpdate (void);
134 // Broadcasts special packets to other players
135 // to notify of game exit
136 void D_QuitNetGame (void);
138 //? how many ticks to run?
139 void TryRunTics (void);
144 //-----------------------------------------------------------------------------
148 //-----------------------------------------------------------------------------