2020-04-20 14:39:19 +02:00
|
|
|
package effet;
|
|
|
|
|
2020-04-21 11:46:41 +02:00
|
|
|
import effet.action.Action;
|
2020-04-20 14:39:19 +02:00
|
|
|
import main.Joueur;
|
|
|
|
|
2020-04-21 16:37:23 +02:00
|
|
|
public class EffetTarget extends Effet{
|
2020-04-20 14:39:19 +02:00
|
|
|
|
2020-04-21 16:37:23 +02:00
|
|
|
private Joueur target;
|
|
|
|
|
2020-04-21 11:46:41 +02:00
|
|
|
public EffetTarget(Action action) {
|
|
|
|
super(action);
|
|
|
|
}
|
2020-04-21 16:37:23 +02:00
|
|
|
|
|
|
|
public void setTarget(Joueur target) {
|
|
|
|
this.target = target;
|
|
|
|
}
|
2020-04-21 11:46:41 +02:00
|
|
|
|
2020-04-21 16:37:23 +02:00
|
|
|
public void utiliser(Joueur joueur) {
|
|
|
|
this.getAction().affecte(joueur, target);
|
|
|
|
}
|
2020-04-20 14:39:19 +02:00
|
|
|
|
|
|
|
}
|