|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Personnage
Classe qui cree un personnage dans le labyrinthe a une certaine position dans le labyrinthe.
Interaction
Field Summary | |
protected java.lang.String |
chemin_images
chemin des images |
protected Interaction |
interaction
interaction entre les joueurs et le labyrinthe |
protected Cell |
position_courante
position actuelle (courante) du personnage dans le labyrinthe |
protected Cell |
position_origine
Les coordonnees de depart du personnage dans le labyrinthe |
Constructor Summary | |
Personnage(Cell position_origine,
Interaction interaction)
|
Method Summary | |
Cell |
getPosition()
Retourne la position courante du personnage. |
int |
getX()
Retourne la position en x du personnage. |
int |
getY()
Retourne la position en y du personnage. |
void |
setChemin_image(java.lang.String chemin_images)
Modifie le chemin des images. |
void |
setPosition(Cell position)
Modifie la position courante du personnage. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected java.lang.String chemin_images
protected Cell position_origine
protected Cell position_courante
protected Interaction interaction
Constructor Detail |
public Personnage(Cell position_origine, Interaction interaction)
position_origine
- position d'origine du personnageinteraction
- interaction entre les personnages et le labyrintheMethod Detail |
public void setChemin_image(java.lang.String chemin_images)
chemin_images
- chemin des imagespublic void setPosition(Cell position)
position
- position du personnage.public Cell getPosition()
public int getX()
public int getY()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |