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 {
if(!(entity instanceof Civilian)) continue;
Civilian civ = (Civilian) entity;
if(!this.isNeedRescueHuman(civ)){
if(!this.needRescue(civ)){
continue;
}
StandardMessagePriority level = StandardMessagePriority.NORMAL;
......@@ -218,7 +218,7 @@ public class CentralizedControlATHumanDetector extends HumanDetector {
return true;
}
private boolean isNeedRescueHuman(StandardEntity entity){
private boolean needRescue(StandardEntity entity){
if (entity == null)
return false;
if (!(entity instanceof Human))
......
......@@ -187,7 +187,7 @@ public class CentralizedControlFBAllocator extends FireTargetAllocator {
return(mesciv);
})
.map(MessageCivilian::getAgentID)
.filter(e -> this.isNeedRescueHuman(this.worldInfo.getEntity(e)))
.filter(e -> this.needRescue(this.worldInfo.getEntity(e)))
.filter(e -> !(finishEntityIDs.contains(e)))
.collect(Collectors.toSet());
......@@ -228,7 +228,7 @@ public class CentralizedControlFBAllocator extends FireTargetAllocator {
* @param entity エンティティ
* @return true : 救助必要 false : 救助不必要
*/
private boolean isNeedRescueHuman(StandardEntity entity){
private boolean needRescue(StandardEntity entity){
if (entity == null)
return false;
if (!(entity instanceof Human))
......
......@@ -74,7 +74,7 @@ public class CentralizedControlFBHumanDetector extends HumanDetector {
if(!(entity instanceof Civilian)) continue;
Civilian civ = (Civilian) entity;
if(!this.isNeedRescueHuman(civ)){
if(!this.needRescue(civ)){
continue;
}
StandardMessagePriority level = StandardMessagePriority.NORMAL;
......@@ -214,7 +214,7 @@ public class CentralizedControlFBHumanDetector extends HumanDetector {
return true;
}
private boolean isNeedRescueHuman(StandardEntity entity){
private boolean needRescue(StandardEntity entity){
if (entity == null)
return false;
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