Package fr.formiko.formiko
Class Carte
java.lang.Object
fr.formiko.formiko.Carte
- All Implemented Interfaces:
Serializable
Map class.
Map have a GCase that represent all the Case of the map, a name and some boolean/byte for param of the map.
Map have a GCase that represent all the Case of the map, a name and some boolean/byte for param of the map.
- Author:
- Hydrolien
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte
byte
byte
boolean
boolean
getGc()
int
int
length()
return the number of Case.void
setCasesNuageuses
(boolean b) void
setCasesSombres
(boolean b) void
Load GCase from a file.toString()
Standard toString methode.
-
Field Details
-
gc
the GCase with the type of Case. -
abondanceInsecte
private byte abondanceInsecte -
abondanceGraine
private byte abondanceGraine -
abondanceHerbe
private byte abondanceHerbe -
casesNuageuses
private boolean casesNuageuses -
casesSombres
private boolean casesSombres -
mapName
-
-
Constructor Details
-
Carte
public Carte(GCase gc, byte abondanceInsecte, byte abondanceGraine, byte abondanceHerbe, boolean caseNuageuse, boolean caseSombre) Main constructor.- Parameters:
gc
- the GCase with the type of Case.
-
Carte
-
Carte
Secondary constructor.- Parameters:
gc
- the GCase with the type of Case.
-
Carte
Secondary constructor.- Parameters:
mapName
- name of the map to load.
-
-
Method Details
-
getGc
-
getAbondanceGraine
public byte getAbondanceGraine() -
getAbondanceInsecte
public byte getAbondanceInsecte() -
getAbondanceHerbe
public byte getAbondanceHerbe() -
getNbrDInsecteAuDébut
public int getNbrDInsecteAuDébut() -
getCasesNuageuses
public boolean getCasesNuageuses() -
setCasesNuageuses
public void setCasesNuageuses(boolean b) -
getCasesSombres
public boolean getCasesSombres() -
setCasesSombres
public void setCasesSombres(boolean b) -
getMapName
-
toString
Standard toString methode. -
length
public int length()return the number of Case. -
setMap
Load GCase from a file.- Parameters:
mapName
- name of the map to load.
-