config: Add sect-chr flags, replace cost by flag "deity"

Give sector types capability flags (dchrstr member d_flags), like
ship, plane, land unit and nuke types have.

Member d_cost is effectively a flag since the previous commit.
Replace it by capability flag "deity".  This is an xdump compatibility
break.  To provide the customary grace period, we'd have make selector
cost virtual instead, and deprecate it.  But we're not bothering with
maintaining xdump compatibility in this release.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2016-06-05 19:22:45 +02:00
parent ba2795fbf7
commit 16bf0d28b2
12 changed files with 240 additions and 187 deletions

View file

@ -27,7 +27,7 @@
* symbol.c: Empire symbol tables
*
* Known contributors to this file:
* Markus Armbruster, 2006-2015
* Markus Armbruster, 2006-2016
*/
#include <config.h>
@ -243,6 +243,11 @@ struct symbol retreat_flags[] = {
{0, NULL}
};
struct symbol sect_chr_flags[] = {
{D_DEITY, "deity"},
{0, NULL}
};
struct symbol sector_navigation[] = {
{NAV_NONE, "land"},
{NAVOK, "sea"},