forked from github/server
forward-declare struct gamedata
This commit is contained in:
parent
8a9d617aa3
commit
d48d9a25e0
|
@ -26,6 +26,8 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
struct gamedata;
|
||||||
|
|
||||||
/* maintenance::flags */
|
/* maintenance::flags */
|
||||||
#define MTF_NONE 0x00
|
#define MTF_NONE 0x00
|
||||||
#define MTF_VARIABLE 0x01 /* resource usage scales with size */
|
#define MTF_VARIABLE 0x01 /* resource usage scales with size */
|
||||||
|
|
|
@ -30,6 +30,7 @@ extern "C" {
|
||||||
struct item;
|
struct item;
|
||||||
struct seen_region;
|
struct seen_region;
|
||||||
struct attrib_type;
|
struct attrib_type;
|
||||||
|
struct gamedata;
|
||||||
|
|
||||||
extern struct attrib_type at_maxmagicians;
|
extern struct attrib_type at_maxmagicians;
|
||||||
/* SMART_INTERVALS: define to speed up finding the interval of regions that a
|
/* SMART_INTERVALS: define to speed up finding the interval of regions that a
|
||||||
|
|
|
@ -18,9 +18,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
#ifndef H_KRNL_REGION
|
#ifndef H_KRNL_REGION
|
||||||
#define H_KRNL_REGION
|
#define H_KRNL_REGION
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
@ -67,6 +64,7 @@ extern "C" {
|
||||||
struct rawmaterial;
|
struct rawmaterial;
|
||||||
struct item;
|
struct item;
|
||||||
struct faction;
|
struct faction;
|
||||||
|
struct gamedata;
|
||||||
|
|
||||||
#define MORALE_TAX_FACTOR 0.005 /* 0.5% tax per point of morale */
|
#define MORALE_TAX_FACTOR 0.005 /* 0.5% tax per point of morale */
|
||||||
#define MORALE_MAX 10 /* Maximum morale allowed */
|
#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_AVERAGE 6 /* default average time for morale to change */
|
||||||
#define MORALE_TRANSFER 2 /* points of morale lost when GIVE COMMAND */
|
#define MORALE_TRANSFER 2 /* points of morale lost when GIVE COMMAND */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
typedef struct region_owner {
|
typedef struct region_owner {
|
||||||
struct faction *owner;
|
struct faction *owner;
|
||||||
struct faction *last_owner;
|
struct faction *last_owner;
|
||||||
|
|
|
@ -30,7 +30,7 @@ extern "C" {
|
||||||
struct skill;
|
struct skill;
|
||||||
struct item;
|
struct item;
|
||||||
struct sc_mage;
|
struct sc_mage;
|
||||||
|
struct gamedata;
|
||||||
#define UFL_DEAD (1<<0)
|
#define UFL_DEAD (1<<0)
|
||||||
#define UFL_ISNEW (1<<1) /* 2 */
|
#define UFL_ISNEW (1<<1) /* 2 */
|
||||||
#define UFL_LONGACTION (1<<2) /* 4 */
|
#define UFL_LONGACTION (1<<2) /* 4 */
|
||||||
|
|
|
@ -21,6 +21,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
#include "variant.h"
|
#include "variant.h"
|
||||||
struct storage;
|
struct storage;
|
||||||
|
struct gamedata;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
Loading…
Reference in New Issue