summaryrefslogtreecommitdiff
path: root/src/account-server/accounthandler.cpp
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-04-03 21:17:50 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-04-11 13:42:59 +0200
commitd95fccfca8575d8fb06988e558a338e37776961a (patch)
tree6d7200a55ae910357311ef35295387fbb6969095 /src/account-server/accounthandler.cpp
parentc1ba76b936c04dbdcdcc3ed86f919a949c8aa63f (diff)
downloadmanaserv-d95fccfca8575d8fb06988e558a338e37776961a.tar.gz
manaserv-d95fccfca8575d8fb06988e558a338e37776961a.tar.bz2
manaserv-d95fccfca8575d8fb06988e558a338e37776961a.tar.xz
manaserv-d95fccfca8575d8fb06988e558a338e37776961a.zip
Renamed Character -> CharacterData in the accountserver
Diffstat (limited to 'src/account-server/accounthandler.cpp')
-rw-r--r--src/account-server/accounthandler.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp
index 9901300e..76a427ea 100644
--- a/src/account-server/accounthandler.cpp
+++ b/src/account-server/accounthandler.cpp
@@ -76,7 +76,8 @@ public:
/**
* Send the character data to the client.
*/
- static void sendCharacterData(AccountClient &client, const Character &ch);
+ static void sendCharacterData(AccountClient &client,
+ const CharacterData &ch);
protected:
/**
@@ -271,7 +272,7 @@ void AccountHandler::computerDisconnected(NetComputer *comp)
}
void AccountHandler::sendCharacterData(AccountClient &client,
- const Character &ch)
+ const CharacterData &ch)
{
MessageOut charInfo(APMSG_CHAR_INFO);
charInfo.writeInt8(ch.getCharacterSlot());
@@ -787,7 +788,7 @@ void AccountHandler::handleCharacterCreateMessage(AccountClient &client,
}
else
{
- Character *newCharacter = new Character(name);
+ CharacterData *newCharacter = new CharacterData(name);
// Set the initial attributes provided by the client
for (unsigned i = 0; i < mModifiableAttributes.size(); ++i)
@@ -858,7 +859,7 @@ void AccountHandler::handleCharacterSelectMessage(AccountClient &client,
return;
}
- Character *selectedChar = chars[slot];
+ CharacterData *selectedChar = chars[slot];
std::string address;
int port;