New concept sector terrain

A sector type's terrain (struct dchrstr member d_terrain) is the
sector type of its underlying terrain.  Sector types occuring in
d_terrain are terrain types, and must have their own type in
d_terrain.  Players can change sector types only to those with the
same terrain.

The builtin configuration defines terrain types sea, mountain,
wasteland, wilderness and plains.  It gives bridge span and tower
terrain sea, and everything else terrain wilderness.  Hence, the stock
game remains unchanged.

Deities can use terrain to create sector types that can be developed
only in limited ways.
This commit is contained in:
Markus Armbruster 2008-02-13 20:54:08 +01:00
parent 0d48dae06b
commit 3376589007
5 changed files with 54 additions and 47 deletions

View file

@ -103,6 +103,7 @@ enum d_navigation {
struct dchrstr {
unsigned char d_uid;
char d_mnem; /* map symbol */
unsigned char d_terrain; /* terrain sector type */
int d_prd; /* product type */
int d_peffic; /* process efficiency, in percent */
float d_mob0, d_mob1; /* movement cost at 0 and 100% eff */