Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

TGameServer Class Reference

Making turn generation easy. More...

#include <game-server.h>

Inheritance diagram for TGameServer:

Inheritance graph
[legend]
Collaboration diagram for TGameServer:

Collaboration graph
[legend]
List of all members.

Public Methods

 TGameServer (const string &gameDir, const string &gameName)
virtual ~TGameServer ()
bool backupGameFiles () const
void executeActions ()
void incrementTurn ()
bool loadPlayerOrderFiles ()
bool savePlayerDataFiles () const

Protected Methods

virtual void PDBLoadOrders (TDataPackageList *block)

Private Methods

void addStandardActions ()

Detailed Description

Making turn generation easy.

Author:
Alberto Barsella <>, Marco Krohn <marco.krohn@gmx.de>
Version:
Id:
game-server.h,v 1.3 2002/05/13 22:57:54 mkrohn5 Exp

FIXME


Constructor & Destructor Documentation

TGameServer::TGameServer const string &    gameDir,
const string &    gameName
 

Sets the directory and the name of the game. Also this starts the action sequencer (TGameSC::fActionSequencer) in non-executing mode.

Parameters:
gameDir  The path to the game directory.
gameName  The name of the game.

virtual TGameServer::~TGameServer   [virtual]
 

Does nothing at the moment. FIXME: perhaps it should reset TUniverse & TRuleSystem???


Member Function Documentation

bool TGameServer::backupGameFiles   const
 

Generates a backup copy of all important files.

Returns:
true always (FIXME).

void TGameServer::executeActions  
 

This will generate additional actions (e.g. for fleet movement etc.) and will then start executing all actions.

void TGameServer::incrementTurn  
 

Increments the turn number by one.

bool TGameServer::loadPlayerOrderFiles  
 

Loads the order files from all players.

Returns:
true if all files were loaded correctly, false otherwise (if there are missing or broken files etc.)

virtual void TGameServer::PDBLoadOrders TDataPackageList   block [protected, virtual]
 

Loads the game name and the turn number and checks for consistency with the currently loaded game.

Parameters:
block  A list of datapackages which contains information about the game.

Reimplemented from TGame.

bool TGameServer::savePlayerDataFiles   const
 

Saves the player data files to disk.

Returns:
true if the data was saved successfully, otherwise false.


The documentation for this class was generated from the following file:
Generated on Thu Jun 20 18:13:23 2002 for Stellar Legacy by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001