|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Level
Constructor Summary | |
Level(FenetreJeu f)
Preparation du chargement du tableau. |
Method Summary | |
static boolean |
cadeau(int x,
int y)
Si la dalle est un cadeau. |
void |
charge()
On charge le tableau a partir de notre fichier de donnees. |
void |
chargeToi(java.util.StringTokenizer st)
Pour charger l'objet heros. |
static boolean |
clef(int x,
int y)
Si la dalle est une clef. |
static boolean |
dynamite(int x,
int y)
Si la dalle est une dynamite. |
static boolean |
echelle(int x,
int y)
Si la dalle est une echelle. |
static void |
faireUnTrou(int x,
int y)
Met un trou en position courante. |
static char |
getDalle(int x,
int y)
Retourne la dalle courante. |
static int |
getNbDalleX()
Renvoie le nombre de dalles en abscisse. |
static int |
getNbDalleY()
Renvoie le nombre de dalles en ordonnee. |
static int |
getNiveau()
Le niveau courant. |
static int |
getPosXInitHeros()
La position du heros en abscisse. |
static int |
getPosXInitMonstre(int numero)
La position des monstres en abscisse. |
static int |
getPosYInitHeros()
La position du heros en ordonnee. |
static int |
getPosYInitMonstre(int numero)
La position des monstres en ordonnee. |
static boolean |
mur(int x,
int y)
Si la dalle est un mur. |
static void |
placerDynamite(int x,
int y)
Place la dynamite en position courante. |
static void |
placerMur(int x,
int y)
Place le mur en position courante. |
static boolean |
porte(int x,
int y)
Si la dalle est une porte. |
void |
sauvegardeToi(java.io.PrintWriter pw)
Pour sauvegarder l'objet heros. |
static void |
setDalle(int x,
int y,
char c)
Modifie la dalle courante. |
static int |
setNiveau(int level)
Modifier le niveau courant. |
static boolean |
sortieBas(int y)
Nous dit si l'on va sortir du tableau par le bas. |
static boolean |
sortieDroite(int x)
Nous dit si l'on va sortir du tableau par la droite. |
static boolean |
sortieGauche(int x)
Nous dit si l'on va sortir du tableau par la gauche. |
void |
suivant()
Pour changer de niveau si on peut. |
static boolean |
vide(int x,
int y)
Si la dalle est le vide. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Level(FenetreJeu f)
f
- la fenetre de jeu courante.Method Detail |
public void charge()
public void suivant()
public void sauvegardeToi(java.io.PrintWriter pw)
pw
- printWriter vers le fichier de sauvegarde.public void chargeToi(java.util.StringTokenizer st)
st
- StringTokenizer contenant les attributs du heros.public static boolean sortieBas(int y)
y
- Ordonnee courante.public static boolean sortieGauche(int x)
x
- Abscisse courante.public static boolean sortieDroite(int x)
x
- Abscisse courante.public static char getDalle(int x, int y)
x
- Abscisse courante.y
- Ordonnee courante.public static boolean vide(int x, int y)
x
- Abscisse courante.y
- Ordonnee courante.public static boolean mur(int x, int y)
x
- Abscisse courante.y
- Ordonnee courante.public static boolean echelle(int x, int y)
x
- Abscisse courante.y
- Ordonnee courante.public static boolean cadeau(int x, int y)
x
- Abscisse courante.y
- Ordonnee courante.public static boolean dynamite(int x, int y)
x
- Abscisse courante.y
- Ordonnee courante.public static boolean clef(int x, int y)
x
- Abscisse courante.y
- Ordonnee courante.public static boolean porte(int x, int y)
x
- Abscisse courante.y
- Ordonnee courante.public static int getNbDalleX()
public static int getNbDalleY()
public static int getPosXInitHeros()
public static int getPosYInitHeros()
public static int getPosXInitMonstre(int numero)
public static int getPosYInitMonstre(int numero)
public static int getNiveau()
public static int setNiveau(int level)
level
- Le niveau que l'on souhaite.public static void setDalle(int x, int y, char c)
x
- Abscisse courante.y
- Ordonnee courante.public static void placerDynamite(int x, int y)
x
- Abscisse courante.y
- Ordonnee courante.public static void placerMur(int x, int y)
x
- Abscisse courante.y
- Ordonnee courante.public static void faireUnTrou(int x, int y)
x
- Abscisse courante.y
- Ordonnee courante.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |