int main() { { new Eris::TransferInfo("", 0, "", ""); } { Eris::TransferInfo * ti = new Eris::TransferInfo("", 0, "", ""); delete ti; } { Eris::TransferInfo * ti = new Eris::TransferInfo(TEST_HOST, 0, "", ""); const std::string & host = ti->getHost(); assert(host == TEST_HOST); } { Eris::TransferInfo * ti = new Eris::TransferInfo("", TEST_PORT, "", ""); int port = ti->getPort(); assert(port == TEST_PORT); } { Eris::TransferInfo * ti = new Eris::TransferInfo("", 0, TEST_KEY, ""); const std::string & key = ti->getPossessKey(); assert(key == TEST_KEY); } { Eris::TransferInfo * ti = new Eris::TransferInfo("", 0, "", TEST_ID); const std::string & id = ti->getPossessEntityId(); assert(id == TEST_ID); } return 0; }
void LoggedInState::takeTransferredCharacter(const Eris::TransferInfo& transferInfo) { S_LOG_INFO("Trying to take transferred character with id " << transferInfo.getPossessEntityId() << "."); mAccount.takeTransferredCharacter(transferInfo.getPossessEntityId(), transferInfo.getPossessKey()); }