forked from github/server
move GUARD_* flags to guard.h
This commit is contained in:
parent
1116afed2b
commit
a5e63a2472
|
@ -46,9 +46,9 @@ if [ "$HAVE_TOLUA" = "0" ] || [ -z $path ] ; then
|
||||||
echo "tolua is not installed, building from source"
|
echo "tolua is not installed, building from source"
|
||||||
cd $ROOT
|
cd $ROOT
|
||||||
if [ ! -d tolua ]; then
|
if [ ! -d tolua ]; then
|
||||||
LUA_VERSION="5.1"
|
LUA_VERSION="5.2"
|
||||||
if [ -d /usr/include/lua5.2 ] || [ -d /usr/local/include/lua5.2 ]; then
|
if [ -d /usr/include/lua5.1 ] || [ -d /usr/local/include/lua5.1 ]; then
|
||||||
LUA_VERSION="5.2"
|
LUA_VERSION="5.1"
|
||||||
fi
|
fi
|
||||||
echo "fetching tolua ${LUA_VERSION} from github..."
|
echo "fetching tolua ${LUA_VERSION} from github..."
|
||||||
git clone https://github.com/ennorehling/tolua-${LUA_VERSION}.git tolua
|
git clone https://github.com/ennorehling/tolua-${LUA_VERSION}.git tolua
|
||||||
|
|
19
src/guard.h
19
src/guard.h
|
@ -11,6 +11,25 @@ extern "C" {
|
||||||
|
|
||||||
typedef enum { E_GUARD_OK, E_GUARD_UNARMED, E_GUARD_NEWBIE, E_GUARD_FLEEING } guard_t;
|
typedef enum { E_GUARD_OK, E_GUARD_UNARMED, E_GUARD_NEWBIE, E_GUARD_FLEEING } guard_t;
|
||||||
|
|
||||||
|
#define GUARD_NONE 0
|
||||||
|
#define GUARD_TAX 1
|
||||||
|
/* Verhindert Steuereintreiben */
|
||||||
|
#define GUARD_MINING 2
|
||||||
|
/* Verhindert Bergbau */
|
||||||
|
#define GUARD_TREES 4
|
||||||
|
/* Verhindert Waldarbeiten */
|
||||||
|
#define GUARD_TRAVELTHRU 8
|
||||||
|
/* Blockiert Durchreisende */
|
||||||
|
#define GUARD_LANDING 16
|
||||||
|
/* Verhindert Ausstieg + Weiterreise */
|
||||||
|
#define GUARD_CREWS 32
|
||||||
|
/* Verhindert Unterhaltung auf Schiffen */
|
||||||
|
#define GUARD_RECRUIT 64
|
||||||
|
/* Verhindert Rekrutieren */
|
||||||
|
#define GUARD_PRODUCE 128
|
||||||
|
/* Verhindert Abbau von Resourcen mit RTF_LIMITED */
|
||||||
|
#define GUARD_ALL 0xFFFF
|
||||||
|
|
||||||
extern struct attrib_type at_guard;
|
extern struct attrib_type at_guard;
|
||||||
|
|
||||||
guard_t can_start_guarding(const struct unit * u);
|
guard_t can_start_guarding(const struct unit * u);
|
||||||
|
|
|
@ -114,25 +114,6 @@ struct param;
|
||||||
#define GF_PURE 64
|
#define GF_PURE 64
|
||||||
/* untranslated */
|
/* untranslated */
|
||||||
|
|
||||||
#define GUARD_NONE 0
|
|
||||||
#define GUARD_TAX 1
|
|
||||||
/* Verhindert Steuereintreiben */
|
|
||||||
#define GUARD_MINING 2
|
|
||||||
/* Verhindert Bergbau */
|
|
||||||
#define GUARD_TREES 4
|
|
||||||
/* Verhindert Waldarbeiten */
|
|
||||||
#define GUARD_TRAVELTHRU 8
|
|
||||||
/* Blockiert Durchreisende */
|
|
||||||
#define GUARD_LANDING 16
|
|
||||||
/* Verhindert Ausstieg + Weiterreise */
|
|
||||||
#define GUARD_CREWS 32
|
|
||||||
/* Verhindert Unterhaltung auf Schiffen */
|
|
||||||
#define GUARD_RECRUIT 64
|
|
||||||
/* Verhindert Rekrutieren */
|
|
||||||
#define GUARD_PRODUCE 128
|
|
||||||
/* Verhindert Abbau von Resourcen mit RTF_LIMITED */
|
|
||||||
#define GUARD_ALL 0xFFFF
|
|
||||||
|
|
||||||
int maxworkingpeasants(const struct region *r);
|
int maxworkingpeasants(const struct region *r);
|
||||||
bool markets_module(void);
|
bool markets_module(void);
|
||||||
int wage(const struct region *r, const struct faction *f,
|
int wage(const struct region *r, const struct faction *f,
|
||||||
|
|
|
@ -15,6 +15,7 @@ without prior permission by the authors of Eressea.
|
||||||
#include "xmlreader.h"
|
#include "xmlreader.h"
|
||||||
|
|
||||||
#include "building.h"
|
#include "building.h"
|
||||||
|
#include "guard.h"
|
||||||
#include "equipment.h"
|
#include "equipment.h"
|
||||||
#include "item.h"
|
#include "item.h"
|
||||||
#include "keyword.h"
|
#include "keyword.h"
|
||||||
|
|
Loading…
Reference in New Issue