Generated from /home/galaxyng/NG/Source/loadgame.c with ROBODoc v4.0.18 on Mon Jan 05 22:26:09 2004

TABLE OF CONTENTS


GalaxyNG/LoadGame

NAME

   LoadGame -- functions to read a game from file.

LoadGame/readFloat

NAME

   readFloat

LoadGame/readString

NAME

   readString --

LoadGame/readInt

NAME

   readInt --

LoadGame/readLong

NAME

   readLong --

LoadGame/readPointer

NAME

   readPointer --

LoadGame/getReadFloat

NAME

   getReadFloat --

LoadGame/getReadString

NAME

   getReadString

LoadGame/getReadInt

NAME

   getReadInt --

LoadGame/getReadLong

NAME

   getReadLong --

LoadGame/getReadPointer

NAME

   getReadPointer

LoadGame/getReadVersion

NAME

   getReadVersion -- read server version number.

BUGS

   Fails if version or revisions is larger than 9.

LoadGame/loadgame

NAME

   loadgame -- load game from disk.

FUNCTION

   Reads the game structure from disk.

NOTES

   Horrible use of feof().
   Should be split up into a number of function.
   Should use createFileName().

BUGS

   The speed of fleets is not stored in the turn file. So fleet
   speeds are incorrect until the fleetphase() is executed.

LoadGame/loadConfig

NAME

   loadConfig -- read configuration files

FUNCTION

   reads defaults from $GALAXYNGHOME/.galaxyngrc
   and then from $GALAXYNGHOME/data/<gamename>/.galaxyngrc

LoadGame/readDefaults

NAME

   readDefaults -- read game defaults

FUNCTION

   Read defaults from a configuration file : .galaxyngrc

NOTES

   Has a memory leak.

SEE ALSO

   game