home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / games / volume12 / mdg / part05 / plrstruct.h < prev    next >
C/C++ Source or Header  |  1991-03-04  |  1KB  |  83 lines

  1. /*
  2.     MDG Multiuser Dungeon Game -- master structure include file
  3.     
  4.     MDG is Copyright 1990 John C. Gonnerman
  5.     This file is subject to the general MDG 
  6.     copyright statement (see enclosed file, Copyright).
  7.  
  8.     SCCSID @(#) plrstruct.h (1.3) created 1/3/91
  9. */
  10.  
  11.  
  12. /* private segment structure for mdg_game */
  13.  
  14. struct game_msg {
  15.     int trader_offset; 
  16.     short clear_ok;
  17.     char buf[70];
  18. };
  19.  
  20.  
  21. struct item {
  22.     char type, symbol;
  23.     int effect, range, max_uses, rem_uses, value;
  24.     short mod_count;
  25.     long decay_cnt;
  26.     char name[INAMELEN];
  27.     unsigned char curse;
  28.     struct location loc;
  29. };
  30.  
  31.  
  32. struct player {
  33.     int playernum;
  34.     char name[PNAMELEN];
  35.  
  36.     short alignment;
  37.  
  38.     int lives; 
  39.     long gold;
  40.  
  41.     short spells[26], fighting;
  42.     short max_hp, hitpoints, max_mp, magicpts;
  43.     short createpts;
  44.  
  45.     int items[PMAX_ITEMS];
  46.  
  47.     struct location loc;
  48.     int home, prev_sect;
  49.  
  50.     char dmsg[2][35];
  51.     short dmsg_loc;
  52.     unsigned short brief;
  53.  
  54.     int clock, detect, attacks, light; 
  55.     short m_armor, ma_count, invis;
  56.     short blocked, gold_hidden, knight;
  57.     short user_spell;
  58.  
  59.     short partners[MAX_PLAYERS];
  60. };
  61.  
  62.  
  63. /*
  64.     definitions for the handling of the shared memory segments.
  65. */
  66.  
  67. struct player_seg {
  68.     int sid;
  69.     short in_trader;
  70.     short player_sem, item_sem;
  71.     struct player p[MAX_PLAYERS];
  72.  
  73.     int weapon[MAX_PLAYERS];
  74.     int armor[MAX_PLAYERS];
  75.     int shield[MAX_PLAYERS];
  76.  
  77.     int item_count;
  78.     struct item itm[1];
  79. };
  80.  
  81.  
  82. /* end of file. */
  83.