forward-declare struct gamedata

This commit is contained in:
Enno Rehling 2016-02-13 20:43:40 +01:00
parent 8a9d617aa3
commit d48d9a25e0
5 changed files with 12 additions and 5 deletions

View File

@ -26,6 +26,8 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
extern "C" {
#endif
struct gamedata;
/* maintenance::flags */
#define MTF_NONE 0x00
#define MTF_VARIABLE 0x01 /* resource usage scales with size */

View File

@ -30,6 +30,7 @@ extern "C" {
struct item;
struct seen_region;
struct attrib_type;
struct gamedata;
extern struct attrib_type at_maxmagicians;
/* SMART_INTERVALS: define to speed up finding the interval of regions that a

View File

@ -18,9 +18,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#ifndef H_KRNL_REGION
#define H_KRNL_REGION
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
#include "types.h"
@ -67,6 +64,7 @@ extern "C" {
struct rawmaterial;
struct item;
struct faction;
struct gamedata;
#define MORALE_TAX_FACTOR 0.005 /* 0.5% tax per point of morale */
#define MORALE_MAX 10 /* Maximum morale allowed */
@ -76,6 +74,11 @@ extern "C" {
#define MORALE_AVERAGE 6 /* default average time for morale to change */
#define MORALE_TRANSFER 2 /* points of morale lost when GIVE COMMAND */
#ifdef __cplusplus
extern "C" {
#endif
typedef struct region_owner {
struct faction *owner;
struct faction *last_owner;

View File

@ -30,7 +30,7 @@ extern "C" {
struct skill;
struct item;
struct sc_mage;
struct gamedata;
#define UFL_DEAD (1<<0)
#define UFL_ISNEW (1<<1) /* 2 */
#define UFL_LONGACTION (1<<2) /* 4 */

View File

@ -21,6 +21,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "variant.h"
struct storage;
struct gamedata;
#ifdef __cplusplus
extern "C" {