Class Carte

java.lang.Object
fr.formiko.formiko.Carte
All Implemented Interfaces:
Serializable

public class Carte extends Object implements 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.
Author:
Hydrolien
See Also:
  • Field Details

    • gc

      private GCase 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

      private String 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

      public Carte(GCase gc, int a, int b, int c, boolean d, boolean e)
    • Carte

      public Carte(GCase gc)
      Secondary constructor.
      Parameters:
      gc - the GCase with the type of Case.
    • Carte

      public Carte(String mapName)
      Secondary constructor.
      Parameters:
      mapName - name of the map to load.
  • Method Details

    • getGc

      public GCase 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

      public String getMapName()
    • toString

      public String toString()
      Standard toString methode.
      Overrides:
      toString in class Object
    • length

      public int length()
      return the number of Case.
    • setMap

      public void setMap(String mapName)
      Load GCase from a file.
      Parameters:
      mapName - name of the map to load.