#ifndef ERESSEA_TYPES_H #define ERESSEA_TYPES_H #include struct attrib; struct attrib_type; struct ally; struct building; struct building_type; struct curse; struct curse_type; struct castorder; struct equipment; struct faction; struct fighter; struct item; struct item_type; struct locale; struct luxury_type; struct order; struct plane; struct potion_type; struct selist; struct race; struct region; struct region_list; struct resource_type; struct ship; struct ship_type; struct skill; struct spell; struct spellbook; struct storage; struct strlist; struct terrain_type; struct unit; struct weapon_type; /* seen_mode: visibility in the report */ typedef enum { seen_none, seen_neighbour, seen_lighthouse_land, seen_lighthouse, seen_travel, seen_unit, seen_spell, seen_battle } seen_mode; /* ------------------ Status von Einheiten --------------------- */ typedef enum { ST_AGGRO, ST_FIGHT, ST_BEHIND, ST_CHICKEN, ST_AVOID, ST_FLEE } status_t; typedef enum { /* Fehler und Meldungen im Report */ MSG_BATTLE, MSG_EVENT, MSG_MOVE, MSG_INCOME, MSG_COMMERCE, MSG_PRODUCE, MSG_MESSAGE, MSG_MAGIC, MAX_MSG } msg_t; enum { /* Message-Level */ ML_IMPORTANT, /* Sachen, die IMO erscheinen _muessen_ */ ML_DEBUG, ML_MISTAKE, ML_WARN, ML_INFO, ML_MAX }; /* --------------- Reports Typen ------------------------------- */ enum { O_REPORT, /* 1 */ O_COMPUTER, /* 2 */ O_ZUGVORLAGE, /* 4 */ O_JSON, /* 8 */ O_STATISTICS, /* 16 */ O_DEBUG, /* 32 */ O_COMPRESS, /* 64 */ O_NEWS, /* 128 */ O_UNUSED_8, O_ADRESSEN, /* 512 */ O_BZIP2, /* 1024 - compress as bzip2 */ O_SCORE, /* 2048 - punkte anzeigen? */ O_SHOWSKCHANGE, /* 4096 - Skillveraenderungen anzeigen? */ MAXOPTIONS }; typedef enum magic_t { 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; #define DONT_HELP 0 #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 */ /* 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