Class Espece

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

public class Espece extends Object implements Serializable
See Also:
  • Field Details

    • racioTourParJour

      protected static int racioTourParJour
      To avoid too long parties, there is x day passing in 1 turn concidering realistic values.
    • id

      protected final int id
    • name

      protected String name
    • maxIndividus

      protected int maxIndividus
    • polycalic

      protected boolean polycalic
    • monogyne

      protected boolean monogyne
    • insectivore

      protected boolean insectivore
    • granivore

      protected boolean granivore
    • fongivore

      protected boolean fongivore
    • herbivore

      protected boolean herbivore
    • miellativore

      protected boolean miellativore
    • tTemperatureExt

      protected byte[] tTemperatureExt
    • tTemperatureInt

      protected byte[] tTemperatureInt
    • tHumidity

      protected byte[] tHumidity
    • tHabitat

      protected boolean[] tHabitat
    • tHealthLost

      protected byte[] tHealthLost
    • tGivenFood

      protected int[] tGivenFood
    • tSize

      protected int[] tSize
    • note

      protected String note
    • giu

      protected GIndividu giu
    • vole

      protected boolean vole
  • Constructor Details

    • Espece

      public Espece(int id, String name, int nbr, boolean polycalic, boolean monogyne, boolean insectivore, boolean granivore, boolean fongivore, boolean herbivore, boolean miellativore, byte tmin, byte tmini, byte tmaxi, byte tmax, byte tnidmin, byte tnidmini, byte tnidmaxi, byte tnidmax, byte humin, byte humax, boolean ha0, boolean ha1, boolean ha2, byte[] po, int[] nf, int[] ta, boolean vole, String note)
    • Espece

      public Espece(int id, String name, int maxIndividus, boolean polycalic, boolean monogyne, boolean insectivore, boolean granivore, boolean fongivore, boolean herbivore, boolean miellativore, byte[] tTemperatureExt, byte[] tTemperatureInt, byte[] tHumidity, boolean[] tHabitat, byte[] tHealthLost, int[] tGivenFood, int[] tSize, String note, GIndividu giu, boolean vole)
      Default Espece constructor
  • Method Details

    • getId

      public int getId()
    • getHealthLost

      public byte getHealthLost(byte stade)
    • getInsectivore

      public boolean getInsectivore()
    • getGranivore

      public boolean getGranivore()
    • getFongivore

      public boolean getFongivore()
    • getHerbivore

      public boolean getHerbivore()
    • getMiellativore

      public boolean getMiellativore()
    • getNbrDIndividuMax

      public int getNbrDIndividuMax()
    • getGIndividu

      public GIndividu getGIndividu()
    • setGIndividu

      public void setGIndividu(GIndividu giu)
    • getAviableType

      public int[] getAviableType()
    • getIndividuByType

      public Individu getIndividuByType(int typeF)
    • getName

      public String getName()
    • getPolycalique

      public boolean getPolycalique()
    • setPolycalique

      public void setPolycalique(boolean b)
    • getHaveWings

      public boolean getHaveWings()
      Only insectes imagos & ant imagos of type 0 or 1 can have wings.
    • getGivenFood

      public int getGivenFood(byte stade)
    • getSize

      public int getSize(byte stade)
    • getSize

      public int getSize(int stade)
    • getTHealthLost

      public byte[] getTHealthLost()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • descriptionF

      public String descriptionF()