diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-12-12 22:17:35 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-12-12 22:17:35 +0000 |
commit | d187c54000b40dcebb742a89f9962a6f12921a62 (patch) | |
tree | 5711f5a05f7c1d0a28327203eb8fa001d8d25e4e /src/netcomputer.h | |
parent | 5ef4627a825d2c1ffd59a8ad33d05a6d72240a69 (diff) | |
download | manaserv-d187c54000b40dcebb742a89f9962a6f12921a62.tar.gz manaserv-d187c54000b40dcebb742a89f9962a6f12921a62.tar.bz2 manaserv-d187c54000b40dcebb742a89f9962a6f12921a62.tar.xz manaserv-d187c54000b40dcebb742a89f9962a6f12921a62.zip |
Use setCharacter() and unsetcharacter() to deal with addBeing() and removeBeing() in the world (which are buggy). Add check when character's name already exists. Added Character list packet support.
Diffstat (limited to 'src/netcomputer.h')
-rw-r--r-- | src/netcomputer.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/netcomputer.h b/src/netcomputer.h index 766cf94a..8dace0d8 100644 --- a/src/netcomputer.h +++ b/src/netcomputer.h @@ -84,6 +84,11 @@ class NetComputer void setAccount(tmwserv::Account *acc); /** + * Unset the account associated with the connection + */ + void unsetAccount(); + + /** * Get account associated with the connection */ tmwserv::Account *getAccount() { return account; } @@ -94,6 +99,12 @@ class NetComputer void setCharacter(tmwserv::Being *ch); /** + * Deselect the character associated with connection + * and remove it from the world + */ + void unsetCharacter(); + + /** * Get character associated with the connection */ tmwserv::Being *getCharacter() { return character; } |