Commit 48fe2072 authored by Ryosuke Suzuki's avatar Ryosuke Suzuki
Browse files

Merge branch 'needRescue' into 'develop'

needRescue modify

See merge request !6
parents cc741d52 1da7a58d
...@@ -68,7 +68,7 @@ public class CentralizedControlATHumanDetector extends HumanDetector { ...@@ -68,7 +68,7 @@ public class CentralizedControlATHumanDetector extends HumanDetector {
if(!(entity instanceof Civilian)) continue; if(!(entity instanceof Civilian)) continue;
Civilian civ = (Civilian) entity; Civilian civ = (Civilian) entity;
if(!this.isNeedRescueHuman(civ)){ if(!this.needRescue(civ)){
continue; continue;
} }
StandardMessagePriority level = StandardMessagePriority.NORMAL; StandardMessagePriority level = StandardMessagePriority.NORMAL;
...@@ -218,7 +218,7 @@ public class CentralizedControlATHumanDetector extends HumanDetector { ...@@ -218,7 +218,7 @@ public class CentralizedControlATHumanDetector extends HumanDetector {
return true; return true;
} }
private boolean isNeedRescueHuman(StandardEntity entity){ private boolean needRescue(StandardEntity entity){
if (entity == null) if (entity == null)
return false; return false;
if (!(entity instanceof Human)) if (!(entity instanceof Human))
......
...@@ -187,7 +187,7 @@ public class CentralizedControlFBAllocator extends FireTargetAllocator { ...@@ -187,7 +187,7 @@ public class CentralizedControlFBAllocator extends FireTargetAllocator {
return(mesciv); return(mesciv);
}) })
.map(MessageCivilian::getAgentID) .map(MessageCivilian::getAgentID)
.filter(e -> this.isNeedRescueHuman(this.worldInfo.getEntity(e))) .filter(e -> this.needRescue(this.worldInfo.getEntity(e)))
.filter(e -> !(finishEntityIDs.contains(e))) .filter(e -> !(finishEntityIDs.contains(e)))
.collect(Collectors.toSet()); .collect(Collectors.toSet());
...@@ -228,7 +228,7 @@ public class CentralizedControlFBAllocator extends FireTargetAllocator { ...@@ -228,7 +228,7 @@ public class CentralizedControlFBAllocator extends FireTargetAllocator {
* @param entity エンティティ * @param entity エンティティ
* @return true : 救助必要 false : 救助不必要 * @return true : 救助必要 false : 救助不必要
*/ */
private boolean isNeedRescueHuman(StandardEntity entity){ private boolean needRescue(StandardEntity entity){
if (entity == null) if (entity == null)
return false; return false;
if (!(entity instanceof Human)) if (!(entity instanceof Human))
......
...@@ -74,7 +74,7 @@ public class CentralizedControlFBHumanDetector extends HumanDetector { ...@@ -74,7 +74,7 @@ public class CentralizedControlFBHumanDetector extends HumanDetector {
if(!(entity instanceof Civilian)) continue; if(!(entity instanceof Civilian)) continue;
Civilian civ = (Civilian) entity; Civilian civ = (Civilian) entity;
if(!this.isNeedRescueHuman(civ)){ if(!this.needRescue(civ)){
continue; continue;
} }
StandardMessagePriority level = StandardMessagePriority.NORMAL; StandardMessagePriority level = StandardMessagePriority.NORMAL;
...@@ -214,7 +214,7 @@ public class CentralizedControlFBHumanDetector extends HumanDetector { ...@@ -214,7 +214,7 @@ public class CentralizedControlFBHumanDetector extends HumanDetector {
return true; return true;
} }
private boolean isNeedRescueHuman(StandardEntity entity){ private boolean needRescue(StandardEntity entity){
if (entity == null) if (entity == null)
return false; return false;
if (!(entity instanceof Human)) if (!(entity instanceof Human))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment