Comment tweaks, updated network version

This commit is contained in:
Kayne Ruse
2015-02-14 23:54:18 +11:00
parent 18b144fa46
commit 87af4f1a1e
13 changed files with 32 additions and 27 deletions
+3 -3
View File
@@ -175,7 +175,7 @@ void ServerApplication::hCharacterUnload(CharacterPacket* const argPacket) {
//character movement
//-------------------------
//TODO: (9) Could replace this verbosity with a "verify" method, taking a client, account and character ptr as arguments
//TODO: (2) Could replace this verbosity with a "verify" method, taking a client, account and character ptr as arguments
void ServerApplication::hCharacterMovement(CharacterPacket* const argPacket) {
//get the specified objects
@@ -197,7 +197,7 @@ void ServerApplication::hCharacterMovement(CharacterPacket* const argPacket) {
//check if allowed
if (characterData->GetOwner() != argPacket->accountIndex && !accountData->GetModerator() && !accountData->GetAdministrator()) {
//TODO: (9) send to the client?
//TODO: (2) send to the client?
std::cerr << "Failed to set character motion due to lack of permissions targeting uid(" << argPacket->characterIndex << ")" << std::endl;
return;
}
@@ -235,7 +235,7 @@ void ServerApplication::hCharacterMovement(CharacterPacket* const argPacket) {
}
void ServerApplication::hCharacterAttack(CharacterPacket* const argPacket) {
//TODO: (9) bounce graphical attack data
//TODO: (9) empty
}
void ServerApplication::hCharacterDamage(CharacterPacket* const argPacket) {
+2 -1
View File
@@ -194,7 +194,8 @@ void ServerApplication::Proc() {
void ServerApplication::Quit() {
std::cout << "Shutting down" << std::endl;
//TODO: (9) save the server state
//save the server state
SaveServerState();
//close the managers
accountMgr.UnloadAll();
+5 -1
View File
@@ -30,7 +30,7 @@
//-------------------------
void ServerApplication::hAdminDisconnectForced(ClientPacket* const argPacket) {
//TODO: (9) boot players
//TODO: (9) empty
}
void ServerApplication::hAdminShutdownRequest(ClientPacket* const argPacket) {
@@ -84,6 +84,10 @@ void ServerApplication::hAdminShutdownRequest(ClientPacket* const argPacket) {
std::cout << "Shutdown signal accepted" << std::endl;
}
void ServerApplication::SaveServerState() {
//TODO: (9) empty
}
//-------------------------
//full unload methods
//-------------------------