public class Lancer extends AbstractCaracteristique
Constructor and Description |
---|
Lancer(_Model model) |
Lancer(_Model model,
int x,
int y) |
Lancer(_Model model,
int x,
int y,
int dir) |
Lancer(_Model model,
java.lang.String nom) |
Lancer(_Model model,
java.lang.String nom,
int x,
int y) |
Lancer(_Model model,
java.lang.String nom,
int x,
int y,
int dir) |
Lancer() |
Modifier and Type | Method and Description |
---|---|
AbstractTortue |
getAbstractTortue()
Get the value of abstractTortue
|
int |
getDistance()
Get the value of distance
|
void |
lancer(AbstractTortue t)
Méthode de lancé de la balle
|
void |
setAbstractTortue(AbstractTortue newVar)
Set the value of abstractTortue
|
void |
setDistance(int newVar)
Set the value of distance
|
actualiserTactic, addObserver, avancer, carre, collisions, gestionBalle, gestionCollisions, getEquipe, getNom, getRole, intercepter, notifyObserver, removeObserver, reset, setEquipe, setNom, setRole, toString
collision, deplacementVers, deplacementVers, distance, droite, gauche, getCouleur, getDirection, getModel, getRayon, getX, getY, setCouleur, setModel
public Lancer()
public Lancer(_Model model)
model
- public Lancer(_Model model, int x, int y)
model
- x
- y
- public Lancer(_Model model, int x, int y, int dir)
model
- x
- y
- dir
- public Lancer(_Model model, java.lang.String nom)
model
- nom
- public Lancer(_Model model, java.lang.String nom, int x, int y)
model
- nom
- x
- y
- public Lancer(_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 setDistance(int newVar)
newVar
- the new value of distancepublic int getDistance()
public void lancer(AbstractTortue t)
Tortue