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.
59 #define PACKED __attribute__((packed))
61 #pragma options align=mac68k
66 // Network packet data.
70 // High bit is retransmit request.
72 // Only valid if NCMD_RETRANSMIT.
78 ticcmd_t cmds
[BACKUPTICS
];
87 // Supposed to be DOOMCOM_ID?
90 // DOOM executes an int to execute commands.
92 // Communication between DOOM and the driver.
93 // Is CMD_SEND or CMD_GET.
95 // Is dest for send, set by get (-1 = no packet).
98 // Number of bytes in doomdata to be sent
101 // Info common to all nodes.
102 // Console is allways node 0.
104 // Flag: 1 = no duplication, 2-5 = dup for slow nets.
106 // Flag: 1 = send a backup tic in every packet.
108 // Flag: 1 = deathmatch.
110 // Flag: -1 = new game, 0-5 = load savegame
112 short episode
; // 1-3
116 // Info specific to this node.
120 // These are related to the 3-display mode,
121 // in which two drones looking left and right
122 // were used to render two additional views
123 // on two additional computers.
124 // Probably not operational anymore.
125 // 1 = left, 0 = center, -1 = right
130 // The packet data to be sent.
136 #pragma options align=power
140 // Create any new ticcmds and broadcast to other players.
141 void NetUpdate (void);
143 // Broadcasts special packets to other players
144 // to notify of game exit
145 void D_QuitNetGame (void);
147 //? how many ticks to run?
148 void TryRunTics (void);
153 //-----------------------------------------------------------------------------
156 // Revision 1.1 2000/02/29 18:21:05 stegerg
157 // Doom port based on ADoomPPC. Read README.AROS!
160 //-----------------------------------------------------------------------------