Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Quentin DRUAULT-AUBIN
lo23-project
Commits
61f4216b
Commit
61f4216b
authored
Dec 19, 2017
by
dkonam
Browse files
fix
parent
7c908308
Changes
2
Hide whitespace changes
Inline
Side-by-side
Battleship/src/main/java/com/utclo23/data/facade/DataFacade.java
View file @
61f4216b
...
...
@@ -282,6 +282,8 @@ public class DataFacade implements IDataCom, IDataIHMTable, IDataIHMMain {
}
catch
(
IOException
ex
)
{
ex
.
printStackTrace
();
}
this
.
opponentHasLeftGame
();
}
/**
...
...
Battleship/src/main/java/com/utclo23/data/module/GameMediator.java
View file @
61f4216b
...
...
@@ -321,6 +321,7 @@ public class GameMediator {
if
(
this
.
currentGame
.
isShipDestroyed
(
ship
,
this
.
currentGame
.
getComputerPlayer
().
getMines
()))
{
this
.
currentGame
.
getComputerPlayer
().
loseFocus
();
System
.
out
.
println
(
""
);
}
}
...
...
@@ -666,7 +667,6 @@ public class GameMediator {
if
(
ready
)
//notify IA to place ships
{
System
.
out
.
println
(
"Data | IA turn set ships"
);
this
.
currentGame
.
getComputerPlayer
().
setShips
(
this
.
currentGame
.
getTemplateShips
());
this
.
dataFacade
.
getIhmTablefacade
().
notifyGameReady
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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