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 >
Wrap
Text File
|
1992-05-07
|
6KB
|
122 lines
FANTASY LAND DATA FILE STRUCTURES - FOR RELEASE 1.20 - 1.30
The following is the list of data file structures for Fantasy Land
1.20. These structures are subject to change in future releases.
Filename: FANTASY.USE
Description: File used internally by Fantasy Land to track who is in the
game. As players leave the game, the fields in the exiting
player's record are set to nil. When the last player is out,
this file is removed. It is important to note that the
data in the Player field is the player's "real" logon name.
This is necessary due to the fact that players must be added
prior to retrieving the player's alias.
UseRec = RECORD
Node : STR2 ;
Player : STR35 ;
Activity : BYTE ;
END ;
The Activity byte values: 0 = No player in record
1 = Normal play mode
2 = Tossing items on this node
3 = Processing robots on this node
4 = Sorting data file on this node
Filename: FANTASY.DAT
Description: This is the player data file. Fantasy Land uses record locking
when reading or writing this file.
PlayRec = RECORD
Name : STRING[35] ; {real logon name }
Alias : STRING[35] ; {player alias }
LastDate : STRING[18] ; {last date played }
UserScore : LONGINT ; {player score }
UserTurns : INTEGER ; {player turn count as of LastDate}
UserTotal : LONGINT ; {reserved-also holds score }
Sex : CHAR ; {sex (M,F) }
Pref : CHAR ; {sexual preferrence (S,B,G) }
Items : ARRAY [1..5] OF INTEGER ; {items in possesion }
Resistance : INTEGER ; {resistance level }
Willing, {willing statement }
UnWilling : STRING[45] ; {unwilling statement }
AreaNum : INTEGER ; {current areanumber player is in }
Status : BYTE ; {1=ready, 2=recovering, 3=busy }
Protection : BOOLEAN ; {does player have protection? }
Dead : BOOLEAN ; {no longer used but reserved }
SnapShot : STRING[12] ; {snapshot filename-no extension }
Sexperience: INTEGER ; {sexperience level }
AnsiOn : BOOLEAN ; {ANSI pics enabled/disabled }
Robot : BOOLEAN ; {robot player or human }
PArray : ARRAY [1..31] OF CHAR ;
{make up days: '-' = not played }
{ 'X' = played }
MakeUps : INTEGER ; {make ups used as of LastDate }
END ;
Filename: FANTASY.ARE
Description: This is the area data file. Fantasy Land uses record locking
when reading or writing this file. When Fantasy Land tosses
items back into randomly-selected areas, it checks to see that
there are not already 10 items in the area. If there are
already 10 items in the selected area, another area is
selected.
AreaRec = RECORD
AreaName : STRING[45] ; {name of area }
Nexit, {north exit area number }
Sexit, {south exit area number }
Eexit, {east exit area number }
Wexit, {west exit area number }
Uexit, {up exit area number }
Dexit : INTEGER ; {down exit area number }
ItemList : ARRAY [1..10] OF INTEGER ;
{items in this area (10 max) }
PeopleList : ARRAY [1..20] OF STRING[35] ;
{people in this area (20 max) }
Effect : INTEGER ; {effect number for this area }
{valid entries are 1 - 3 }
END ;
Filename: FANTASY.HST
Description: The Fantasy Land history file. This is a structured data file
rather than a text file. The reason for this is that structured
data files can be handled more quickly than straight ASCII
text files. Fantasy Land uses a temporary history file for
each session. Then, upon exiting, Fantasy Land processes the
temporary file, integrating it into FANTASY.HST. Temporary
history files are named according to date/time and have a
filename extension of .LOG until processed.
LogRec = RECORD
Line : STRING[80] ;
END ;
Filename: FANTASY.HSC
Description: This is the high score file for the previous tournament.
HighRec = RECORD
PlayerName : STRING[35] ;
Score : LONGINT ;
END ;
Filename: FANTASY.DTE
Description: This is the file Fantasy Land uses to track the current month
number of the tournament in progress.
MonthRec = RECORD
MonthVal : WORD ;
END ;