From 955c5e93a56627f1a5392ab593b4574813d2441c Mon Sep 17 00:00:00 2001 From: 李进峰 Date: Sat, 22 Dec 2018 14:25:38 +0800 Subject: [PATCH] place update --- src/GameEnvironment/GameEnv.java | 56 +++++++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/src/GameEnvironment/GameEnv.java b/src/GameEnvironment/GameEnv.java index 4731f73..3e39719 100644 --- a/src/GameEnvironment/GameEnv.java +++ b/src/GameEnvironment/GameEnv.java @@ -866,35 +866,37 @@ public class GameEnv implements Serializable{ }else { return false; } - }else if(names[0].equals("place")) { - Place place = this.placeIndex.get(names[2]); - if(names[3].equals("到达条件")) { - place.setGoFlag(Integer.parseInt(value)); - if(place.getGoFlag().equals(2)) { - this.placeLinkDirectGo.put(place.getName(),place); - this.placeNoLinkDirectGo.remove(place.getName()); - }else if(place.getGoFlag().equals(3)) { - this.placeNoLinkDirectGo.put(place.getName(),place); - this.placeLinkDirectGo.remove(place.getName()); - } - return true; - }else if(names[3].equals("可去地点")) { - String[] ableGos = value.split("~"); - List places = new ArrayList(); - byte[] line = this.mapGraph[this.mapNames.get(place.getName())]; - for(int ag=0; ag places = new ArrayList(); + byte[] line = this.mapGraph[this.mapNames.get(place.getName())]; + for(int ag=0; ag