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 //-----------------------------------------------------------------------------
34 // Network play related stuff.
35 // There is a data struct that stores network
36 // communication related stuff, and another
37 // one that defines the actual packets to
41 #define DOOMCOM_ID 0x12345678l
43 // Max computers/players in a game.
47 // Networking and tick handling related.
59 // Network packet data.
63 // High bit is retransmit request.
65 // Only valid if NCMD_RETRANSMIT.
71 ticcmd_t cmds[BACKUPTICS];
80 // Supposed to be DOOMCOM_ID?
83 // DOOM executes an int to execute commands.
85 // Communication between DOOM and the driver.
86 // Is CMD_SEND or CMD_GET.
88 // Is dest for send, set by get (-1 = no packet).
91 // Number of bytes in doomdata to be sent
94 // Info common to all nodes.
95 // Console is allways node 0.
97 // Flag: 1 = no duplication, 2-5 = dup for slow nets.
99 // Flag: 1 = send a backup tic in every packet.
101 // Flag: 1 = deathmatch.
103 // Flag: -1 = new game, 0-5 = load savegame
105 short episode; // 1-3
109 // Info specific to this node.
113 // These are related to the 3-display mode,
114 // in which two drones looking left and right
115 // were used to render two additional views
116 // on two additional computers.
117 // Probably not operational anymore.
118 // 1 = left, 0 = center, -1 = right
123 // The packet data to be sent.
130 // Create any new ticcmds and broadcast to other players.
131 void NetUpdate (void);
133 // Broadcasts special packets to other players
134 // to notify of game exit
135 void D_QuitNetGame (void);
137 //? how many ticks to run?
138 void TryRunTics (void);
143 //-----------------------------------------------------------------------------
147 //-----------------------------------------------------------------------------