M431-ShadowHunterGame/src/carte/CarteLieuType.java

27 lines
416 B
Java
Raw Normal View History

package carte;
2020-04-21 13:45:45 +02:00
import java.awt.Point;
2020-04-17 15:05:15 +02:00
import main.Joueur;
2020-04-21 13:45:45 +02:00
import main.Pioche;
import main.Type;
2020-04-17 15:05:15 +02:00
2020-04-21 13:45:45 +02:00
public class CarteLieuType<T extends Type> extends CarteLieu{
private Pioche<T> pioche;
2020-04-21 13:45:45 +02:00
public CarteLieuType(Point coordinates,Pioche<T> pioche) {
super(coordinates);
this.pioche = pioche;
}
public void utiliser(Joueur j) {
2020-04-21 13:45:45 +02:00
CartePiochable<?> carte = pioche.piocher();
carte.utiliser(j);
}
2020-04-21 13:45:45 +02:00
}