Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
autumn_rrs
autumn_agent_2023
Commits
a0a35e7e
Commit
a0a35e7e
authored
Nov 02, 2023
by
Joe Fujisawa
Browse files
clean リファクタ
parent
04acf4c8
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/autumn_2023/centralized/AuctionCommandExecutorFire.java
View file @
a0a35e7e
...
@@ -37,7 +37,7 @@ public class AuctionCommandExecutorFire extends CommandExecutor<CommandFire> {
...
@@ -37,7 +37,7 @@ public class AuctionCommandExecutorFire extends CommandExecutor<CommandFire> {
}
}
@Override
@Override
public
CommandExecutor
updateInfo
(
MessageManager
messageManager
)
{
public
CommandExecutor
<
CommandFire
>
updateInfo
(
MessageManager
messageManager
)
{
super
.
updateInfo
(
messageManager
);
super
.
updateInfo
(
messageManager
);
// FireStationから受信したMessageCivilianを収集
// FireStationから受信したMessageCivilianを収集
...
@@ -69,13 +69,13 @@ public class AuctionCommandExecutorFire extends CommandExecutor<CommandFire> {
...
@@ -69,13 +69,13 @@ public class AuctionCommandExecutorFire extends CommandExecutor<CommandFire> {
}
}
@Override
@Override
public
CommandExecutor
setCommand
(
CommandFire
command
)
{
public
CommandExecutor
<
CommandFire
>
setCommand
(
CommandFire
command
)
{
// TODO
// TODO
return
this
;
return
this
;
}
}
@Override
@Override
public
CommandExecutor
calc
()
{
public
CommandExecutor
<
CommandFire
>
calc
()
{
// TODO
// TODO
return
this
;
return
this
;
}
}
...
@@ -88,10 +88,9 @@ public class AuctionCommandExecutorFire extends CommandExecutor<CommandFire> {
...
@@ -88,10 +88,9 @@ public class AuctionCommandExecutorFire extends CommandExecutor<CommandFire> {
private
boolean
isValidHuman
(
StandardEntity
entity
)
{
private
boolean
isValidHuman
(
StandardEntity
entity
)
{
if
(
entity
==
null
)
if
(
entity
==
null
)
return
false
;
return
false
;
if
(!(
entity
instanceof
Human
))
if
(!(
entity
instanceof
Human
target
))
return
false
;
return
false
;
Human
target
=
(
Human
)
entity
;
if
(!
target
.
isHPDefined
()
||
target
.
getHP
()
==
0
)
if
(!
target
.
isHPDefined
()
||
target
.
getHP
()
==
0
)
return
false
;
return
false
;
if
(!
target
.
isPositionDefined
())
if
(!
target
.
isPositionDefined
())
...
@@ -106,10 +105,7 @@ public class AuctionCommandExecutorFire extends CommandExecutor<CommandFire> {
...
@@ -106,10 +105,7 @@ public class AuctionCommandExecutorFire extends CommandExecutor<CommandFire> {
return
false
;
return
false
;
StandardEntityURN
positionURN
=
position
.
getStandardURN
();
StandardEntityURN
positionURN
=
position
.
getStandardURN
();
if
(
positionURN
==
REFUGE
||
positionURN
==
AMBULANCE_TEAM
)
return
positionURN
!=
REFUGE
&&
positionURN
!=
AMBULANCE_TEAM
;
return
false
;
return
true
;
}
}
/**
/**
...
@@ -133,9 +129,6 @@ public class AuctionCommandExecutorFire extends CommandExecutor<CommandFire> {
...
@@ -133,9 +129,6 @@ public class AuctionCommandExecutorFire extends CommandExecutor<CommandFire> {
return
false
;
return
false
;
final
Human
targetHuman
=
(
Human
)
targetEntity
;
final
Human
targetHuman
=
(
Human
)
targetEntity
;
if
(
targetHuman
.
getBuriedness
()
<=
0
)
return
targetHuman
.
getBuriedness
()
>
0
;
return
false
;
return
true
;
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment