|
Noble Ape
The Central Directories of the Noble Ape Simulation.
|
Go to the source code of this file.
Typedefs | |
| typedef n_int( | n_similar )(noble_episodic *episodic, n_int *carry_through) |
Functions | |
| void | brain_cycle (n_byte *local, n_byte2 *constants) |
| Updates the brain. | |
| void | brain_three_byte_command (n_string string, n_byte *response) |
| prints a three byte instruction in the appropriate format | |
| void | brain_sentence (n_string string, n_byte *response) |
| A simple sort of sentence construction from three byte instructions. | |
| n_byte | get_braincode_instruction_type (n_byte instruction_type) |
| returns a random braincode instruction of the given type | |
| void | braincode_number_of_instructions (noble_simulation *sim, noble_being *local_being, n_int *no_of_sensors, n_int *no_of_actuators, n_int *no_of_operators, n_int *no_of_conditionals, n_int *no_of_data) |
| n_byte | get_braincode_instruction (noble_being *local_being) |
| returns a random braincode instruction | |
| void | brain_dialogue (noble_simulation *sim, n_byte awake, noble_being *meeter_being, noble_being *met_being, n_byte *bc0, n_byte *bc1, n_int being_index) |
| Two beings meet and chat, or a being engages in an internal dialogue. | |
Variables | |
| const n_string | braincode_mnemonic [BRAINCODE_INSTRUCTIONS] |
| const n_string | braincode_spoken_dictionary [BRAINCODE_INSTRUCTIONS] |
| #define BRAINCODE_ACTUATORS_NUMBER (1 + BRAINCODE_ANE - BRAINCODE_ACTUATORS_START) |
| #define BRAINCODE_ACTUATORS_START BRAINCODE_ACT |
| #define BRAINCODE_CONDITIONALS_NUMBER (1 + BRAINCODE_SLT - BRAINCODE_CONDITIONALS_START) |
| #define BRAINCODE_CONDITIONALS_START BRAINCODE_JMZ |
| #define BRAINCODE_CONSTANT0 | ( | braincode, | |
| i | |||
| ) | (braincode[i] & BRAINCODE_CONSTANT0_BIT) |
| #define BRAINCODE_CONSTANT1 | ( | braincode, | |
| i | |||
| ) | (braincode[i] & BRAINCODE_CONSTANT1_BIT) |
| #define BRAINCODE_DATA_NUMBER (1 + BRAINCODE_DAT1 - BRAINCODE_DATA_START) |
| #define BRAINCODE_DATA_START BRAINCODE_DAT0 |
| #define BRAINCODE_INSTRUCTION | ( | braincode, | |
| i | |||
| ) | ((braincode[i] & (BRAINCODE_CONSTANT0_BIT-1)) % BRAINCODE_INSTRUCTIONS) |
| #define BRAINCODE_OPERATORS_NUMBER (1 + BRAINCODE_LTP - BRAINCODE_OPERATORS_START) |
| #define BRAINCODE_OPERATORS_START BRAINCODE_ADD |
| #define BRAINCODE_SENSORS_NUMBER (1 + BRAINCODE_SEN3 - BRAINCODE_SENSORS_START) |
| #define BRAINCODE_SENSORS_START BRAINCODE_SEN |
| #define BRAINCODE_VALUE | ( | braincode, | |
| i, | |||
| n | |||
| ) | (braincode[i+1+n]) |
| typedef n_int( n_similar)(noble_episodic *episodic, n_int *carry_through) |
| void brain_dialogue | ( | noble_simulation * | sim, |
| n_byte | awake, | ||
| noble_being * | meeter_being, | ||
| noble_being * | met_being, | ||
| n_byte * | bc0, | ||
| n_byte * | bc1, | ||
| n_int | being_index | ||
| ) |
Two beings meet and chat, or a being engages in an internal dialogue.
| sim | Pointer to the simulation object |
| awake | Whether the being is awake |
| meeter_being | Pointer to the being doing the meeting |
| met_being | Pointer to the being which was met |
| bc0 | Braincode of the meeter |
| bc1 | Braincode of the met |
| being_index | Social graph index of the being which is the current focus of attention |
fixed number of itterations for internal dialogue
variable number of itterations for chat
clear episodes visited. This array helps to avoid repeatedly visiting the same memories
General sensor
Shift attention to a different actor
store the current focus of attention
Shift attention to a different episode
Shift attention to a different territory
Shift attention to a body region
Shift attention to a similar location
Shift attention to a similar time
Shift attention to a similar date
Shift attention to a similar name
Shift attention to a similar affect
atmosphere pressure
wind magnitude
attention to body
territory name
territory familiarity
territory familiarity
carrying object
shift attention to a given social graph entry based on relationship
store the current focus of attention
shift attention to a different relationship type
store the current relationship attention
If attention has shifted to a new episode
Shift attention to the being in this episode
store the change in attention
set territory attention to the location where the episode occurred
Action
individual or social action
Set location goal
alter friend or foe value
alter attraction
alter familiarity
The values 10 and 20 meetings were just found experimentally
brainprobe frequency
brainprobe address
shout out
volume of message
type of message
intention
brainprobe offset
posture
brainprobe position
alter learned preferences
spread anecdote
not internal dialogue
avoid repeated anecdotes in the same conversation
Definition at line 1152 of file brain.c.
| void braincode_number_of_instructions | ( | noble_simulation * | sim, |
| noble_being * | local_being, | ||
| n_int * | no_of_sensors, | ||
| n_int * | no_of_actuators, | ||
| n_int * | no_of_operators, | ||
| n_int * | no_of_conditionals, | ||
| n_int * | no_of_data | ||
| ) |
| n_byte get_braincode_instruction | ( | noble_being * | local_being | ) |
returns a random braincode instruction of the given type
| instruction_type | Number indicating the type of instruction |
< GENE_BRAINCODE_SENSORS(genetics);
< GENE_BRAINCODE_ACTUATORS(genetics);
< GENE_BRAINCODE_CONDITIONALS(genetics);
< GENE_BRAINCODE_OPERATORS(genetics);
< GENE_BRAINCODE_DATA(genetics);
Definition at line 486 of file brain.c.
| const n_string braincode_mnemonic[BRAINCODE_INSTRUCTIONS] |
| const n_string braincode_spoken_dictionary[BRAINCODE_INSTRUCTIONS] |
1.8.1.1