地图修改
parent
161bc6fa52
commit
19069e4586
|
@ -669,6 +669,7 @@ public class MapLogic {
|
||||||
mapManager.setTriggerXY(triggerXY);
|
mapManager.setTriggerXY(triggerXY);
|
||||||
mapManager.addWalkCells(new HashSet<>(cells));
|
mapManager.addWalkCells(new HashSet<>(cells));
|
||||||
mapManager.setCurXY(curXY);
|
mapManager.setCurXY(curXY);
|
||||||
|
getMap(user).updateLocation(user,curXY);
|
||||||
mapManager.updateEndlessLocation(curXY);
|
mapManager.updateEndlessLocation(curXY);
|
||||||
MapInfoProto.MapUpdateResponse.Builder mapUpdateResponse = MapInfoProto.MapUpdateResponse.newBuilder();
|
MapInfoProto.MapUpdateResponse.Builder mapUpdateResponse = MapInfoProto.MapUpdateResponse.newBuilder();
|
||||||
mapUpdateResponse.setLeftTime(getLeftTime(user, true));
|
mapUpdateResponse.setLeftTime(getLeftTime(user, true));
|
||||||
|
|
|
@ -558,4 +558,6 @@ public abstract class AbstractMap implements IMap {
|
||||||
|
|
||||||
public abstract void autoExitMap(User user);
|
public abstract void autoExitMap(User user);
|
||||||
|
|
||||||
|
|
||||||
|
public void updateLocation(User user,int xy){};
|
||||||
}
|
}
|
||||||
|
|
|
@ -481,4 +481,9 @@ public class EndlessMap extends AbstractMap{
|
||||||
return GlobalDataManaager.getEndleeMapIdByLevel();
|
return GlobalDataManaager.getEndleeMapIdByLevel();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateLocation(User user,int xy) {
|
||||||
|
user.getMapManager().updateEndlessLocation(xy);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -683,4 +683,9 @@ public class TowerMap extends AbstractMap {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateLocation(User user, int xy) {
|
||||||
|
user.getMapManager().updateTrialCurXY(xy);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue