Noble Ape
The Central Directories of the Noble Ape Simulation.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Enumerations | Functions | Variables
gui.h File Reference
#include "../noble/noble.h"
#include "../universe/universe.h"
#include "../entity/entity.h"
Include dependency graph for gui.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TERRAINWINDOW(alpha)   (alpha)
#define VIEWWINDOW(alpha)   (alpha + TERRAIN_WINDOW_AREA)
#define GRAPHWINDOW(alpha)   (alpha + (MAP_AREA + TERRAIN_WINDOW_AREA))
#define IS_WINDOW_KIND(x, y)   (((x)>>(y))&1)
#define NON_INTERPOLATED   COLOUR_GREY
#define spot_colour(alpha, spx, spy, col)   alpha[((spx)|((spy)<<8))]=(col)
#define ICONOFFSET   27

Enumerations

enum  colour_type { COLOUR_GREY = (252), COLOUR_YELLOW = (253), COLOUR_RED_DARK = (254), COLOUR_RED = (255) }
enum  {
  NA_MENU_PAUSE = 0, NA_MENU_WEATHER, NA_MENU_BRAIN, NA_MENU_BRAINCODE,
  NA_MENU_TIDEDAYLIGHT, NA_MENU_TERRITORY, NA_MENU_PREVIOUS_APE, NA_MENU_NEXT_APE,
  NA_MENU_CLEAR_ERRORS, NA_MENU_FLOOD, NA_MENU_HEALTHY_CARRIER
}

Functions

void graph_honor_distribution (noble_simulation *sim, n_byte update_type, n_byte *buffer, n_int img_width, n_int img_height)
void graph_ideosphere (noble_simulation *sim, n_byte *buffer, n_int img_width, n_int img_height)
void graph_genepool (noble_simulation *sim, n_byte *buffer, n_int img_width, n_int img_height)
void graph_relationship_matrix (noble_simulation *sim, n_byte *buffer, n_int img_width, n_int img_height)
void graph_pathogens (noble_simulation *sim, n_byte update_type, n_byte *buffer, n_int img_width, n_int img_height)
void graph_age_demographic (noble_simulation *sim, n_byte *buffer, n_int img_width, n_int img_height)
void graph_heights (noble_simulation *sim, n_byte *buffer, n_int img_width, n_int img_height)
void graph_phasespace (noble_simulation *sim, n_byte update_type, n_byte *buffer, n_int img_width, n_int img_height, n_byte graph_type, n_byte data_type)
void graph_braincode (noble_simulation *sim, noble_being *local_being, n_byte *buffer, n_int img_width, n_int img_height, n_byte clear)
void graph_preferences (noble_simulation *sim, n_byte update_type, n_byte *buffer, n_int img_width, n_int img_height)
void graph_vascular (noble_being *being, n_byte *buffer, n_int img_width, n_int img_height, n_int tx, n_int ty, n_int bx, n_int by, n_byte thickness, n_byte clear, n_int shoulder_angle, n_int elbow_angle, n_int wrist_angle, n_int hip_angle, n_int knee_angle, n_byte show_skeleton_keypoints)
void graph_socialsim (noble_simulation *sim, n_byte update_type, n_byte *buffer, n_int img_width, n_int img_height)
void graph_meet_places (noble_simulation *sim, n_byte update_type, n_byte *buffer, n_int img_width, n_int img_height)
n_int draw_toggle_weather (void)
n_int draw_toggle_brain (void)
n_int draw_toggle_braincode (void)
n_int draw_toggle_territory (void)
n_int draw_toggle_tide_daylight (void)
void draw_fit (n_byte *points, n_byte2 *color_fit)
void draw_terrain_coord (n_int *co_x, n_int *co_y)
void draw_color_time (n_byte2 *color_fit, n_byte2 time)
void draw_undraw_clear (void)
n_bytedraw_pointer (n_byte which_one)
n_bytedraw_color_fit ()
void draw_about (n_constant_string platform)
void draw_string (n_constant_string str, n_int off_x, n_int off_y, n_join *draw)
void draw_window (n_int dim_x, n_int dim_y)
n_int draw_cycle (void)
n_bytedraw_offscreen (n_byte *value)

Variables

n_byte land_points []

Macro Definition Documentation

#define GRAPHWINDOW (   alpha)    (alpha + (MAP_AREA + TERRAIN_WINDOW_AREA))

Definition at line 59 of file gui.h.

#define ICONOFFSET   27

Definition at line 94 of file gui.h.

#define IS_WINDOW_KIND (   x,
 
)    (((x)>>(y))&1)

Definition at line 62 of file gui.h.

#define NON_INTERPOLATED   COLOUR_GREY

Definition at line 87 of file gui.h.

#define spot_colour (   alpha,
  spx,
  spy,
  col 
)    alpha[((spx)|((spy)<<8))]=(col)

Definition at line 89 of file gui.h.

#define TERRAINWINDOW (   alpha)    (alpha)

Definition at line 55 of file gui.h.

#define VIEWWINDOW (   alpha)    (alpha + TERRAIN_WINDOW_AREA)

Definition at line 56 of file gui.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
NA_MENU_PAUSE 
NA_MENU_WEATHER 
NA_MENU_BRAIN 
NA_MENU_BRAINCODE 
NA_MENU_TIDEDAYLIGHT 
NA_MENU_TERRITORY 
NA_MENU_PREVIOUS_APE 
NA_MENU_NEXT_APE 
NA_MENU_CLEAR_ERRORS 
NA_MENU_FLOOD 
NA_MENU_HEALTHY_CARRIER 

Definition at line 72 of file gui.h.

Enumerator:
COLOUR_GREY 
COLOUR_YELLOW 
COLOUR_RED_DARK 
COLOUR_RED 

Definition at line 64 of file gui.h.


Function Documentation

void draw_about ( n_constant_string  platform)

Definition at line 367 of file draw.c.

Here is the call graph for this function:

Here is the caller graph for this function:

n_byte* draw_color_fit ( )
void draw_color_time ( n_byte2 color_fit,
n_byte2  time 
)

Definition at line 613 of file draw.c.

Here is the call graph for this function:

Here is the caller graph for this function:

n_int draw_cycle ( void  )

Definition at line 1710 of file draw.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_fit ( n_byte points,
n_byte2 color_fit 
)

Definition at line 543 of file draw.c.

Here is the call graph for this function:

Here is the caller graph for this function:

n_byte* draw_offscreen ( n_byte value)

Definition at line 217 of file draw.c.

n_byte* draw_pointer ( n_byte  which_one)

Definition at line 287 of file draw.c.

Here is the caller graph for this function:

void draw_string ( n_constant_string  str,
n_int  off_x,
n_int  off_y,
n_join draw 
)

Definition at line 509 of file draw.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void draw_terrain_coord ( n_int co_x,
n_int co_y 
)

Definition at line 1697 of file draw.c.

n_int draw_toggle_brain ( void  )

Definition at line 165 of file draw.c.

Here is the caller graph for this function:

n_int draw_toggle_braincode ( void  )

Definition at line 171 of file draw.c.

Here is the caller graph for this function:

n_int draw_toggle_territory ( void  )

Definition at line 177 of file draw.c.

Here is the caller graph for this function:

n_int draw_toggle_tide_daylight ( void  )

Definition at line 183 of file draw.c.

Here is the caller graph for this function:

n_int draw_toggle_weather ( void  )

Definition at line 159 of file draw.c.

Here is the caller graph for this function:

void draw_undraw_clear ( void  )

Definition at line 197 of file draw.c.

void draw_window ( n_int  dim_x,
n_int  dim_y 
)

Definition at line 1704 of file draw.c.

Here is the caller graph for this function:

void graph_age_demographic ( noble_simulation sim,
n_byte buffer,
n_int  img_width,
n_int  img_height 
)
void graph_braincode ( noble_simulation sim,
noble_being local_being,
n_byte buffer,
n_int  img_width,
n_int  img_height,
n_byte  clear 
)
void graph_genepool ( noble_simulation sim,
n_byte buffer,
n_int  img_width,
n_int  img_height 
)
void graph_heights ( noble_simulation sim,
n_byte buffer,
n_int  img_width,
n_int  img_height 
)
void graph_honor_distribution ( noble_simulation sim,
n_byte  update_type,
n_byte buffer,
n_int  img_width,
n_int  img_height 
)
void graph_ideosphere ( noble_simulation sim,
n_byte buffer,
n_int  img_width,
n_int  img_height 
)
void graph_meet_places ( noble_simulation sim,
n_byte  update_type,
n_byte buffer,
n_int  img_width,
n_int  img_height 
)
void graph_pathogens ( noble_simulation sim,
n_byte  update_type,
n_byte buffer,
n_int  img_width,
n_int  img_height 
)
void graph_phasespace ( noble_simulation sim,
n_byte  update_type,
n_byte buffer,
n_int  img_width,
n_int  img_height,
n_byte  graph_type,
n_byte  data_type 
)
void graph_preferences ( noble_simulation sim,
n_byte  update_type,
n_byte buffer,
n_int  img_width,
n_int  img_height 
)
void graph_relationship_matrix ( noble_simulation sim,
n_byte buffer,
n_int  img_width,
n_int  img_height 
)
void graph_socialsim ( noble_simulation sim,
n_byte  update_type,
n_byte buffer,
n_int  img_width,
n_int  img_height 
)
void graph_vascular ( noble_being being,
n_byte buffer,
n_int  img_width,
n_int  img_height,
n_int  tx,
n_int  ty,
n_int  bx,
n_int  by,
n_byte  thickness,
n_byte  clear,
n_int  shoulder_angle,
n_int  elbow_angle,
n_int  wrist_angle,
n_int  hip_angle,
n_int  knee_angle,
n_byte  show_skeleton_keypoints 
)

Variable Documentation

n_byte land_points[]

Definition at line 531 of file draw.c.