2010-08-08 10:06:34 +02:00
|
|
|
|
/*
|
2015-01-30 22:10:29 +01:00
|
|
|
|
Copyright (c) 1998-2015, Enno Rehling <enno@eressea.de>
|
2010-08-08 10:06:34 +02:00
|
|
|
|
Katja Zedel <katze@felidae.kn-bremen.de
|
|
|
|
|
Christian Schlittchen <corwin@amber.kn-bremen.de>
|
|
|
|
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
|
purpose with or without fee is hereby granted, provided that the above
|
|
|
|
|
copyright notice and this permission notice appear in all copies.
|
|
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
|
|
#ifndef ERESSEA_TYPES_H
|
|
|
|
|
#define ERESSEA_TYPES_H
|
|
|
|
|
|
|
|
|
|
#include <settings.h>
|
|
|
|
|
|
|
|
|
|
struct attrib;
|
|
|
|
|
struct attrib_type;
|
2012-06-30 20:07:28 +02:00
|
|
|
|
struct ally;
|
2010-08-08 10:06:34 +02:00
|
|
|
|
struct building;
|
|
|
|
|
struct building_type;
|
|
|
|
|
struct curse;
|
2012-06-03 21:51:35 +02:00
|
|
|
|
struct curse_type;
|
2012-06-05 06:43:28 +02:00
|
|
|
|
struct castorder;
|
2010-08-08 10:06:34 +02:00
|
|
|
|
struct equipment;
|
|
|
|
|
struct faction;
|
|
|
|
|
struct fighter;
|
|
|
|
|
struct item;
|
|
|
|
|
struct item_type;
|
|
|
|
|
struct locale;
|
|
|
|
|
struct luxury_type;
|
|
|
|
|
struct order;
|
|
|
|
|
struct plane;
|
|
|
|
|
struct potion_type;
|
2017-01-26 17:41:21 +01:00
|
|
|
|
struct selist;
|
2010-08-08 10:06:34 +02:00
|
|
|
|
struct race;
|
|
|
|
|
struct region;
|
|
|
|
|
struct region_list;
|
|
|
|
|
struct resource_type;
|
|
|
|
|
struct ship;
|
|
|
|
|
struct ship_type;
|
|
|
|
|
struct skill;
|
|
|
|
|
struct spell;
|
2012-05-31 04:17:08 +02:00
|
|
|
|
struct spellbook;
|
2010-08-08 10:06:34 +02:00
|
|
|
|
struct storage;
|
|
|
|
|
struct strlist;
|
|
|
|
|
struct terrain_type;
|
|
|
|
|
struct unit;
|
|
|
|
|
struct weapon_type;
|
|
|
|
|
|
2016-09-12 22:03:16 +02:00
|
|
|
|
/* seen_mode: visibility in the report */
|
|
|
|
|
typedef enum {
|
|
|
|
|
seen_none,
|
|
|
|
|
seen_neighbour,
|
|
|
|
|
seen_lighthouse,
|
|
|
|
|
seen_travel,
|
|
|
|
|
seen_unit,
|
2016-09-25 13:01:51 +02:00
|
|
|
|
seen_spell,
|
2016-09-12 22:03:16 +02:00
|
|
|
|
seen_battle
|
|
|
|
|
} seen_mode;
|
|
|
|
|
|
2010-08-08 10:06:34 +02:00
|
|
|
|
/* ------------------ Status von Einheiten --------------------- */
|
|
|
|
|
|
2018-02-15 20:25:58 +01:00
|
|
|
|
typedef enum {
|
2010-08-08 10:06:34 +02:00
|
|
|
|
ST_AGGRO,
|
|
|
|
|
ST_FIGHT,
|
|
|
|
|
ST_BEHIND,
|
|
|
|
|
ST_CHICKEN,
|
|
|
|
|
ST_AVOID,
|
|
|
|
|
ST_FLEE
|
2018-02-15 20:25:58 +01:00
|
|
|
|
} status_t;
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
2011-03-07 08:02:35 +01:00
|
|
|
|
typedef enum { /* Fehler und Meldungen im Report */
|
2010-08-08 10:06:34 +02:00
|
|
|
|
MSG_BATTLE,
|
|
|
|
|
MSG_EVENT,
|
|
|
|
|
MSG_MOVE,
|
|
|
|
|
MSG_INCOME,
|
|
|
|
|
MSG_COMMERCE,
|
|
|
|
|
MSG_PRODUCE,
|
|
|
|
|
MSG_MESSAGE,
|
|
|
|
|
MSG_MAGIC,
|
|
|
|
|
MAX_MSG
|
|
|
|
|
} msg_t;
|
|
|
|
|
|
2011-03-07 08:02:35 +01:00
|
|
|
|
enum { /* Message-Level */
|
|
|
|
|
ML_IMPORTANT, /* Sachen, die IMO erscheinen _muessen_ */
|
2010-08-08 10:06:34 +02:00
|
|
|
|
ML_DEBUG,
|
|
|
|
|
ML_MISTAKE,
|
|
|
|
|
ML_WARN,
|
|
|
|
|
ML_INFO,
|
|
|
|
|
ML_MAX
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* --------------- Reports Typen ------------------------------- */
|
|
|
|
|
|
|
|
|
|
enum {
|
2011-03-07 08:02:35 +01:00
|
|
|
|
O_REPORT, /* 1 */
|
|
|
|
|
O_COMPUTER, /* 2 */
|
|
|
|
|
O_ZUGVORLAGE, /* 4 */
|
2015-03-29 14:03:56 +02:00
|
|
|
|
O_JSON, /* 8 */
|
2011-03-07 08:02:35 +01:00
|
|
|
|
O_STATISTICS, /* 16 */
|
|
|
|
|
O_DEBUG, /* 32 */
|
|
|
|
|
O_COMPRESS, /* 64 */
|
|
|
|
|
O_NEWS, /* 128 */
|
2010-08-08 10:06:34 +02:00
|
|
|
|
O_UNUSED_8,
|
2011-03-07 08:02:35 +01:00
|
|
|
|
O_ADRESSEN, /* 512 */
|
|
|
|
|
O_BZIP2, /* 1024 - compress as bzip2 */
|
|
|
|
|
O_SCORE, /* 2048 - punkte anzeigen? */
|
|
|
|
|
O_SHOWSKCHANGE, /* 4096 - Skillver<65>nderungen anzeigen? */
|
2010-08-08 10:06:34 +02:00
|
|
|
|
MAXOPTIONS
|
|
|
|
|
};
|
|
|
|
|
|
2018-11-18 21:47:14 +01:00
|
|
|
|
typedef enum magic_t {
|
2012-05-09 12:14:54 +02:00
|
|
|
|
M_GRAY = 0, /* Gray */
|
|
|
|
|
M_ILLAUN = 1, /* Illaun */
|
|
|
|
|
M_TYBIED = 2, /* Tybied */
|
|
|
|
|
M_CERDDOR = 3, /* Cerddor */
|
|
|
|
|
M_GWYRRD = 4, /* Gwyrrd */
|
|
|
|
|
M_DRAIG = 5, /* Draig */
|
|
|
|
|
M_COMMON = 6, /* common spells */
|
|
|
|
|
MAXMAGIETYP,
|
|
|
|
|
/* this enum is stored in the datafile, so do not change the numbers around */
|
|
|
|
|
M_NONE = -1
|
|
|
|
|
} magic_t;
|
|
|
|
|
|
2010-08-08 10:06:34 +02:00
|
|
|
|
#define DONT_HELP 0
|
2011-03-07 08:02:35 +01:00
|
|
|
|
#define HELP_MONEY 1 /* Mitversorgen von Einheiten */
|
|
|
|
|
#define HELP_FIGHT 2 /* Bei Verteidigung mithelfen */
|
|
|
|
|
#define HELP_OBSERVE 4 /* Bei Wahrnehmung mithelfen */
|
|
|
|
|
#define HELP_GIVE 8 /* Dinge annehmen ohne KONTAKTIERE */
|
|
|
|
|
#define HELP_GUARD 16 /* Laesst Steuern eintreiben etc. */
|
|
|
|
|
#define HELP_FSTEALTH 32 /* Parteitarnung anzeigen. */
|
|
|
|
|
#define HELP_TRAVEL 64 /* Laesst Regionen betreten. */
|
|
|
|
|
#define HELP_ALL (127-HELP_TRAVEL-HELP_OBSERVE) /* Alle "positiven" HELPs zusammen */
|
2010-08-08 10:06:34 +02:00
|
|
|
|
/* HELP_OBSERVE deaktiviert */
|
|
|
|
|
/* ------------------------------------------------------------- */
|
|
|
|
|
/* Prototypen */
|
|
|
|
|
|
|
|
|
|
/* alle vierstelligen zahlen: */
|
|
|
|
|
#define MAX_UNIT_NR (36*36*36*36-1)
|
|
|
|
|
#define MAX_CONTAINER_NR (36*36*36*36-1)
|
|
|
|
|
|
|
|
|
|
#endif
|