Noble Ape
The Central Directories of the Noble Ape Simulation.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
sim.c File Reference
#include <stdio.h>
#include "../entity/entity.h"
#include "universe_internal.h"
#include <pthread.h>
Include dependency graph for sim.c:

Go to the source code of this file.

Macros

#define CONSOLE_REQUIRED
#define CONSOLE_ONLY
#define MIN_BEINGS   4
#define MINIMAL_ALLOCATION   (sizeof(n_land)+(MAP_AREA)+(2*HI_RES_MAP_AREA)+(HI_RES_MAP_AREA/8)+(512*512)+(TERRAIN_WINDOW_AREA)+(sizeof(noble_being) * MIN_BEINGS)+1+(sizeof(noble_simulation)))
#define MAXIMUM_ALLOCATION   (MINIMAL_ALLOCATION + (sizeof(noble_being) * 200))

Functions

n_int sim_new (void)
n_int sim_thread_console_quit (void)
void sim_thread_console (void)
noble_simulationsim_sim (void)
void sim_realtime (n_uint time)
n_int file_interpret (n_file *input_file)
void sim_cycle (void)
void * sim_init (KIND_OF_USE kind, n_uint randomise, n_uint offscreen_size, n_uint landbuffer_size)
void sim_close (void)
void sim_set_select (noble_being *select)
void sim_flood (void)
void sim_healthy_carrier (void)

Variables

n_byteoffbuffer = 0L

Macro Definition Documentation

#define CONSOLE_ONLY

Definition at line 37 of file sim.c.

#define CONSOLE_REQUIRED

Definition at line 36 of file sim.c.

#define MAXIMUM_ALLOCATION   (MINIMAL_ALLOCATION + (sizeof(noble_being) * 200))

Definition at line 473 of file sim.c.

#define MIN_BEINGS   4

Definition at line 215 of file sim.c.

#define MINIMAL_ALLOCATION   (sizeof(n_land)+(MAP_AREA)+(2*HI_RES_MAP_AREA)+(HI_RES_MAP_AREA/8)+(512*512)+(TERRAIN_WINDOW_AREA)+(sizeof(noble_being) * MIN_BEINGS)+1+(sizeof(noble_simulation)))

Definition at line 471 of file sim.c.


Function Documentation

n_int file_interpret ( n_file input_file)

Definition at line 301 of file sim.c.

Here is the call graph for this function:

void sim_close ( void  )

Definition at line 599 of file sim.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void sim_cycle ( void  )

Listen for any shouts

Definition at line 408 of file sim.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void sim_flood ( void  )

Definition at line 630 of file sim.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void sim_healthy_carrier ( void  )

Definition at line 635 of file sim.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* sim_init ( KIND_OF_USE  kind,
n_uint  randomise,
n_uint  offscreen_size,
n_uint  landbuffer_size 
)

Definition at line 510 of file sim.c.

Here is the call graph for this function:

Here is the caller graph for this function:

n_int sim_new ( void  )

Definition at line 223 of file sim.c.

Here is the caller graph for this function:

void sim_realtime ( n_uint  time)

Definition at line 296 of file sim.c.

Here is the caller graph for this function:

void sim_set_select ( noble_being select)

Definition at line 612 of file sim.c.

Here is the call graph for this function:

Here is the caller graph for this function:

noble_simulation* sim_sim ( void  )

Definition at line 291 of file sim.c.

Here is the caller graph for this function:

void sim_thread_console ( void  )

Definition at line 266 of file sim.c.

Here is the call graph for this function:

Here is the caller graph for this function:

n_int sim_thread_console_quit ( void  )

Definition at line 234 of file sim.c.

Here is the caller graph for this function:


Variable Documentation

n_byte* offbuffer = 0L

Definition at line 212 of file sim.c.