home *** CD-ROM | disk | FTP | other *** search
/ WADS of WADS / WadsOfWads.1994.zip / MULTI / IPXSRC / DOOMNET.H < prev    next >
C/C++ Source or Header  |  1994-02-01  |  2KB  |  59 lines

  1. // doomnet.h
  2.  
  3. #define PEL_WRITE_ADR   0x3c8
  4. #define PEL_DATA        0x3c9
  5.  
  6. #define I_ColorBlack(r,g,b) {outp(PEL_WRITE_ADR,0);outp(PEL_DATA,r);outp(PEL_DATA,g);outp(PEL_DATA,b);};
  7.  
  8.  
  9.  
  10. #define    MAXNETNODES        8            // max computers in a game
  11. #define    MAXPLAYERS        4            // 4 players max + drones
  12.  
  13.  
  14. #define    CMD_SEND    1
  15. #define    CMD_GET        2
  16.  
  17. #define    DOOMCOM_ID        0x12345678l
  18.  
  19. typedef struct
  20. {
  21.     long    id;
  22.     short    intnum;            // DOOM executes an int to send commands
  23.  
  24. // communication between DOOM and the driver
  25.     short    command;        // CMD_SEND or CMD_GET
  26.     short    remotenode;        // dest for send, set by get (-1 = no packet)
  27.     short    datalength;        // bytes in doomdata to be sent / bytes read
  28.  
  29. // info common to all nodes
  30.     short    numnodes;        // console is allways node 0
  31.     short    ticdup;            // 1 = no duplication, 2-5 = dup for slow nets
  32.     short    extratics;        // 1 = send a backup tic in every packet
  33.     short    deathmatch;        // 1 = deathmatch
  34.     short    savegame;        // -1 = new game, 0-5 = load savegame
  35.     short    episode;        // 1-3
  36.     short    map;            // 1-9
  37.     short    skill;            // 1-5
  38.  
  39. // info specific to this node
  40.     short    consoleplayer;    // 0-3 = player number
  41.     short    numplayers;        // 1-4
  42.     short    angleoffset;    // 1 = left, 0 = center, -1 = right
  43.     short    drone;            // 1 = drone
  44.  
  45. // packet data to be sent
  46.     char    data[512];
  47. } doomcom_t;
  48.  
  49.  
  50.  
  51. extern    doomcom_t    doomcom;
  52. extern    void interrupt (*olddoomvect) (void);
  53. extern    int            vectorishooked;
  54.  
  55. int CheckParm (char *check);
  56. void LaunchDOOM (void);
  57. void interrupt NetISR (void);
  58.  
  59.