Advanced Strategic Command
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
FileTransfer Class Reference

#include <simple_file_transfer.h>

Inheritance diagram for FileTransfer:
Inheritance graph
[legend]

Public Member Functions

void setup ()
 
void setup (const ASCString &filename)
 
void send (const GameMap *map, int lastPlayer, int lastturn)
 
GameMapreceive ()
 
GameMaploadPBEMFile (const ASCString &filename)
 
ASCString getMechanismID () const
 
- Public Member Functions inherited from GameTransferMechanism
void write (tnstream &stream) const
 
virtual ~GameTransferMechanism ()
 

Static Public Member Functions

static ASCString mechanismID ()
 
- Static Public Member Functions inherited from GameTransferMechanism
static GameTransferMechanismread (tnstream &stream)
 

Protected Member Functions

void readChildData (tnstream &stream)
 
void writeChildData (tnstream &stream) const
 
bool enterfilename ()
 
ASCString constructFileName (const GameMap *actmap, int lastPlayer, int lastturn) const
 

Detailed Description

Definition at line 29 of file simple_file_transfer.h.

Member Function Documentation

ASCString FileTransfer::constructFileName ( const GameMap actmap,
int  lastPlayer,
int  lastturn 
) const
protected
bool FileTransfer::enterfilename ( )
protected

Definition at line 66 of file simple_file_transfer.cpp.

References editString().

Referenced by send(), and setup().

ASCString FileTransfer::getMechanismID ( ) const
inlinevirtual

Implements GameTransferMechanism.

Definition at line 43 of file simple_file_transfer.h.

References mechanismID().

GameMap * FileTransfer::loadPBEMFile ( const ASCString filename)
static ASCString FileTransfer::mechanismID ( )
inlinestatic

Definition at line 44 of file simple_file_transfer.h.

Referenced by getMechanismID().

void FileTransfer::readChildData ( tnstream stream)
protectedvirtual

Implements GameTransferMechanism.

Definition at line 43 of file simple_file_transfer.cpp.

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

GameMap * FileTransfer::receive ( )
virtual

Implements GameTransferMechanism.

Definition at line 175 of file simple_file_transfer.cpp.

References loadPBEMFile().

void FileTransfer::send ( const GameMap map,
int  lastPlayer,
int  lastturn 
)
virtual
void FileTransfer::setup ( void  )
virtual

Implements GameTransferMechanism.

Definition at line 55 of file simple_file_transfer.cpp.

References enterfilename().

Referenced by k_savemap().

void FileTransfer::setup ( const ASCString filename)

Definition at line 61 of file simple_file_transfer.cpp.

void FileTransfer::writeChildData ( tnstream stream) const
protectedvirtual

Implements GameTransferMechanism.

Definition at line 49 of file simple_file_transfer.cpp.

References tnstream::writeInt(), and tnstream::writeString().


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