home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / f / fant150.zip / FLSTRUCT.DOC < prev    next >
Text File  |  1992-05-07  |  6KB  |  122 lines

  1.  
  2.    FANTASY LAND DATA FILE STRUCTURES - FOR RELEASE 1.20 - 1.30
  3.  
  4.  
  5.    The following is the list of data file structures for Fantasy Land
  6. 1.20.  These structures are subject to change in future releases.
  7.  
  8.  
  9. Filename:     FANTASY.USE
  10. Description:  File used internally by Fantasy Land to track who is in the
  11.               game.    As players leave the game, the fields in the exiting
  12.               player's record are set to nil. When the last player is out,
  13.               this file is removed.  It is important to note that the
  14.               data in the Player field is the player's "real" logon name.
  15.               This is necessary due to the fact that players must be added
  16.               prior to retrieving the player's alias.
  17.  
  18.    UseRec   = RECORD
  19.                  Node       : STR2 ;
  20.                  Player     : STR35 ;
  21.                  Activity   : BYTE ;
  22.               END ;
  23.  
  24.               The Activity byte values:    0 = No player in record
  25.                                            1 = Normal play mode
  26.                                            2 = Tossing items on this node
  27.                                            3 = Processing robots on this node
  28.                                            4 = Sorting data file on this node
  29.  
  30.  
  31. Filename:     FANTASY.DAT
  32. Description:  This is the player data file.  Fantasy Land uses record locking
  33.               when reading or writing this file.
  34.  
  35.    PlayRec  = RECORD
  36.                  Name       : STRING[35] ;  {real logon name     }
  37.                  Alias      : STRING[35] ;  {player alias        }
  38.                  LastDate   : STRING[18] ;  {last date played    }
  39.                  UserScore  : LONGINT ;     {player score        }
  40.                  UserTurns  : INTEGER ;     {player turn count as of LastDate}
  41.                  UserTotal  : LONGINT ;     {reserved-also holds score       }
  42.                  Sex        : CHAR ;        {sex (M,F)                       }
  43.                  Pref       : CHAR ;        {sexual preferrence (S,B,G)      }
  44.                  Items      : ARRAY [1..5] OF INTEGER ; {items in possesion  }
  45.                  Resistance : INTEGER ;     {resistance level                }
  46.                  Willing,                   {willing statement               }
  47.                  UnWilling  : STRING[45] ;  {unwilling statement             }
  48.                  AreaNum    : INTEGER ;     {current areanumber player is in }
  49.                  Status     : BYTE ;        {1=ready, 2=recovering, 3=busy   }
  50.                  Protection : BOOLEAN ;     {does player have protection?    }
  51.                  Dead       : BOOLEAN ;     {no longer used but reserved     }
  52.                  SnapShot   : STRING[12] ;  {snapshot filename-no extension  }
  53.                  Sexperience: INTEGER ;     {sexperience level               }
  54.                  AnsiOn     : BOOLEAN ;     {ANSI pics enabled/disabled      }
  55.                  Robot      : BOOLEAN ;     {robot player or human           }
  56.                  PArray     : ARRAY [1..31] OF CHAR ;
  57.                                             {make up days: '-' = not played  }
  58.                                             {              'X' = played      }
  59.                  MakeUps    : INTEGER ;     {make ups used as of LastDate    }
  60.               END ;
  61.  
  62.  
  63. Filename:     FANTASY.ARE
  64. Description:  This is the area data file.  Fantasy Land uses record locking
  65.               when reading or writing this file.  When Fantasy Land tosses
  66.               items back into randomly-selected areas, it checks to see that
  67.               there are not already 10 items in the area.  If there are
  68.               already 10 items in the selected area, another area is
  69.               selected.
  70.  
  71.  
  72.    AreaRec  = RECORD
  73.                  AreaName   : STRING[45] ;  {name of area                    }
  74.                  Nexit,                     {north exit area number          }
  75.                  Sexit,                     {south exit area number          }
  76.                  Eexit,                     {east exit area number           }
  77.                  Wexit,                     {west exit area number           }
  78.                  Uexit,                     {up exit area number             }
  79.                  Dexit      : INTEGER ;     {down exit area number           }
  80.                  ItemList   : ARRAY [1..10] OF INTEGER ;
  81.                                             {items in this area (10 max)     }
  82.                  PeopleList : ARRAY [1..20] OF STRING[35] ;
  83.                                             {people in this area (20 max)    }
  84.                  Effect     : INTEGER ;     {effect number for this area     }
  85.                                             {valid entries are 1 - 3         }
  86.               END ;
  87.  
  88.  
  89. Filename:     FANTASY.HST
  90. Description:  The Fantasy Land history file.  This is a structured data file
  91.               rather than a text file.  The reason for this is that structured
  92.               data files can be handled more quickly than straight ASCII
  93.               text files.  Fantasy Land uses a temporary history file for
  94.               each session.  Then, upon exiting, Fantasy Land processes the
  95.               temporary file, integrating it into FANTASY.HST.  Temporary
  96.               history files are named according to date/time and have a
  97.               filename extension of .LOG until processed.
  98.  
  99.    LogRec   = RECORD
  100.                  Line       : STRING[80] ;
  101.               END ;
  102.  
  103.  
  104. Filename:     FANTASY.HSC
  105. Description:  This is the high score file for the previous tournament.
  106.  
  107.    HighRec  = RECORD
  108.                  PlayerName : STRING[35] ;
  109.                  Score      : LONGINT ;
  110.               END ;
  111.  
  112.  
  113. Filename:     FANTASY.DTE
  114. Description:  This is the file Fantasy Land uses to track the current month
  115.               number of the tournament in progress.
  116.  
  117.    MonthRec = RECORD
  118.                  MonthVal   : WORD ;
  119.               END ;
  120.  
  121.  
  122.