NAME
LoadGame -- functions to read a game from file.
NAME
readFloat
NAME
readString --
NAME
readInt --
NAME
readLong --
NAME
readPointer --
NAME
getReadFloat --
NAME
getReadString
NAME
getReadInt --
NAME
getReadLong --
NAME
getReadPointer
NAME
getReadVersion -- read server version number.
BUGS
Fails if version or revisions is larger than 9.
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.
NAME
loadConfig -- read configuration files
FUNCTION
reads defaults from $GALAXYNGHOME/.galaxyngrc and then from $GALAXYNGHOME/data/<gamename>/.galaxyngrc
NAME
readDefaults -- read game defaults
FUNCTION
Read defaults from a configuration file : .galaxyngrc
NOTES
Has a memory leak.
SEE ALSO
game