Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
Not Alone
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anthony ROZEN
Not Alone
Commits
072a4272
Commit
072a4272
authored
Dec 23, 2020
by
babablaze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add implementation of plateau and add boolean in Plage card
parent
756911f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
not-alone-server/src/main/java/fr/univnantes/alma/game/composant/Plateau.java
.../main/java/fr/univnantes/alma/game/composant/Plateau.java
+47
-0
not-alone-server/src/main/java/fr/univnantes/alma/game/database/Lieux/Plage.java
...in/java/fr/univnantes/alma/game/database/Lieux/Plage.java
+4
-0
No files found.
not-alone-server/src/main/java/fr/univnantes/alma/game/composant/Plateau.java
View file @
072a4272
package
fr.univnantes.alma.game.composant
;
import
fr.univnantes.alma.game.composant.Carte.Carte
;
import
fr.univnantes.alma.game.composant.Carte.CarteLieu
;
import
fr.univnantes.alma.game.composant.Pion.PionAssimilation
;
import
fr.univnantes.alma.game.composant.Pion.PionSecours
;
import
fr.univnantes.alma.game.database.Lieux.*
;
import
java.util.ArrayList
;
public
class
Plateau
{
private
ArrayList
<
Carte
>
plateauCarte
;
private
PionAssimilation
pionAssimilation
;
private
PionSecours
pionSecours
;
public
Plateau
(
int
numberPlayer
){
this
.
plateauCarte
=
new
ArrayList
<>();
this
.
plateauCarte
.
add
(
new
Antre
());
this
.
plateauCarte
.
add
(
new
Jungle
());
this
.
plateauCarte
.
add
(
new
Riviere
());
this
.
plateauCarte
.
add
(
new
Plage
());
this
.
plateauCarte
.
add
(
new
Rover
());
this
.
plateauCarte
.
add
(
new
Abri
());
this
.
plateauCarte
.
add
(
new
Epave
());
this
.
plateauCarte
.
add
(
new
Abri
());
this
.
plateauCarte
.
add
(
new
Source
());
this
.
pionAssimilation
=
new
PionAssimilation
(
numberPlayer
);
this
.
pionSecours
=
new
PionSecours
(
numberPlayer
);
}
public
ArrayList
<
Carte
>
getPlateauCarte
()
{
return
plateauCarte
;
}
public
PionAssimilation
getPionAssimilation
()
{
return
pionAssimilation
;
}
public
void
setPionAssimilationPosition
(
int
newPosition
)
{
this
.
pionAssimilation
.
setPosition
(
newPosition
);
}
public
PionSecours
getPionSecours
()
{
return
pionSecours
;
}
public
void
setPionSecoursPosition
(
int
newPosition
)
{
this
.
pionSecours
.
setPosition
(
newPosition
);
}
}
not-alone-server/src/main/java/fr/univnantes/alma/game/database/Lieux/Plage.java
View file @
072a4272
...
...
@@ -3,7 +3,11 @@ package fr.univnantes.alma.game.database.Lieux;
import
fr.univnantes.alma.game.composant.Carte.CarteLieu
;
public
class
Plage
extends
CarteLieu
{
private
boolean
balise
;
public
Plage
()
{
super
(
"La Plage"
,
"..."
,
4
);
this
.
balise
=
false
;
}
}
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