dgn-shoals.cc File Reference

#include "AppHdr.h"
#include "branch.h"
#include "cio.h"
#include "colour.h"
#include "coord.h"
#include "coordit.h"
#include "dungeon.h"
#include "dgn-shoals.h"
#include "dgn-height.h"
#include "env.h"
#include "fprop.h"
#include "items.h"
#include "itemprop.h"
#include "libutil.h"
#include "mapmark.h"
#include "maps.h"
#include "message.h"
#include "mgen_data.h"
#include "mon-iter.h"
#include "mon-place.h"
#include "mon-util.h"
#include "random.h"
#include "terrain.h"
#include "view.h"
#include <algorithm>
#include <vector>
#include <cmath>

Include dependency graph for dgn-shoals.cc:


Classes

struct  weighted_region
struct  coord_dbl

Typedefs

typedef FixedArray< short, GXM,
GYM > 
grid_short

Enumerations

enum  shoals_height_thresholds {
  SHT_UNDEFINED = -10000, SHT_STONE = 400, SHT_ROCK = 135, SHT_FLOOR = 0,
  SHT_SHALLOW_WATER = -30
}
enum  tide_direction { TIDE_RISING, TIDE_FALLING }

Functions

void dgn_shoals_generate_flora ()
void dgn_build_shoals_level (int level_number)
void shoals_postprocess_level ()
void shoals_apply_tides (int turns_elapsed, bool force, bool incremental_tide)
void shoals_release_tide (monster *mons)

Variables

const char * PROPS_SHOALS_TIDE_KEY = "shoals-tide-height"
const char * PROPS_SHOALS_TIDE_VEL = "shoals-tide-velocity"
const char * PROPS_SHOALS_TIDE_UPDATE_TIME = "shoals-tide-update-time"
const int SHOALS_ISLAND_COLLIDE_DIST2 = 5 * 5
int TIDE_MULTIPLIER = 30
int LOW_TIDE = -18 * TIDE_MULTIPLIER
int HIGH_TIDE = 25 * TIDE_MULTIPLIER
const int HIGH_CALLED_TIDE = 50
const int TIDE_DECEL_MARGIN = 8
const int PEAK_TIDE_VELOCITY = 2
const int CALL_TIDE_VELOCITY = 21
const int TIDE_CALL_RADIUS = 8
const int MAX_SHOAL_PLANTS = 180
const int _shoals_margin = 6

Typedef Documentation

typedef FixedArray<short, GXM, GYM> grid_short


Enumeration Type Documentation

Enumerator:
SHT_UNDEFINED 
SHT_STONE 
SHT_ROCK 
SHT_FLOOR 
SHT_SHALLOW_WATER 

Enumerator:
TIDE_RISING 
TIDE_FALLING 


Function Documentation

void dgn_build_shoals_level ( int  level_number  ) 

Here is the call graph for this function:

void dgn_shoals_generate_flora (  ) 

Here is the call graph for this function:

void shoals_apply_tides ( int  turns_elapsed,
bool  force,
bool  incremental_tide 
)

Here is the call graph for this function:

void shoals_postprocess_level (  ) 

Here is the call graph for this function:

void shoals_release_tide ( monster mons  ) 

Here is the call graph for this function:


Variable Documentation

const int _shoals_margin = 6

const int CALL_TIDE_VELOCITY = 21

const int HIGH_CALLED_TIDE = 50

const int MAX_SHOAL_PLANTS = 180

const int PEAK_TIDE_VELOCITY = 2

const char* PROPS_SHOALS_TIDE_KEY = "shoals-tide-height"

const char* PROPS_SHOALS_TIDE_UPDATE_TIME = "shoals-tide-update-time"

const char* PROPS_SHOALS_TIDE_VEL = "shoals-tide-velocity"

const int SHOALS_ISLAND_COLLIDE_DIST2 = 5 * 5

const int TIDE_CALL_RADIUS = 8

const int TIDE_DECEL_MARGIN = 8

int TIDE_MULTIPLIER = 30


Generated on Thu Jan 13 13:04:23 2011 by  doxygen 1.5.6