|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Level
Constructor Summary | |
Level(FenetreJeu fj)
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 le level. |
static boolean |
clef(int x,
int y)
Si la dalle est une clef. |
void |
dessineToi(java.awt.Graphics g,
boolean porte)
Elle se charge de dessiner le decors, |
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 int |
getNbDalleX()
Renvoie le nombre de dalles en abscisse. |
static int |
getNbDalleY()
Renvoie le nombre de dalles en ordonnee. |
int |
getNiveau()
Renvoie 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 |
reset()
Elle permet de revenir au niveau 1 |
void |
sauvegardeToi(java.io.PrintWriter pw)
Pour sauvegarder le level. |
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 fj)
f
- la fenetre de jeu courante.Method Detail |
public void charge()
public void suivant()
public void reset()
public void dessineToi(java.awt.Graphics g, boolean porte)
g
- C'est le graphics que l'on va dessiner.porte
- Etat de la porte.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 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 int getNiveau()
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 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 |