diff --git a/server/server_application.hpp b/server/server_application.hpp index b794b3f..bd01b5f 100644 --- a/server/server_application.hpp +++ b/server/server_application.hpp @@ -105,7 +105,7 @@ private: //utility methods void PumpPacket(SerialPacket* const); - void PumpPacketProximity(SerialPacket* const, int roomIndex, int x, int y, int radius); +// void PumpPacketProximity(SerialPacket* const, int roomIndex, int x, int y, int radius); void CopyCharacterToPacket(CharacterPacket* const packet, int characterIndex); //APIs and utilities diff --git a/server/server_logic.cpp b/server/server_logic.cpp index 1e1dbf1..0a76d59 100644 --- a/server/server_logic.cpp +++ b/server/server_logic.cpp @@ -298,9 +298,6 @@ void ServerApplication::HandlePacket(SerialPacket* const argPacket) { break; /* - case SerialPacketType::QUERY_CHARACTER_EXISTS: -// HandleCharacterStatsRequest(static_cast(argPacket)); - break; case SerialPacketType::QUERY_CHARACTER_STATS: // HandleCharacterStatsRequest(static_cast(argPacket)); break; diff --git a/server/server_methods.cpp b/server/server_methods.cpp index d163f18..d9e433f 100644 --- a/server/server_methods.cpp +++ b/server/server_methods.cpp @@ -79,26 +79,3 @@ void ServerApplication::HandleShutdownRequest(ClientPacket* const argPacket) { //finished this routine std::cout << "Shutdown signal accepted" << std::endl; } - -/* - -//SET: entities -void ServerApplication::HandleCharacterUpdate(CharacterPacket* const argPacket) { - CharacterData* character = characterMgr.Get(argPacket->characterIndex); - - //make a new character if this one doesn't exist - if (!character) { - HandleCharacterNew(argPacket); - return; - } - - //accept client-side logic - character->SetRoomIndex(argPacket->roomIndex); - character->SetOrigin(argPacket->origin); - character->SetMotion(argPacket->motion); - - //TODO: gameplay components: equipment, items, buffs, debuffs - - PumpPacket(argPacket); -} -*/ \ No newline at end of file diff --git a/server/server_util.cpp b/server/server_util.cpp index b0ef563..c5f1729 100644 --- a/server/server_util.cpp +++ b/server/server_util.cpp @@ -43,14 +43,14 @@ void ServerApplication::PumpPacket(SerialPacket* const argPacket) { } } -void ServerApplication::PumpPacketProximity(SerialPacket* const argPacket, int roomIndex, int x, int y, int radius) { +/*void ServerApplication::PumpPacketProximity(SerialPacket* const argPacket, int roomIndex, int x, int y, int radius) { //TODO: PumpPacketProximity //for position (roomIndex, x, y), find all characters within that distance //find that character's owner //find that account's client //send the packet to that client //NOTE: this is perhaps too complex; I write it if I need it -} +*/} //------------------------- //common copy methods @@ -70,4 +70,4 @@ void ServerApplication::CopyCharacterToPacket(CharacterPacket* const packet, int packet->roomIndex = character->GetRoomIndex(); packet->origin = character->GetOrigin(); packet->motion = character->GetMotion(); -} \ No newline at end of file +}