#include <simple_file_transfer.h>
Inheritance diagram for FileTransfer:

Public Member Functions | |
| void | setup () |
| void | setup (const ASCString &filename) |
| void | send (const GameMap *map, int lastPlayer, int lastturn) |
| GameMap * | receive () |
| GameMap * | loadPBEMFile (const ASCString &filename) |
| ASCString | getMechanismID () const |
Static Public Member Functions | |
| static ASCString | mechanismID () |
Protected Member Functions | |
| void | readChildData (tnstream &stream) |
| void | writeChildData (tnstream &stream) const |
| bool | enterfilename () |
| ASCString | constructFileName (const GameMap *actmap, int lastPlayer, int lastturn) const |
Definition at line 29 of file simple_file_transfer.h.
| void FileTransfer::readChildData | ( | tnstream & | stream | ) | [protected, virtual] |
Implements GameTransferMechanism.
Definition at line 43 of file simple_file_transfer.cpp.
References tnstream::readInt(), and tnstream::readString().
| void FileTransfer::writeChildData | ( | tnstream & | stream | ) | const [protected, virtual] |
Implements GameTransferMechanism.
Definition at line 49 of file simple_file_transfer.cpp.
References tnstream::writeInt(), and tnstream::writeString().
| bool FileTransfer::enterfilename | ( | ) | [protected] |
| ASCString FileTransfer::constructFileName | ( | const GameMap * | actmap, | |
| int | lastPlayer, | |||
| int | lastturn | |||
| ) | const [protected] |
Definition at line 200 of file simple_file_transfer.cpp.
References actmap, ASCString::endswith(), GameMap::time, ASCString::toString(), tournamentextension, and GameTime::turn().
Referenced by send().
| void FileTransfer::setup | ( | ) | [virtual] |
Implements GameTransferMechanism.
Definition at line 55 of file simple_file_transfer.cpp.
References enterfilename().
| void FileTransfer::setup | ( | const ASCString & | filename | ) |
Definition at line 61 of file simple_file_transfer.cpp.
| void FileTransfer::send | ( | const GameMap * | map, | |
| int | lastPlayer, | |||
| int | lastturn | |||
| ) | [virtual] |
Implements GameTransferMechanism.
Definition at line 73 of file simple_file_transfer.cpp.
References GameMap::actplayer, choice_dlg(), choiceDialog(), StatusMessageWindowHolder::close(), constructFileName(), tfindfile::FileInfo::directoryLevel, Player::email, enterfilename(), errorMessage(), Player::getName(), tfindfile::getnextname(), GameMap::getPlayer(), GameMap::getPlayerCount(), infoMessage(), CGameOptions::Instance(), CGameOptions::mailProgram, pathdelimitterstring, GameMap::player, ASCString::replaceAll(), ASCString::replaceAll_ci(), tnetworkloaders::savenwgame(), selectFile(), Player::stat, Player::supervisor, ASCString::toString(), tournamentextension, and tnstream::writing.
| GameMap * FileTransfer::receive | ( | ) | [virtual] |
Implements GameTransferMechanism.
Definition at line 175 of file simple_file_transfer.cpp.
References loadPBEMFile().
Definition at line 180 of file simple_file_transfer.cpp.
References GameMap::actplayer, errorMessage(), tnetworkloaders::loadnwgame(), and tnstream::reading.
Referenced by continueNetworkGame(), k_loadmap(), networksupervisor(), and receive().
| ASCString FileTransfer::getMechanismID | ( | ) | const [inline, virtual] |
Implements GameTransferMechanism.
Definition at line 43 of file simple_file_transfer.h.
References mechanismID().
| static ASCString FileTransfer::mechanismID | ( | ) | [inline, static] |
1.5.1