Commit 8644b025 authored by Antoine Guérin's avatar Antoine Guérin

modification des jetons

parent 9c13269d
package fr.univnantes.alma.game.composant.Jeton;
import fr.univnantes.alma.game.composant.Carte.CarteLieu;
import sun.jvm.hotspot.debugger.cdbg.Sym;
import java.util.ArrayList;
public abstract class Jeton {
public class Jeton {
ArrayList<CarteLieu> position;
SymboleJeton symboleJeton;
public Jeton() {
public Jeton(SymboleJeton symboleJeton) {
this.position = new ArrayList<>();
this.symboleJeton = symboleJeton;
}
public SymboleJeton getSymboleJeton() {
return symboleJeton;
}
public void poserJeton(CarteLieu clieu)
......@@ -21,8 +28,6 @@ public abstract class Jeton {
position.clear();
}
public abstract void pouvoir();
public ArrayList<CarteLieu> getPosition() {
return position;
}
......
package fr.univnantes.alma.game.composant.Jeton;
import fr.univnantes.alma.game.composant.Carte.CarteLieu;
import java.util.ArrayList;
public class JetonArtemia extends Jeton {
public JetonArtemia() {
this.position = new ArrayList<>();
}
@Override
public void pouvoir() {
//
}
}
package fr.univnantes.alma.game.composant.Jeton;
import fr.univnantes.alma.game.composant.Carte.CarteLieu;
import java.util.ArrayList;
public class JetonCible extends Jeton {
public JetonCible() {
this.position = new ArrayList<>();
}
@Override
public void pouvoir() {
//
}
}
package fr.univnantes.alma.game.composant.Jeton;
import java.util.ArrayList;
public class JetonCreature extends Jeton{
public JetonCreature() {
this.position = new ArrayList<>();
}
@Override
public void pouvoir() {
//
}
}
package fr.univnantes.alma.game.composant.Jeton;
public enum SymboleJeton {CIBLE,ARTEMIA,CREATURE}
......@@ -3,6 +3,7 @@ package fr.univnantes.alma.game.composant.Joueur;
import fr.univnantes.alma.game.composant.Carte.CarteLieu;
import fr.univnantes.alma.game.composant.Carte.CarteTraque;
import fr.univnantes.alma.game.composant.Jeton.Jeton;
import fr.univnantes.alma.game.composant.Jeton.SymboleJeton;
import java.util.ArrayList;
......@@ -14,9 +15,10 @@ public class Creature extends Joueur{
public Creature(String nom){
super(nom);
jetonCreature = new Jeton();
jetonCible = new Jeton();
jetonArtemia = new Jeton();
jetonCreature = new Jeton(SymboleJeton.CREATURE);
jetonCible = new Jeton(SymboleJeton.CIBLE);
jetonArtemia = new Jeton(SymboleJeton.ARTEMIA
);
this.carteTraque = new ArrayList<CarteTraque>(); // taille 3
}
......
package fr.univnantes.alma.game.database.Traque;
import fr.univnantes.alma.game.composant.Carte.CarteTraque;
import fr.univnantes.alma.game.composant.Jeton.JetonArtemia;
public class Angoisse extends CarteTraque {
public Angoisse() {
......
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