Noble Ape
The Central Directories of the Noble Ape Simulation.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Enumerations | Functions
universe_internal.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define USE_FIL_VER
#define USE_FIL_LAN
#define USE_FIL_BEI
#define GENERATIONS_BYTES   (sizeof(n_byte)*4)
#define DRIVES_BYTES   (DRIVES)
#define GOALS_BYTES   (sizeof(n_byte2)*3)
#define SOCIAL_BYTES   ((SOCIAL_SIZE*sizeof(noble_social))+(2*4))
#define EPISODIC_BYTES   0
#define BRAINCODE_BYTES   0
#define BRAINCODE_PROBE_BYTES   0
#define TERRITORY_BYTES   0
#define PARA_BYTES   2
#define PARA_ENTRIES   2
#define IMMUNE_BYTES   0
#define GENETICS_BYTES   (sizeof(n_genetics)*CHROMOSOMES)
#define GENETICS_ENTRIES   1
#define PARENT_BYTES   (9+(GENETICS_BYTES*2))
#define INVENTORY_BYTES   (INVENTORY_SIZE*sizeof(n_byte2))
#define INITIAL_BLOCK_BYTES   (40+INVENTORY_BYTES)
#define OFFSET_PARASITES   (INITIAL_BLOCK_BYTES+SHOUT_BYTES)
#define OFFSET_PARENTING   (OFFSET_PARASITES+PARA_BYTES)
#define OFFSET_GENETICS   (OFFSET_PARENTING+14+GENETICS_BYTES+(CHROMOSOMES*4))
#define OFFSET_SOCIAL   (OFFSET_GENETICS+GENETICS_BYTES)
#define OFFSET_EPISODIC   (OFFSET_SOCIAL+SOCIAL_BYTES)
#define OFFSET_TERRITORY   (OFFSET_EPISODIC+EPISODIC_BYTES+DRIVES_BYTES+GOALS_BYTES+PREFERENCES+GENERATIONS_BYTES)
#define OFFSET_IMMUNE   ((OFFSET_GENETICS+GENETICS_BYTES+DRIVES_BYTES+6+PREFERENCES+GENERATIONS_BYTES+8)+TERRITORY_BYTES)
#define OFFSET_VASCULAR   (OFFSET_IMMUNE+IMMUNE_BYTES)
#define OFFSET_METABOLISM   (OFFSET_VASCULAR)
#define OFFSET_BRAINCODE   (OFFSET_METABOLISM)
#define TRACK_BRAIN(loc, lx, ly, lz)   ((loc)[(lx)|((ly)<<5)|((lz)<<10)])

Enumerations

enum  file_section_type {
  FIL_VER = (0x10), FIL_LAN = (0x20), FIL_BEI = (0x30), FIL_SOE = (0x40),
  FIL_EPI = (0x50), FIL_WEA = (0x60), FIL_BRA = (0x70), FIL_END = (0x80)
}

Functions

n_int sketch_input (void *code, n_byte kind, n_int value)
n_int sketch_output (void *vcode, void *vindividual, n_byte *kind, n_int *number)
void sim_end_conditions (void *individual, void *structure, void *data)
void sim_start_conditions (void *individual, void *structure, void *data)
void console_external_watch (void)
n_int console_executing (void)
void file_audit (void)

Macro Definition Documentation

#define BRAINCODE_BYTES   0

Definition at line 69 of file universe_internal.h.

#define BRAINCODE_PROBE_BYTES   0

Definition at line 70 of file universe_internal.h.

#define DRIVES_BYTES   (DRIVES)

Definition at line 54 of file universe_internal.h.

#define EPISODIC_BYTES   0

Definition at line 62 of file universe_internal.h.

#define GENERATIONS_BYTES   (sizeof(n_byte)*4)

Definition at line 53 of file universe_internal.h.

#define GENETICS_BYTES   (sizeof(n_genetics)*CHROMOSOMES)

Definition at line 89 of file universe_internal.h.

#define GENETICS_ENTRIES   1

Definition at line 90 of file universe_internal.h.

#define GOALS_BYTES   (sizeof(n_byte2)*3)

Definition at line 55 of file universe_internal.h.

#define IMMUNE_BYTES   0

Definition at line 85 of file universe_internal.h.

#define INITIAL_BLOCK_BYTES   (40+INVENTORY_BYTES)

Definition at line 97 of file universe_internal.h.

#define INVENTORY_BYTES   (INVENTORY_SIZE*sizeof(n_byte2))

Definition at line 94 of file universe_internal.h.

#define OFFSET_BRAINCODE   (OFFSET_METABOLISM)

Definition at line 110 of file universe_internal.h.

#define OFFSET_EPISODIC   (OFFSET_SOCIAL+SOCIAL_BYTES)

Definition at line 104 of file universe_internal.h.

#define OFFSET_GENETICS   (OFFSET_PARENTING+14+GENETICS_BYTES+(CHROMOSOMES*4))

Definition at line 102 of file universe_internal.h.

Definition at line 106 of file universe_internal.h.

#define OFFSET_METABOLISM   (OFFSET_VASCULAR)

Definition at line 108 of file universe_internal.h.

#define OFFSET_PARASITES   (INITIAL_BLOCK_BYTES+SHOUT_BYTES)

Definition at line 98 of file universe_internal.h.

#define OFFSET_PARENTING   (OFFSET_PARASITES+PARA_BYTES)

Definition at line 100 of file universe_internal.h.

#define OFFSET_SOCIAL   (OFFSET_GENETICS+GENETICS_BYTES)

Definition at line 103 of file universe_internal.h.

Definition at line 105 of file universe_internal.h.

#define OFFSET_VASCULAR   (OFFSET_IMMUNE+IMMUNE_BYTES)

Definition at line 107 of file universe_internal.h.

#define PARA_BYTES   2

Definition at line 79 of file universe_internal.h.

#define PARA_ENTRIES   2

Definition at line 80 of file universe_internal.h.

#define PARENT_BYTES   (9+(GENETICS_BYTES*2))

Definition at line 92 of file universe_internal.h.

#define SOCIAL_BYTES   ((SOCIAL_SIZE*sizeof(noble_social))+(2*4))

Definition at line 57 of file universe_internal.h.

#define TERRITORY_BYTES   0

Definition at line 76 of file universe_internal.h.

#define TRACK_BRAIN (   loc,
  lx,
  ly,
  lz 
)    ((loc)[(lx)|((ly)<<5)|((lz)<<10)])

Definition at line 252 of file universe_internal.h.

#define USE_FIL_BEI

Definition at line 41 of file universe_internal.h.

#define USE_FIL_LAN

Definition at line 40 of file universe_internal.h.

#define USE_FIL_VER

Definition at line 39 of file universe_internal.h.


Enumeration Type Documentation

Enumerator:
FIL_VER 
FIL_LAN 
FIL_BEI 
FIL_SOE 
FIL_EPI 
FIL_WEA 
FIL_BRA 
FIL_END 

Definition at line 112 of file universe_internal.h.


Function Documentation

n_int console_executing ( void  )

Definition at line 69 of file console.c.

void console_external_watch ( void  )

Definition at line 74 of file console.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void file_audit ( void  )

Definition at line 947 of file file.c.

Here is the caller graph for this function:

void sim_end_conditions ( void *  individual,
void *  structure,
void *  data 
)

Definition at line 873 of file file.c.

Here is the call graph for this function:

void sim_start_conditions ( void *  individual,
void *  structure,
void *  data 
)

Definition at line 847 of file file.c.

Here is the call graph for this function:

n_int sketch_input ( void *  code,
n_byte  kind,
n_int  value 
)

Definition at line 250 of file file.c.

Here is the call graph for this function:

Here is the caller graph for this function:

n_int sketch_output ( void *  vcode,
void *  vindividual,
n_byte kind,
n_int number 
)

Definition at line 411 of file file.c.

Here is the call graph for this function:

Here is the caller graph for this function: