Added MapService along with temporary locations for tatooine cities

This commit is contained in:
Waverunner
2015-06-02 16:21:21 -04:00
parent 3ecbec17ad
commit 622291d6dc
8 changed files with 701 additions and 52 deletions
-7
View File
@@ -161,8 +161,6 @@ public class ZoneService extends Service {
handleCmdSceneReady(player, (CmdSceneReady) p);
if (p instanceof SetWaypointColor)
handleSetWaypointColor(player, (SetWaypointColor) p);
if (p instanceof GetMapLocationsMessage)
handleMapLocationsResponse(player, (GetMapLocationsMessage) p);
if(p instanceof ShowBackpack)
handleShowBackpack(player, (ShowBackpack) p);
if(p instanceof ShowHelmet)
@@ -211,11 +209,6 @@ public class ZoneService extends Service {
private void handleShowHelmet(Player player, ShowHelmet p) {
player.getPlayerObject().setShowHelmet(p.showingHelmet());
}
private void handleMapLocationsResponse(Player player, GetMapLocationsMessage p) {
// TODO Implement actual handling in GU2, this is to avoid constant map location requests from the client
player.sendPacket(new GetMapLocationsResponseMessage(p.getPlanet()));
}
private void handleSetWaypointColor(Player player, SetWaypointColor p) {
// TODO Should move this to a different service, maybe make a service for other packets similar to this (ie misc.)