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) |
| #define OPERATOR_SALT |
( |
|
fg, |
|
|
|
dfg, |
|
|
|
fdg, |
|
|
|
fs |
|
) |
| (((fs*fs)+(dfg*fdg))>>4) |
| #define OPERATOR_SUN |
( |
|
fg, |
|
|
|
dfg, |
|
|
|
fdg, |
|
|
|
ct, |
|
|
|
st |
|
) |
| (((((ct) * (fg)) + ((st) * (dfg))) >> 4) + WATER_MAP) |
Function Documentation
| void land_cycle |
( |
n_land * |
local_land | ) |
|
| void land_tide |
( |
n_land * |
local_land | ) |
|
| void weather_cycle |
( |
n_land * |
local_land | ) |
|
| void weather_init |
( |
n_land * |
local_land | ) |
|