Commit 072a4272 authored by babablaze's avatar babablaze
Browse files

add implementation of plateau and add boolean in Plage card

parent 756911f9
package fr.univnantes.alma.game.composant; 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 { 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);
}
} }
...@@ -3,7 +3,11 @@ package fr.univnantes.alma.game.database.Lieux; ...@@ -3,7 +3,11 @@ package fr.univnantes.alma.game.database.Lieux;
import fr.univnantes.alma.game.composant.Carte.CarteLieu; import fr.univnantes.alma.game.composant.Carte.CarteLieu;
public class Plage extends CarteLieu { public class Plage extends CarteLieu {
private boolean balise;
public Plage() { public Plage() {
super("La Plage", "...", 4); super("La Plage", "...", 4);
this.balise = false;
} }
} }
Markdown is supported
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