#include "env.h"
#include "fixedarray.h"
#include <vector>
Go to the source code of this file.
Classes | |
struct | dgn_island_plan |
Typedefs | |
typedef FixedArray< bool, GXM, GYM > | grid_bool |
typedef FixedArray< short, GXM, GYM > | grid_short |
typedef std::pair< int, int > | int_range |
Functions | |
int | resolve_range (int_range range, int nrolls=1) |
void | dgn_initialise_heightmap (int initial_height=0) |
void | dgn_smooth_height_at (coord_def c, int radius=1, int max_height=DGN_UNDEFINED_HEIGHT) |
void | dgn_smooth_heights (int radius=1, int npasses=1) |
void | dgn_island_centred_at (const coord_def &c, int n_points, int radius, int_range height_delta_range, int border_margin=6, bool make_atoll=false) |
Variables | |
const int | DGN_UNDEFINED_HEIGHT = -10000 |
typedef FixedArray<bool, GXM, GYM> grid_bool |
typedef FixedArray<short, GXM, GYM> grid_short |
typedef std::pair<int, int> int_range |
void dgn_initialise_heightmap | ( | int | initial_height = 0 |
) |
void dgn_island_centred_at | ( | const coord_def & | c, | |
int | n_points, | |||
int | radius, | |||
int_range | height_delta_range, | |||
int | border_margin = 6 , |
|||
bool | make_atoll = false | |||
) |
void dgn_smooth_height_at | ( | coord_def | c, | |
int | radius = 1 , |
|||
int | max_height = DGN_UNDEFINED_HEIGHT | |||
) |
void dgn_smooth_heights | ( | int | radius = 1 , |
|
int | npasses = 1 | |||
) |
int resolve_range | ( | int_range | range, | |
int | nrolls = 1 | |||
) |
const int DGN_UNDEFINED_HEIGHT = -10000 |