Noble Ape
The Central Directories of the Noble Ape Simulation.
|
Go to the source code of this file.
Functions | |
void | social_action (noble_simulation *sim, noble_being *local, noble_being *other, n_byte action) |
Performs a given action. | |
n_int | genetics_compare (n_genetics *genetics_a, n_genetics *genetics_b) |
Compares two genetics and returns 1 if they are the same. | |
void | genetics_set (n_genetics *genetics_a, n_genetics *genetics_b) |
Sets genetics A to be the same as genetics B. | |
void | genetics_zero (n_genetics *genetics_a) |
Creates a blank genome. | |
void | body_genetics (noble_being *beings, n_int number, n_genetics *genetics, n_genetics *mother_genetics, n_genetics *father_genetics, n_byte2 *local) |
void | body_genome (n_byte maternal, n_genetics *genome, n_byte *genome_str) |
Returns a string of letters representing the genome. |
void body_genetics | ( | noble_being * | beings, |
n_int | number, | ||
n_genetics * | genetics, | ||
n_genetics * | mother_genetics, | ||
n_genetics * | father_genetics, | ||
n_byte2 * | local | ||
) |
void body_genome | ( | n_byte | maternal, |
n_genetics * | genome, | ||
n_byte * | genome_str | ||
) |
Returns a string of letters representing the genome.
maternal | Show either the maternal or paternal side of each chromosome |
genome | The genome to be shown |
genome_str | The returned string |
for every chromosome
for each 2 bit gene in the chromosome. Each chromosome is 16 bits long with the full 32 bit value containing the chromosome pair
the maternal part of the diplod
the paternal part of the diploid
n_int genetics_compare | ( | n_genetics * | genetics_a, |
n_genetics * | genetics_b | ||
) |
void genetics_set | ( | n_genetics * | genetics_a, |
n_genetics * | genetics_b | ||
) |
void genetics_zero | ( | n_genetics * | genetics_a | ) |
void social_action | ( | noble_simulation * | sim, |
noble_being * | local, | ||
noble_being * | other, | ||
n_byte | action | ||
) |
Performs a given action.
sim | Pointer to the simulation object |
local | Pointer to the being performing the action |
other | Pointer to another being involved in the action |
action | The type of action |
individual action
social action
Definition at line 519 of file body.c.