Noble Ape
The Central Directories of the Noble Ape Simulation.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
land.c File Reference
#include "../noble/noble.h"
Include dependency graph for land.c:

Go to the source code of this file.

Macros

#define OPERATOR_AREA(fg, dfg, fdg)   ((((dfg) * (dfg)) + ((fdg) * (fdg))) >> 6)
#define OPERATOR_HEIGHT(fg, dfg, fdg)   (((WATER_MAP + fg) * (WATER_MAP + fg)) >> 8 )
#define OPERATOR_WATER(fg, dfg, fdg)   (((WATER_MAP - fg) * (WATER_MAP - fg)) >> 8 )
#define OPERATOR_SUN(fg, dfg, fdg, ct, st)   (((((ct) * (fg)) + ((st) * (dfg))) >> 4) + WATER_MAP)
#define OPERATOR_SALT(fg, dfg, fdg, fs)   (((fs*fs)+(dfg*fdg))>>4)
#define WATER_MAP2   (WATER_MAP * 2)

Functions

void weather_cycle (n_land *local_land)
void weather_init (n_land *local_land)
n_int weather_pressure (n_land *land, n_int px, n_int py)
void weather_wind_vector (n_land *local_land, n_vect2 *pos, n_vect2 *wind)
weather_values weather_seven_values (n_land *local_land, n_int px, n_int py)
n_int land_map_dimension (n_land *land)
n_int land_map_bits (n_land *land)
n_int land_location (n_land *land, n_int px, n_int py)
void land_tide (n_land *local_land)
void land_cycle (n_land *local_land)
n_int land_operator_interpolated (n_land *local_land, n_int locx, n_int locy, n_byte *kind)
void land_clear (n_land *local, KIND_OF_USE kind, n_byte4 start)
void land_init (n_land *local_land, n_byte *scratch, n_byte double_spread)
void land_vect2 (n_vect2 *output, n_int *actual_z, n_land *local, n_vect2 *location)
n_int spacetime_after (n_spacetime *initial, n_spacetime *second)
n_int spacetime_before_now (n_spacetime *initial, n_land *now)
void spacetime_copy (n_spacetime *to, n_spacetime *from)
void spacetime_set (n_spacetime *set, n_land *local, n_byte2 *location)

Macro Definition Documentation

#define OPERATOR_AREA (   fg,
  dfg,
  fdg 
)    ((((dfg) * (dfg)) + ((fdg) * (fdg))) >> 6)

Definition at line 391 of file land.c.

#define OPERATOR_HEIGHT (   fg,
  dfg,
  fdg 
)    (((WATER_MAP + fg) * (WATER_MAP + fg)) >> 8 )

Definition at line 392 of file land.c.

#define OPERATOR_SALT (   fg,
  dfg,
  fdg,
  fs 
)    (((fs*fs)+(dfg*fdg))>>4)

Definition at line 395 of file land.c.

#define OPERATOR_SUN (   fg,
  dfg,
  fdg,
  ct,
  st 
)    (((((ct) * (fg)) + ((st) * (dfg))) >> 4) + WATER_MAP)

Definition at line 394 of file land.c.

#define OPERATOR_WATER (   fg,
  dfg,
  fdg 
)    (((WATER_MAP - fg) * (WATER_MAP - fg)) >> 8 )

Definition at line 393 of file land.c.

#define WATER_MAP2   (WATER_MAP * 2)

Definition at line 397 of file land.c.


Function Documentation

void land_clear ( n_land local,
KIND_OF_USE  kind,
n_byte4  start 
)

Definition at line 525 of file land.c.

Here is the caller graph for this function:

void land_cycle ( n_land local_land)

Definition at line 374 of file land.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void land_init ( n_land local_land,
n_byte scratch,
n_byte  double_spread 
)

Definition at line 549 of file land.c.

Here is the call graph for this function:

Here is the caller graph for this function:

n_int land_location ( n_land land,
n_int  px,
n_int  py 
)

Definition at line 345 of file land.c.

Here is the call graph for this function:

Here is the caller graph for this function:

n_int land_map_bits ( n_land land)

Definition at line 339 of file land.c.

Here is the caller graph for this function:

n_int land_map_dimension ( n_land land)

Definition at line 333 of file land.c.

Here is the caller graph for this function:

n_int land_operator_interpolated ( n_land local_land,
n_int  locx,
n_int  locy,
n_byte kind 
)

Definition at line 501 of file land.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void land_tide ( n_land local_land)

Definition at line 350 of file land.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void land_vect2 ( n_vect2 output,
n_int actual_z,
n_land local,
n_vect2 location 
)

Definition at line 595 of file land.c.

Here is the call graph for this function:

Here is the caller graph for this function:

n_int spacetime_after ( n_spacetime initial,
n_spacetime second 
)

Definition at line 622 of file land.c.

Here is the caller graph for this function:

n_int spacetime_before_now ( n_spacetime initial,
n_land now 
)

Definition at line 639 of file land.c.

Here is the caller graph for this function:

void spacetime_copy ( n_spacetime to,
n_spacetime from 
)

Definition at line 656 of file land.c.

Here is the caller graph for this function:

void spacetime_set ( n_spacetime set,
n_land local,
n_byte2 location 
)

Definition at line 665 of file land.c.

void weather_cycle ( n_land local_land)

Definition at line 138 of file land.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void weather_init ( n_land local_land)

Definition at line 188 of file land.c.

Here is the call graph for this function:

Here is the caller graph for this function:

n_int weather_pressure ( n_land land,
n_int  px,
n_int  py 
)

Definition at line 264 of file land.c.

Here is the call graph for this function:

Here is the caller graph for this function:

weather_values weather_seven_values ( n_land local_land,
n_int  px,
n_int  py 
)

Definition at line 289 of file land.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void weather_wind_vector ( n_land local_land,
n_vect2 pos,
n_vect2 wind 
)

Definition at line 274 of file land.c.

Here is the call graph for this function:

Here is the caller graph for this function: