#include <game-sc.h>
Inheritance diagram for TGameSC:
Public Methods | |
TPlayer * | getActivePlayer () const |
bool | loadPlayerOrderFile (const string &playerName) |
bool | loadServerMasterFile () |
bool | recordPlayerAction (TAction *action) |
Protected Methods | |
TGameSC (bool actSeq, const string &gameDir, const string &gameName="") | |
virtual void | PDBAction (TDataPackageList *block) |
virtual void | PDBFleet (TDataPackageList *block) |
virtual void | PDBGalaxy (TDataPackageList *block) |
virtual void | PDBGame (TDataPackageList *block) |
virtual void | PDBSystem (TDataPackageList *block) |
void | setActivePlayer (TPlayer *player) |
Protected Attributes | |
TActionSequencer | fActionSequencer |
Private Attributes | |
TPlayer * | fActivePlayer |
FIXME
|
Empty constructor.
|
|
|
|
Loads the player order file.
|
|
Loads the server master file. Note: never try to load a server master file, if a game is still present. The correct way is to delete the old game completely by calling resetAll().
|
|
Creates an action and asks it to load the data package list.
Reimplemented from TGame. |
|
Creates a fleet and asks it to load the data package list.
Reimplemented from TGame. |
|
Creates a galaxy and asks it to load the data package list.
Reimplemented from TGame. |
|
Loads and sets values such as game name and current turn.
Reimplemented from TGame. |
|
Creates a system and asks it to load the data package list.
Reimplemented from TGame. |
|
Record an action from a player.
|
|
Sets the active player (see fActivePlayer).
|
|
Action sequencer used in client mode when recording the player actions or by the server when loading the player orders. |
|
Link to the active player (either the player playing the turn or the player whose order file is being loaded) |