Package fr.formiko.formiko
Class Espece
java.lang.Object
fr.formiko.formiko.Espece
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected GIndividu
protected boolean
protected boolean
protected final int
protected boolean
protected int
protected boolean
protected boolean
protected String
protected String
protected boolean
protected static int
To avoid too long parties, there is x day passing in 1 turn concidering realistic values.protected int[]
protected boolean[]
protected byte[]
protected byte[]
protected int[]
protected byte[]
protected byte[]
protected boolean
-
Constructor Summary
ConstructorsConstructorDescriptionEspece
(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 constructorEspece
(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) -
Method Summary
Modifier and TypeMethodDescriptionint[]
boolean
int
getGivenFood
(byte stade) boolean
boolean
Only insectes imagos & ant imagos of type 0 or 1 can have wings.byte
getHealthLost
(byte stade) boolean
int
getId()
getIndividuByType
(int typeF) boolean
boolean
getName()
int
boolean
int
getSize
(byte stade) int
getSize
(int stade) byte[]
void
setGIndividu
(GIndividu giu) void
setPolycalique
(boolean b) toString()
-
Field Details
-
racioTourParJour
protected static int racioTourParJourTo avoid too long parties, there is x day passing in 1 turn concidering realistic values. -
id
protected final int id -
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
-
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
-
setGIndividu
-
getAviableType
public int[] getAviableType() -
getIndividuByType
-
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
-
descriptionF
-