|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJeu.Pion
Jeu.Roi
public class Roi
Constructor Summary | |
---|---|
Roi(int x,
int y,
Plateau p,
Joueur j)
On cree un nouveau pion sur le plateau p aux coordonnee (x,y). |
Method Summary | |
---|---|
java.lang.String |
afficherPion()
affiche la couleur du pion sous forme de chaine de caractere |
boolean |
estCapture(Plateau p)
on regarde si le roi est capture ou pas sur le plateau p |
boolean |
estSortit()
on regarde si le roi est sur une case sortie ou pas |
java.lang.String |
getTypePion()
retourne le type de la piece |
Methods inherited from class Jeu.Pion |
---|
capturerPions, deplacerPion, estBloque, estMort, getCase, getDMax, getStatut, getX, getY, mouvVersTrone, revivrePion, setCase |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Roi(int x, int y, Plateau p, Joueur j)
x
- coordonnee x du piony
- coordonnee y du pionp
- plateau p sur lequel va etre pose le pionj
- le pion appartient au joueur jMethod Detail |
---|
public java.lang.String afficherPion()
afficherPion
in class Pion
public java.lang.String getTypePion()
getTypePion
in class Pion
public boolean estCapture(Plateau p)
estCapture
in class Pion
p
- plateau sur lequel on regarde
public boolean estSortit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |