Class AnimalGene
java.lang.Object
zombie.characters.animals.AnimalGene
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkGeneticDisorder
(IsoAnimal isoAnimal) static void
doMutation
(AnimalAllele animalAllele) static void
doRatio
(AnimalGenomeDefinitions animalGenomeDefinitions, HashMap<String, AnimalGene> hashMap, AnimalAllele animalAllele) getName()
static HashMap
<String, AnimalGene> initGenesFromParents
(HashMap<String, AnimalGene> hashMap2, HashMap<String, AnimalGene> hashMap1) static void
initGenome
(IsoAnimal isoAnimal) void
void
load
(ByteBuffer byteBuffer, int int0, boolean boolean0) void
save
(ByteBuffer byteBuffer, boolean boolean0)
-
Field Details
-
name
-
id
public int id -
allele1
-
allele2
-
-
Constructor Details
-
AnimalGene
public AnimalGene()
-
-
Method Details
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-
initGenome
-
initUsedGene
public void initUsedGene() -
doRatio
public static void doRatio(AnimalGenomeDefinitions animalGenomeDefinitions, HashMap<String, AnimalGene> hashMap, AnimalAllele animalAllele) -
initGenesFromParents
public static HashMap<String,AnimalGene> initGenesFromParents(HashMap<String, AnimalGene> hashMap2, HashMap<String, AnimalGene> hashMap1) -
checkGeneticDisorder
-
doMutation
-
getName
-
getAllele1
-
getAllele2
-
getUsedGene
-