public void trackLeave() { if (this.m_location == 2) { this.trackGotoTown(false); } else if (this.m_location == 1) { switch (this.m_locationMap) { case 4: SpywareManager.getInstance().trackGotoLakeside(false); break; case 183: SpywareManager.getInstance().trackGotoStreetside(false); break; } } else if (this.m_location == 0) { this.trackGotoHouse(this.m_locationMap, false); } this.m_location = -1; this.m_locationMap = -1; }
public void trackArrive() { AppEngine canvas = AppEngine.getCanvas(); SceneGame sceneGame = canvas.getSceneGame(); if (sceneGame.isMapMode()) { this.m_location = 2; this.trackGotoTown(); } else if (sceneGame.isZoomMapMode()) { this.m_location = 1; this.m_locationMap = canvas.getNextZoomMapId(); switch (this.m_locationMap) { case 4: SpywareManager.getInstance().trackGotoLakeside(); break; case 183: SpywareManager.getInstance().trackGotoStreetside(); break; } } else { if (!sceneGame.isHouseMode()) { return; } this.m_location = 0; this.m_locationMap = canvas.getNextHouseId(); this.trackGotoHouse(this.m_locationMap); } }