public class Interception extends AbstractCaracteristique
Constructor and Description |
---|
Interception(_Model model) |
Interception(_Model model,
int x,
int y) |
Interception(_Model model,
int x,
int y,
int dir) |
Interception(_Model model,
java.lang.String nom) |
Interception(_Model model,
java.lang.String nom,
int x,
int y) |
Interception(_Model model,
java.lang.String nom,
int x,
int y,
int dir) |
Interception() |
Modifier and Type | Method and Description |
---|---|
AbstractTortue |
getAbstractTortue()
Get the value of abstractTortue
|
int |
getChance()
Get the value of chance
|
void |
intercepter(AbstractTortue t)
Méthode d'insterception de la balle
|
void |
setAbstractTortue(AbstractTortue newVar)
Set the value of abstractTortue
|
void |
setChance(int newVar)
Set the value of chance
|
actualiserTactic, addObserver, avancer, carre, collisions, gestionBalle, gestionCollisions, getEquipe, getNom, getRole, lancer, notifyObserver, removeObserver, reset, setEquipe, setNom, setRole, toString
collision, deplacementVers, deplacementVers, distance, droite, gauche, getCouleur, getDirection, getModel, getRayon, getX, getY, setCouleur, setModel
public Interception()
public Interception(_Model model)
model
- public Interception(_Model model, int x, int y)
model
- x
- y
- public Interception(_Model model, int x, int y, int dir)
model
- x
- y
- dir
- public Interception(_Model model, java.lang.String nom)
model
- nom
- public Interception(_Model model, java.lang.String nom, int x, int y)
model
- nom
- x
- y
- public Interception(_Model model, java.lang.String nom, int x, int y, int dir)
model
- nom
- x
- y
- dir
- public void setAbstractTortue(AbstractTortue newVar)
newVar
- the new value of abstractTortuepublic AbstractTortue getAbstractTortue()
public void setChance(int newVar)
newVar
- the new value of chancepublic int getChance()
public void intercepter(AbstractTortue t)
Tortue
intercepter
in class Tortue
t
-