Advanced Strategic Command
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
GameTransferMechanism Class Referenceabstract

#include <networkinterface.h>

Inheritance diagram for GameTransferMechanism:
Inheritance graph
[legend]

Public Member Functions

virtual void setup ()=0
 
virtual void send (const GameMap *map, int lastPlayer, int lastturn)=0
 
virtual GameMapreceive ()=0
 
void write (tnstream &stream) const
 
virtual ASCString getMechanismID () const =0
 
virtual ~GameTransferMechanism ()
 

Static Public Member Functions

static GameTransferMechanismread (tnstream &stream)
 

Protected Member Functions

virtual void readChildData (tnstream &stream)=0
 
virtual void writeChildData (tnstream &stream) const =0
 

Detailed Description

Definition at line 33 of file networkinterface.h.

Constructor & Destructor Documentation

virtual GameTransferMechanism::~GameTransferMechanism ( )
inlinevirtual

Definition at line 44 of file networkinterface.h.

Member Function Documentation

virtual ASCString GameTransferMechanism::getMechanismID ( ) const
pure virtual

Implemented in PBEMServer, and FileTransfer.

Referenced by write().

GameTransferMechanism * GameTransferMechanism::read ( tnstream stream)
static

Definition at line 25 of file networkinterface.cpp.

References readChildData(), tnstream::readInt(), and tnstream::readString().

Referenced by GameMap::read().

virtual void GameTransferMechanism::readChildData ( tnstream stream)
protectedpure virtual

Implemented in PBEMServer, and FileTransfer.

Referenced by read().

virtual GameMap* GameTransferMechanism::receive ( )
pure virtual

Implemented in PBEMServer, and FileTransfer.

virtual void GameTransferMechanism::send ( const GameMap map,
int  lastPlayer,
int  lastturn 
)
pure virtual

Implemented in PBEMServer, and FileTransfer.

Referenced by iterateToNextPlayer().

virtual void GameTransferMechanism::setup ( )
pure virtual

Implemented in PBEMServer, and FileTransfer.

void GameTransferMechanism::write ( tnstream stream) const
virtual void GameTransferMechanism::writeChildData ( tnstream stream) const
protectedpure virtual

Implemented in PBEMServer, and FileTransfer.

Referenced by write().


The documentation for this class was generated from the following files: