|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--PlanNiveau
Class PlanNiveau, contient Plan du niveau L'image representant le niveau Permet la mise a jour simultane du Plan du Niveau et de son Image
| Field Summary | |
static int |
CHEMIN
Type de case chemin, traversable par les SpriteDeplacable |
static int |
HauteurNiveau
Hauteur du Plan exprime en nombre de case |
static int |
HauteurTitle
Hauteur d'une case en pixel |
static int |
LargeurNiveau
Largeur du Plan exprime en nombre de case |
static int |
LargeurTitle
Largeur d'une case en pixel |
static int |
MURINDESTRUCTIBLE
Type de case Mur indestructible par les bombes |
| Constructor Summary | |
PlanNiveau(java.lang.String nom)
Constructeur, Cree l'image representant le Niveau, charge le Niveau |
|
| Method Summary | |
void |
afficheToi(java.awt.Graphics gc)
Affiche le plan du niveau sur un graphics |
void |
chargeImageNiveau()
chargement des images dans le tableau d'images |
void |
generateurNiveauAleatoire(int pourcentage)
|
int |
getCase(int x,
int y)
renvoie le type du title de position (x,y) en coords "case". |
java.lang.String |
getnomNiveau()
Permet de recuperer le nom du niveau, correspond aussi au fichier ASCII contenant le niveau |
static void |
main(java.lang.String[] args)
Pour TEST |
void |
setCase(int x,
int y,
int type)
Modifie le type du title de position (x,y) en coords "case", en mettant aussi a jour l'image repressantant le plan. |
java.lang.String |
toString()
Renvoie une description detaillee du Plan du Niveau |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int CHEMIN
public static final int MURINDESTRUCTIBLE
public static int LargeurTitle
public static int HauteurTitle
public static int LargeurNiveau
public static int HauteurNiveau
| Constructor Detail |
public PlanNiveau(java.lang.String nom)
throws java.io.FileNotFoundException,
java.io.IOException
| Method Detail |
public java.lang.String getnomNiveau()
public void chargeImageNiveau()
public java.lang.String toString()
public int getCase(int x,
int y)
public void setCase(int x,
int y,
int type)
public void afficheToi(java.awt.Graphics gc)
public void generateurNiveauAleatoire(int pourcentage)
public static void main(java.lang.String[] args)
throws java.io.FileNotFoundException,
java.io.IOException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||