Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tristan MAISONNEUVE
projetS2-2021-23-LJ
Commits
954a1af2
Commit
954a1af2
authored
Jun 23, 2021
by
Jolan RENOUX
Browse files
maj avant de miam
parent
82cb0628
Changes
6
Hide whitespace changes
Inline
Side-by-side
out/production/battleship-student-project-2021/Application.class
View file @
954a1af2
No preview for this file type
out/production/battleship-student-project-2021/modele/info1/ships/NavyFleet.class
View file @
954a1af2
No preview for this file type
out/production/battleship-student-project-2021/vue/FenetreConnexion.class
View file @
954a1af2
No preview for this file type
out/production/battleship-student-project-2021/vue/FenetreJeux.class
View file @
954a1af2
No preview for this file type
src/Application.java
View file @
954a1af2
...
...
@@ -31,7 +31,7 @@ public class Application {
*/
PremiereFenetre
pf
=
new
PremiereFenetre
();
Network
.
setProxy
(
"srv-proxy-etu-2.iut-nantes.univ-nantes.prive"
,
3128
);
Network
.
setProxy
(
proxy
,
3128
);
Network
.
enableProxy
(
true
);
//TODO IHM changer le nom de jaquie
...
...
@@ -50,6 +50,10 @@ public class Application {
fleet
.
add
(
new
AircraftCarrier
(
"porteavion3"
,
"C1"
,
"C6"
));
fleet
.
add
(
new
AircraftCarrier
(
"porteavion4"
,
"D1"
,
"D6"
));
}
catch
(
BadCoordException
e
)
{
e
.
printStackTrace
();}
catch
(
CoordsBadShipException
e
)
{
e
.
printStackTrace
();}
while
(
fleet
.
isBelgianConfiguration
()
||
fleet
.
isFrenchConfiguration
()){
}
ArrayList
<
Game
>
parties
=
new
ArrayList
<
Game
>();
...
...
@@ -57,12 +61,19 @@ public class Application {
//TODO Init game ou rejoindre
try
{
Game
newGame
=
new
Game
((
int
)
Math
.
random
());
}
catch
(
BadIdException
e
)
{
e
.
printStackTrace
();}
//new game
try
{
Network
.
initNewGame
(
url
,
jaquie
,
fleet
);
}
catch
(
UnirestException
e
)
{
e
.
printStackTrace
();}
catch
(
UncompleteFleetException
e
)
{
e
.
printStackTrace
();}
catch
(
BadCoordException
e
)
{
e
.
printStackTrace
();}
}
//rejoindre game
catch
(
UnirestException
|
BadCoordException
|
UncompleteFleetException
e
)
{
e
.
printStackTrace
();
}
/*
try {
Network.joinGame(url,LISTENER_GAME_CHOISI_DANS_LA_LISTE,jaquie,fleet);
} catch (UnirestException | UncompleteFleetException | BadCoordException e) {e.printStackTrace();}
*/
/*
1 si la partie est correctement initiée par le joueur courant ;
...
...
src/controleur/BlablaListener.java
deleted
100644 → 0
View file @
82cb0628
package
controleur
;
public
class
BlablaListener
{
}
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