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

TGameClient Class Reference

Class which provides methods which are useful for the client. More...

#include <game-client.h>

Inheritance diagram for TGameClient:

Inheritance graph
[legend]
Collaboration diagram for TGameClient:

Collaboration graph
[legend]
List of all members.

Public Methods

 TGameClient (const string &gameDir, const string &gameName)
bool initializePlayerOrders (const string &playerName)
bool savePlayerOrderFile () const

Protected Methods

virtual void PDBLoadOrders (TDataPackageList *block)

Detailed Description

Class which provides methods which are useful for the client.

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

FIXME


Constructor & Destructor Documentation

TGameClient::TGameClient const string &    gameDir,
const string &    gameName
 

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

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


Member Function Documentation

bool TGameClient::initializePlayerOrders const string &    playerName
 

Prepares to store actions (passed by recordPlayerAction). If an order file already exists it is loaded and subsequent actions will be appended to this file.

Parameters:
playerName  the name of the player giving the orders.
Returns:
true if the ActionSequencer was initialized correctly, otherwise false.

virtual void TGameClient::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 TGameClient::savePlayerOrderFile   const
 

Save a recording of the player actions into the player order file.

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:22 2002 for Stellar Legacy by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001