53 N_(
"Improvement: %s"),
55 N_(
"Diplomat Action: %s"),
56 N_(
"Enemy Diplomat: %s"),
68#define GEN_EV(event, section, descr) { #event, NULL, section, descr, NULL, event }
145 GEN_EV(E_HUT_BARB_KILLED,
E_S_HUT,
N_(
"Killed by Barbarians in a Hut")),
149 GEN_EV(E_HUT_BARB_CITY_NEAR,
E_S_HUT,
N_(
"Unit Spared by Barbarians")),
178 GEN_EV(E_UNIT_BUILT_POP_COST,
E_S_UNIT,
N_(
"Built unit with population cost")),
214 GEN_EV(E_DEPRECATION_WARNING,
E_S_XYZZY,
N_(
"Deprecated Modpack syntax warnings")),
254 return "UNKNOWN EVENT";
264 const enum event_type *j1 = i1;
265 const enum event_type *j2 = i2;
295 case E_UNIT_LOST_DEF:
297 case E_UNIT_LOST_MISC:
299 case E_ENEMY_DIPLOMAT_FAILED:
300 case E_ENEMY_DIPLOMAT_EMBASSY:
301 case E_ENEMY_DIPLOMAT_POISON:
302 case E_ENEMY_DIPLOMAT_BRIBE:
303 case E_ENEMY_DIPLOMAT_INCITE:
304 case E_ENEMY_DIPLOMAT_SABOTAGE:
305 case E_ENEMY_DIPLOMAT_THEFT:
306 case E_MY_DIPLOMAT_FAILED:
307 case E_MY_DIPLOMAT_EMBASSY:
308 case E_MY_DIPLOMAT_POISON:
309 case E_MY_DIPLOMAT_BRIBE:
310 case E_MY_DIPLOMAT_INCITE:
311 case E_MY_DIPLOMAT_SABOTAGE:
312 case E_MY_DIPLOMAT_THEFT:
313 case E_MY_DIPLOMAT_ESCAPE:
314 case E_UNIT_LOST_ATT:
317 case E_UNIT_RELOCATED:
318 case E_UNIT_ILLEGAL_ACTION:
338 for (i = 0; i < E_COUNT; i++) {
358 log_debug(
"event[%d]=%d: name='%s' / '%s'\n"
359 "\tdescr_orig='%s'\n"
365 for (i = 0; i <= event_type_max(); i++) {
380 for (i = 0; i <= event_type_max(); i++) {
382 events[i].full_descr = NULL;
#define GEN_EV(event, section, descr)
static int event_to_index[E_COUNT]
const char * get_event_message_text(enum event_type event)
bool is_city_event(enum event_type event)
const char * get_event_tag(enum event_type event)
static const char * event_sections[]
static int compar_event_message_texts(const void *i1, const void *i2)
static struct @23 events[]
enum event_type sorted_events[E_COUNT]
#define fc_assert_ret_val(condition, val)
#define log_debug(message,...)
#define log_error(message,...)
int fc_snprintf(char *str, size_t n, const char *format,...)
int fc_strcasecmp(const char *str0, const char *str1)