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> {
super.updateInfo(messageManager);
// FireStationから受信したMessageCivilianを収集
final Set<EntityID> receivedCentreCivilians = messageManager.getReceivedMessageList().parallelStream()
.filter(MessageCivilian.class::isInstance)
final Set<EntityID> receivedCentreCivilians = messageManager.getReceivedMessageList(MessageCivilian.class).parallelStream()
.map(MessageCivilian.class::cast)
.filter(e -> this.worldInfo.getEntity(e.getSenderID()) instanceof FireStation)
.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