Class Personnage

java.lang.Object
  |
  +--Personnage
Direct Known Subclasses:
Bete, Joueur

public class Personnage
extends java.lang.Object

Classe qui cree un personnage dans le labyrinthe a une certaine position dans le labyrinthe.

Version:
1.1.6
Author:
Cecile FRANCOU, Sophia GALLARDO
See Also:
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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

chemin_images

protected java.lang.String chemin_images
chemin des images

position_origine

protected Cell position_origine
Les coordonnees de depart du personnage dans le labyrinthe

position_courante

protected Cell position_courante
position actuelle (courante) du personnage dans le labyrinthe

interaction

protected Interaction interaction
interaction entre les joueurs et le labyrinthe
Constructor Detail

Personnage

public Personnage(Cell position_origine,
                  Interaction interaction)
Parameters:
position_origine - position d'origine du personnage
interaction - interaction entre les personnages et le labyrinthe
Method Detail

setChemin_image

public void setChemin_image(java.lang.String chemin_images)
Modifie le chemin des images.
Parameters:
chemin_images - chemin des images

setPosition

public void setPosition(Cell position)
Modifie la position courante du personnage.
Parameters:
position - position du personnage.

getPosition

public Cell getPosition()
Retourne la position courante du personnage.
Returns:
Cell position du personnage.

getX

public int getX()
Retourne la position en x du personnage.
Returns:
int position en x du personnage.

getY

public int getY()
Retourne la position en y du personnage.
Returns:
int position en y du personnage.