Commit 80107203 authored by Joe Fujisawa's avatar Joe Fujisawa
Browse files

clean リファクタ

parent a0a35e7e
...@@ -41,8 +41,7 @@ public class AuctionCommandExecutorFire extends CommandExecutor<CommandFire> { ...@@ -41,8 +41,7 @@ public class AuctionCommandExecutorFire extends CommandExecutor<CommandFire> {
super.updateInfo(messageManager); super.updateInfo(messageManager);
// FireStationから受信したMessageCivilianを収集 // FireStationから受信したMessageCivilianを収集
final Set<EntityID> receivedCentreCivilians = messageManager.getReceivedMessageList().parallelStream() final Set<EntityID> receivedCentreCivilians = messageManager.getReceivedMessageList(MessageCivilian.class).parallelStream()
.filter(MessageCivilian.class::isInstance)
.map(MessageCivilian.class::cast) .map(MessageCivilian.class::cast)
.filter(e -> this.worldInfo.getEntity(e.getSenderID()) instanceof FireStation) .filter(e -> this.worldInfo.getEntity(e.getSenderID()) instanceof FireStation)
.map(MessageCivilian::getAgentID) .map(MessageCivilian::getAgentID)
......
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