Freeciv-3.3
Loading...
Searching...
No Matches
Macros | Functions | Variables
events.h File Reference
#include "support.h"
#include "specenum_gen.h"

Go to the source code of this file.

Macros

#define SPECENUM_NAME   event_type
 
#define SPECENUM_VALUE0   E_CITY_CANTBUILD
 
#define SPECENUM_VALUE1   E_CITY_LOST
 
#define SPECENUM_VALUE2   E_CITY_LOVE
 
#define SPECENUM_VALUE3   E_CITY_DISORDER
 
#define SPECENUM_VALUE4   E_CITY_FAMINE
 
#define SPECENUM_VALUE5   E_CITY_FAMINE_FEARED
 
#define SPECENUM_VALUE6   E_CITY_GROWTH
 
#define SPECENUM_VALUE7   E_CITY_MAY_SOON_GROW
 
#define SPECENUM_VALUE8   E_CITY_AQUEDUCT
 
#define SPECENUM_VALUE9   E_CITY_AQ_BUILDING
 
#define SPECENUM_VALUE10   E_CITY_NORMAL
 
#define SPECENUM_VALUE11   E_CITY_NUKED
 
#define SPECENUM_VALUE12   E_CITY_CMA_RELEASE
 
#define SPECENUM_VALUE13   E_CITY_GRAN_THROTTLE
 
#define SPECENUM_VALUE14   E_CITY_TRANSFER
 
#define SPECENUM_VALUE15   E_CITY_BUILD
 
#define SPECENUM_VALUE16   E_CITY_PRODUCTION_CHANGED
 
#define SPECENUM_VALUE17   E_WORKLIST
 
#define SPECENUM_VALUE18   E_UPRISING
 
#define SPECENUM_VALUE19   E_CIVIL_WAR
 
#define SPECENUM_VALUE20   E_ANARCHY
 
#define SPECENUM_VALUE21   E_FIRST_CONTACT
 
#define SPECENUM_VALUE22   E_NEW_GOVERNMENT
 
#define SPECENUM_VALUE23   E_LOW_ON_FUNDS
 
#define SPECENUM_VALUE24   E_POLLUTION
 
#define SPECENUM_VALUE25   E_REVOLT_DONE
 
#define SPECENUM_VALUE26   E_REVOLT_START
 
#define SPECENUM_VALUE27   E_SPACESHIP
 
#define SPECENUM_VALUE28   E_MY_DIPLOMAT_BRIBE
 
#define SPECENUM_VALUE29   E_DIPLOMATIC_INCIDENT
 
#define SPECENUM_VALUE30   E_MY_DIPLOMAT_ESCAPE
 
#define SPECENUM_VALUE31   E_MY_DIPLOMAT_EMBASSY
 
#define SPECENUM_VALUE32   E_MY_DIPLOMAT_FAILED
 
#define SPECENUM_VALUE33   E_MY_DIPLOMAT_INCITE
 
#define SPECENUM_VALUE34   E_MY_DIPLOMAT_POISON
 
#define SPECENUM_VALUE35   E_MY_DIPLOMAT_SABOTAGE
 
#define SPECENUM_VALUE36   E_MY_DIPLOMAT_THEFT
 
#define SPECENUM_VALUE37   E_ENEMY_DIPLOMAT_BRIBE
 
#define SPECENUM_VALUE38   E_ENEMY_DIPLOMAT_EMBASSY
 
#define SPECENUM_VALUE39   E_ENEMY_DIPLOMAT_FAILED
 
#define SPECENUM_VALUE40   E_ENEMY_DIPLOMAT_INCITE
 
#define SPECENUM_VALUE41   E_ENEMY_DIPLOMAT_POISON
 
#define SPECENUM_VALUE42   E_ENEMY_DIPLOMAT_SABOTAGE
 
#define SPECENUM_VALUE43   E_ENEMY_DIPLOMAT_THEFT
 
#define SPECENUM_VALUE44   E_CARAVAN_ACTION
 
#define SPECENUM_VALUE45   E_SCRIPT
 
#define SPECENUM_VALUE46   E_BROADCAST_REPORT
 
#define SPECENUM_VALUE47   E_GAME_END
 
#define SPECENUM_VALUE48   E_GAME_START
 
#define SPECENUM_VALUE49   E_NATION_SELECTED
 
#define SPECENUM_VALUE50   E_DESTROYED
 
#define SPECENUM_VALUE51   E_REPORT
 
#define SPECENUM_VALUE52   E_TURN_BELL
 
#define SPECENUM_VALUE53   E_NEXT_YEAR
 
#define SPECENUM_VALUE54   E_GLOBAL_ECO
 
#define SPECENUM_VALUE55   E_NUKE
 
#define SPECENUM_VALUE56   E_HUT_BARB
 
#define SPECENUM_VALUE57   E_HUT_CITY
 
#define SPECENUM_VALUE58   E_HUT_GOLD
 
#define SPECENUM_VALUE59   E_HUT_BARB_KILLED
 
#define SPECENUM_VALUE60   E_HUT_MERC
 
#define SPECENUM_VALUE61   E_HUT_SETTLER
 
#define SPECENUM_VALUE62   E_HUT_TECH
 
#define SPECENUM_VALUE63   E_HUT_BARB_CITY_NEAR
 
#define SPECENUM_VALUE64   E_IMP_BUY
 
#define SPECENUM_VALUE65   E_IMP_BUILD
 
#define SPECENUM_VALUE66   E_IMP_AUCTIONED
 
#define SPECENUM_VALUE67   E_IMP_AUTO
 
#define SPECENUM_VALUE68   E_IMP_SOLD
 
#define SPECENUM_VALUE69   E_TECH_GAIN
 
#define SPECENUM_VALUE70   E_TECH_LEARNED
 
#define SPECENUM_VALUE71   E_TREATY_ALLIANCE
 
#define SPECENUM_VALUE72   E_TREATY_BROKEN
 
#define SPECENUM_VALUE73   E_TREATY_CEASEFIRE
 
#define SPECENUM_VALUE74   E_TREATY_PEACE
 
#define SPECENUM_VALUE75   E_TREATY_SHARED_VISION
 
#define SPECENUM_VALUE76   E_UNIT_LOST_ATT
 
#define SPECENUM_VALUE77   E_UNIT_WIN_ATT
 
#define SPECENUM_VALUE78   E_UNIT_BUY
 
#define SPECENUM_VALUE79   E_UNIT_BUILT
 
#define SPECENUM_VALUE80   E_UNIT_LOST_DEF
 
#define SPECENUM_VALUE81   E_UNIT_WIN_DEF
 
#define SPECENUM_VALUE82   E_UNIT_BECAME_VET
 
#define SPECENUM_VALUE83   E_UNIT_UPGRADED
 
#define SPECENUM_VALUE84   E_UNIT_RELOCATED
 
#define SPECENUM_VALUE85   E_UNIT_ORDERS
 
#define SPECENUM_VALUE86   E_WONDER_BUILD
 
#define SPECENUM_VALUE87   E_WONDER_OBSOLETE
 
#define SPECENUM_VALUE88   E_WONDER_STARTED
 
#define SPECENUM_VALUE89   E_WONDER_STOPPED
 
#define SPECENUM_VALUE90   E_WONDER_WILL_BE_BUILT
 
#define SPECENUM_VALUE91   E_DIPLOMACY
 
#define SPECENUM_VALUE92   E_TREATY_EMBASSY
 
#define SPECENUM_VALUE93   E_BAD_COMMAND
 
#define SPECENUM_VALUE94   E_SETTING
 
#define SPECENUM_VALUE95   E_CHAT_MSG
 
#define SPECENUM_VALUE96   E_MESSAGE_WALL
 
#define SPECENUM_VALUE97   E_CHAT_ERROR
 
#define SPECENUM_VALUE98   E_CONNECTION
 
#define SPECENUM_VALUE99   E_AI_DEBUG
 
#define SPECENUM_VALUE100   E_LOG_ERROR
 
#define SPECENUM_VALUE101   E_LOG_FATAL
 
#define SPECENUM_VALUE102   E_TECH_GOAL
 
#define SPECENUM_VALUE103   E_UNIT_LOST_MISC
 
#define SPECENUM_VALUE104   E_CITY_PLAGUE
 
#define SPECENUM_VALUE105   E_VOTE_NEW
 
#define SPECENUM_VALUE106   E_VOTE_RESOLVED
 
#define SPECENUM_VALUE107   E_VOTE_ABORTED
 
#define SPECENUM_VALUE108   E_CITY_RADIUS_SQ
 
#define SPECENUM_VALUE109   E_UNIT_BUILT_POP_COST
 
#define SPECENUM_VALUE110   E_DISASTER
 
#define SPECENUM_VALUE111   E_ACHIEVEMENT
 
#define SPECENUM_VALUE112   E_TECH_LOST
 
#define SPECENUM_VALUE113   E_TECH_EMBASSY
 
#define SPECENUM_VALUE114   E_MY_SPY_STEAL_GOLD
 
#define SPECENUM_VALUE115   E_ENEMY_SPY_STEAL_GOLD
 
#define SPECENUM_VALUE116   E_SPONTANEOUS_EXTRA
 
#define SPECENUM_VALUE117   E_UNIT_ILLEGAL_ACTION
 
#define SPECENUM_VALUE118   E_MY_SPY_STEAL_MAP
 
#define SPECENUM_VALUE119   E_ENEMY_SPY_STEAL_MAP
 
#define SPECENUM_VALUE120   E_MY_SPY_NUKE
 
#define SPECENUM_VALUE121   E_ENEMY_SPY_NUKE
 
#define SPECENUM_VALUE122   E_UNIT_WAS_EXPELLED
 
#define SPECENUM_VALUE123   E_UNIT_DID_EXPEL
 
#define SPECENUM_VALUE124   E_UNIT_ACTION_FAILED
 
#define SPECENUM_VALUE125   E_UNIT_ESCAPED
 
#define SPECENUM_VALUE126   E_DEPRECATION_WARNING
 
#define SPECENUM_VALUE127   E_BEGINNER_HELP
 
#define SPECENUM_VALUE128   E_MY_UNIT_DID_HEAL
 
#define SPECENUM_VALUE129   E_MY_UNIT_WAS_HEALED
 
#define SPECENUM_VALUE130   E_MULTIPLIER
 
#define SPECENUM_VALUE131   E_UNIT_ACTION_ACTOR_SUCCESS
 
#define SPECENUM_VALUE132   E_UNIT_ACTION_ACTOR_FAILURE
 
#define SPECENUM_VALUE133   E_UNIT_ACTION_TARGET_OTHER
 
#define SPECENUM_VALUE134   E_UNIT_ACTION_TARGET_HOSTILE
 
#define SPECENUM_VALUE135   E_INFRAPOINTS
 
#define SPECENUM_VALUE136   E_HUT_MAP
 
#define SPECENUM_VALUE137   E_TREATY_SHARED_TILES
 
#define SPECENUM_VALUE138   E_CITY_CONQUERED
 
#define SPECENUM_COUNT   E_COUNT
 
#define sorted_event_iterate(event)
 
#define sorted_event_iterate_end
 

Functions

const charget_event_message_text (enum event_type event)
 
const charget_event_tag (enum event_type event)
 
bool is_city_event (enum event_type event)
 
void events_init (void)
 
void events_free (void)
 

Variables

enum event_type sorted_events []
 

Macro Definition Documentation

◆ sorted_event_iterate

#define sorted_event_iterate (   event)
Value:
{ \
enum event_type event; \
enum event_type event##_index; \
event##_index != event_type_end(); \
event = sorted_events[event##_index]; \
{
char * incite_cost
Definition comments.c:76
enum event_type event
Definition events.c:81
enum event_type sorted_events[]
Definition events.c:241

Definition at line 203 of file events.h.

◆ sorted_event_iterate_end

#define sorted_event_iterate_end
Value:
} \
} \
}

Definition at line 213 of file events.h.

◆ SPECENUM_COUNT

#define SPECENUM_COUNT   E_COUNT

Definition at line 184 of file events.h.

◆ SPECENUM_NAME

Definition at line 23 of file events.h.

◆ SPECENUM_VALUE0

#define SPECENUM_VALUE0   E_CITY_CANTBUILD

Definition at line 24 of file events.h.

◆ SPECENUM_VALUE1

#define SPECENUM_VALUE1   E_CITY_LOST

Definition at line 25 of file events.h.

◆ SPECENUM_VALUE10

#define SPECENUM_VALUE10   E_CITY_NORMAL

Definition at line 34 of file events.h.

◆ SPECENUM_VALUE100

#define SPECENUM_VALUE100   E_LOG_ERROR

Definition at line 132 of file events.h.

◆ SPECENUM_VALUE101

#define SPECENUM_VALUE101   E_LOG_FATAL

Definition at line 133 of file events.h.

◆ SPECENUM_VALUE102

#define SPECENUM_VALUE102   E_TECH_GOAL

Definition at line 135 of file events.h.

◆ SPECENUM_VALUE103

#define SPECENUM_VALUE103   E_UNIT_LOST_MISC

Definition at line 137 of file events.h.

◆ SPECENUM_VALUE104

#define SPECENUM_VALUE104   E_CITY_PLAGUE

Definition at line 139 of file events.h.

◆ SPECENUM_VALUE105

#define SPECENUM_VALUE105   E_VOTE_NEW

Definition at line 140 of file events.h.

◆ SPECENUM_VALUE106

#define SPECENUM_VALUE106   E_VOTE_RESOLVED

Definition at line 141 of file events.h.

◆ SPECENUM_VALUE107

#define SPECENUM_VALUE107   E_VOTE_ABORTED

Definition at line 142 of file events.h.

◆ SPECENUM_VALUE108

#define SPECENUM_VALUE108   E_CITY_RADIUS_SQ

Definition at line 144 of file events.h.

◆ SPECENUM_VALUE109

#define SPECENUM_VALUE109   E_UNIT_BUILT_POP_COST

Definition at line 146 of file events.h.

◆ SPECENUM_VALUE11

#define SPECENUM_VALUE11   E_CITY_NUKED

Definition at line 35 of file events.h.

◆ SPECENUM_VALUE110

#define SPECENUM_VALUE110   E_DISASTER

Definition at line 147 of file events.h.

◆ SPECENUM_VALUE111

#define SPECENUM_VALUE111   E_ACHIEVEMENT

Definition at line 148 of file events.h.

◆ SPECENUM_VALUE112

#define SPECENUM_VALUE112   E_TECH_LOST

Definition at line 149 of file events.h.

◆ SPECENUM_VALUE113

#define SPECENUM_VALUE113   E_TECH_EMBASSY

Definition at line 151 of file events.h.

◆ SPECENUM_VALUE114

#define SPECENUM_VALUE114   E_MY_SPY_STEAL_GOLD

Definition at line 152 of file events.h.

◆ SPECENUM_VALUE115

#define SPECENUM_VALUE115   E_ENEMY_SPY_STEAL_GOLD

Definition at line 153 of file events.h.

◆ SPECENUM_VALUE116

#define SPECENUM_VALUE116   E_SPONTANEOUS_EXTRA

Definition at line 154 of file events.h.

◆ SPECENUM_VALUE117

#define SPECENUM_VALUE117   E_UNIT_ILLEGAL_ACTION

Definition at line 155 of file events.h.

◆ SPECENUM_VALUE118

#define SPECENUM_VALUE118   E_MY_SPY_STEAL_MAP

Definition at line 156 of file events.h.

◆ SPECENUM_VALUE119

#define SPECENUM_VALUE119   E_ENEMY_SPY_STEAL_MAP

Definition at line 157 of file events.h.

◆ SPECENUM_VALUE12

#define SPECENUM_VALUE12   E_CITY_CMA_RELEASE

Definition at line 36 of file events.h.

◆ SPECENUM_VALUE120

#define SPECENUM_VALUE120   E_MY_SPY_NUKE

Definition at line 158 of file events.h.

◆ SPECENUM_VALUE121

#define SPECENUM_VALUE121   E_ENEMY_SPY_NUKE

Definition at line 159 of file events.h.

◆ SPECENUM_VALUE122

#define SPECENUM_VALUE122   E_UNIT_WAS_EXPELLED

Definition at line 160 of file events.h.

◆ SPECENUM_VALUE123

#define SPECENUM_VALUE123   E_UNIT_DID_EXPEL

Definition at line 161 of file events.h.

◆ SPECENUM_VALUE124

#define SPECENUM_VALUE124   E_UNIT_ACTION_FAILED

Definition at line 162 of file events.h.

◆ SPECENUM_VALUE125

#define SPECENUM_VALUE125   E_UNIT_ESCAPED

Definition at line 163 of file events.h.

◆ SPECENUM_VALUE126

#define SPECENUM_VALUE126   E_DEPRECATION_WARNING

Definition at line 164 of file events.h.

◆ SPECENUM_VALUE127

#define SPECENUM_VALUE127   E_BEGINNER_HELP

Definition at line 166 of file events.h.

◆ SPECENUM_VALUE128

#define SPECENUM_VALUE128   E_MY_UNIT_DID_HEAL

Definition at line 167 of file events.h.

◆ SPECENUM_VALUE129

#define SPECENUM_VALUE129   E_MY_UNIT_WAS_HEALED

Definition at line 168 of file events.h.

◆ SPECENUM_VALUE13

#define SPECENUM_VALUE13   E_CITY_GRAN_THROTTLE

Definition at line 37 of file events.h.

◆ SPECENUM_VALUE130

#define SPECENUM_VALUE130   E_MULTIPLIER

Definition at line 169 of file events.h.

◆ SPECENUM_VALUE131

#define SPECENUM_VALUE131   E_UNIT_ACTION_ACTOR_SUCCESS

Definition at line 170 of file events.h.

◆ SPECENUM_VALUE132

#define SPECENUM_VALUE132   E_UNIT_ACTION_ACTOR_FAILURE

Definition at line 171 of file events.h.

◆ SPECENUM_VALUE133

#define SPECENUM_VALUE133   E_UNIT_ACTION_TARGET_OTHER

Definition at line 172 of file events.h.

◆ SPECENUM_VALUE134

#define SPECENUM_VALUE134   E_UNIT_ACTION_TARGET_HOSTILE

Definition at line 173 of file events.h.

◆ SPECENUM_VALUE135

#define SPECENUM_VALUE135   E_INFRAPOINTS

Definition at line 174 of file events.h.

◆ SPECENUM_VALUE136

#define SPECENUM_VALUE136   E_HUT_MAP

Definition at line 175 of file events.h.

◆ SPECENUM_VALUE137

#define SPECENUM_VALUE137   E_TREATY_SHARED_TILES

Definition at line 176 of file events.h.

◆ SPECENUM_VALUE138

#define SPECENUM_VALUE138   E_CITY_CONQUERED

Definition at line 177 of file events.h.

◆ SPECENUM_VALUE14

#define SPECENUM_VALUE14   E_CITY_TRANSFER

Definition at line 38 of file events.h.

◆ SPECENUM_VALUE15

#define SPECENUM_VALUE15   E_CITY_BUILD

Definition at line 39 of file events.h.

◆ SPECENUM_VALUE16

#define SPECENUM_VALUE16   E_CITY_PRODUCTION_CHANGED

Definition at line 40 of file events.h.

◆ SPECENUM_VALUE17

#define SPECENUM_VALUE17   E_WORKLIST

Definition at line 41 of file events.h.

◆ SPECENUM_VALUE18

#define SPECENUM_VALUE18   E_UPRISING

Definition at line 42 of file events.h.

◆ SPECENUM_VALUE19

#define SPECENUM_VALUE19   E_CIVIL_WAR

Definition at line 43 of file events.h.

◆ SPECENUM_VALUE2

#define SPECENUM_VALUE2   E_CITY_LOVE

Definition at line 26 of file events.h.

◆ SPECENUM_VALUE20

#define SPECENUM_VALUE20   E_ANARCHY

Definition at line 44 of file events.h.

◆ SPECENUM_VALUE21

#define SPECENUM_VALUE21   E_FIRST_CONTACT

Definition at line 45 of file events.h.

◆ SPECENUM_VALUE22

#define SPECENUM_VALUE22   E_NEW_GOVERNMENT

Definition at line 46 of file events.h.

◆ SPECENUM_VALUE23

#define SPECENUM_VALUE23   E_LOW_ON_FUNDS

Definition at line 47 of file events.h.

◆ SPECENUM_VALUE24

#define SPECENUM_VALUE24   E_POLLUTION

Definition at line 48 of file events.h.

◆ SPECENUM_VALUE25

#define SPECENUM_VALUE25   E_REVOLT_DONE

Definition at line 49 of file events.h.

◆ SPECENUM_VALUE26

#define SPECENUM_VALUE26   E_REVOLT_START

Definition at line 50 of file events.h.

◆ SPECENUM_VALUE27

#define SPECENUM_VALUE27   E_SPACESHIP

Definition at line 51 of file events.h.

◆ SPECENUM_VALUE28

#define SPECENUM_VALUE28   E_MY_DIPLOMAT_BRIBE

Definition at line 52 of file events.h.

◆ SPECENUM_VALUE29

#define SPECENUM_VALUE29   E_DIPLOMATIC_INCIDENT

Definition at line 53 of file events.h.

◆ SPECENUM_VALUE3

#define SPECENUM_VALUE3   E_CITY_DISORDER

Definition at line 27 of file events.h.

◆ SPECENUM_VALUE30

#define SPECENUM_VALUE30   E_MY_DIPLOMAT_ESCAPE

Definition at line 54 of file events.h.

◆ SPECENUM_VALUE31

#define SPECENUM_VALUE31   E_MY_DIPLOMAT_EMBASSY

Definition at line 55 of file events.h.

◆ SPECENUM_VALUE32

#define SPECENUM_VALUE32   E_MY_DIPLOMAT_FAILED

Definition at line 56 of file events.h.

◆ SPECENUM_VALUE33

#define SPECENUM_VALUE33   E_MY_DIPLOMAT_INCITE

Definition at line 57 of file events.h.

◆ SPECENUM_VALUE34

#define SPECENUM_VALUE34   E_MY_DIPLOMAT_POISON

Definition at line 58 of file events.h.

◆ SPECENUM_VALUE35

#define SPECENUM_VALUE35   E_MY_DIPLOMAT_SABOTAGE

Definition at line 59 of file events.h.

◆ SPECENUM_VALUE36

#define SPECENUM_VALUE36   E_MY_DIPLOMAT_THEFT

Definition at line 60 of file events.h.

◆ SPECENUM_VALUE37

#define SPECENUM_VALUE37   E_ENEMY_DIPLOMAT_BRIBE

Definition at line 61 of file events.h.

◆ SPECENUM_VALUE38

#define SPECENUM_VALUE38   E_ENEMY_DIPLOMAT_EMBASSY

Definition at line 62 of file events.h.

◆ SPECENUM_VALUE39

#define SPECENUM_VALUE39   E_ENEMY_DIPLOMAT_FAILED

Definition at line 63 of file events.h.

◆ SPECENUM_VALUE4

#define SPECENUM_VALUE4   E_CITY_FAMINE

Definition at line 28 of file events.h.

◆ SPECENUM_VALUE40

#define SPECENUM_VALUE40   E_ENEMY_DIPLOMAT_INCITE

Definition at line 64 of file events.h.

◆ SPECENUM_VALUE41

#define SPECENUM_VALUE41   E_ENEMY_DIPLOMAT_POISON

Definition at line 65 of file events.h.

◆ SPECENUM_VALUE42

#define SPECENUM_VALUE42   E_ENEMY_DIPLOMAT_SABOTAGE

Definition at line 66 of file events.h.

◆ SPECENUM_VALUE43

#define SPECENUM_VALUE43   E_ENEMY_DIPLOMAT_THEFT

Definition at line 67 of file events.h.

◆ SPECENUM_VALUE44

#define SPECENUM_VALUE44   E_CARAVAN_ACTION

Definition at line 68 of file events.h.

◆ SPECENUM_VALUE45

#define SPECENUM_VALUE45   E_SCRIPT

Definition at line 69 of file events.h.

◆ SPECENUM_VALUE46

#define SPECENUM_VALUE46   E_BROADCAST_REPORT

Definition at line 70 of file events.h.

◆ SPECENUM_VALUE47

#define SPECENUM_VALUE47   E_GAME_END

Definition at line 71 of file events.h.

◆ SPECENUM_VALUE48

#define SPECENUM_VALUE48   E_GAME_START

Definition at line 72 of file events.h.

◆ SPECENUM_VALUE49

#define SPECENUM_VALUE49   E_NATION_SELECTED

Definition at line 73 of file events.h.

◆ SPECENUM_VALUE5

#define SPECENUM_VALUE5   E_CITY_FAMINE_FEARED

Definition at line 29 of file events.h.

◆ SPECENUM_VALUE50

#define SPECENUM_VALUE50   E_DESTROYED

Definition at line 74 of file events.h.

◆ SPECENUM_VALUE51

#define SPECENUM_VALUE51   E_REPORT

Definition at line 75 of file events.h.

◆ SPECENUM_VALUE52

#define SPECENUM_VALUE52   E_TURN_BELL

Definition at line 76 of file events.h.

◆ SPECENUM_VALUE53

#define SPECENUM_VALUE53   E_NEXT_YEAR

Definition at line 77 of file events.h.

◆ SPECENUM_VALUE54

#define SPECENUM_VALUE54   E_GLOBAL_ECO

Definition at line 78 of file events.h.

◆ SPECENUM_VALUE55

#define SPECENUM_VALUE55   E_NUKE

Definition at line 79 of file events.h.

◆ SPECENUM_VALUE56

#define SPECENUM_VALUE56   E_HUT_BARB

Definition at line 80 of file events.h.

◆ SPECENUM_VALUE57

#define SPECENUM_VALUE57   E_HUT_CITY

Definition at line 81 of file events.h.

◆ SPECENUM_VALUE58

#define SPECENUM_VALUE58   E_HUT_GOLD

Definition at line 82 of file events.h.

◆ SPECENUM_VALUE59

#define SPECENUM_VALUE59   E_HUT_BARB_KILLED

Definition at line 83 of file events.h.

◆ SPECENUM_VALUE6

#define SPECENUM_VALUE6   E_CITY_GROWTH

Definition at line 30 of file events.h.

◆ SPECENUM_VALUE60

#define SPECENUM_VALUE60   E_HUT_MERC

Definition at line 84 of file events.h.

◆ SPECENUM_VALUE61

#define SPECENUM_VALUE61   E_HUT_SETTLER

Definition at line 85 of file events.h.

◆ SPECENUM_VALUE62

#define SPECENUM_VALUE62   E_HUT_TECH

Definition at line 86 of file events.h.

◆ SPECENUM_VALUE63

#define SPECENUM_VALUE63   E_HUT_BARB_CITY_NEAR

Definition at line 87 of file events.h.

◆ SPECENUM_VALUE64

#define SPECENUM_VALUE64   E_IMP_BUY

Definition at line 88 of file events.h.

◆ SPECENUM_VALUE65

#define SPECENUM_VALUE65   E_IMP_BUILD

Definition at line 89 of file events.h.

◆ SPECENUM_VALUE66

#define SPECENUM_VALUE66   E_IMP_AUCTIONED

Definition at line 90 of file events.h.

◆ SPECENUM_VALUE67

#define SPECENUM_VALUE67   E_IMP_AUTO

Definition at line 91 of file events.h.

◆ SPECENUM_VALUE68

#define SPECENUM_VALUE68   E_IMP_SOLD

Definition at line 92 of file events.h.

◆ SPECENUM_VALUE69

#define SPECENUM_VALUE69   E_TECH_GAIN

Definition at line 93 of file events.h.

◆ SPECENUM_VALUE7

#define SPECENUM_VALUE7   E_CITY_MAY_SOON_GROW

Definition at line 31 of file events.h.

◆ SPECENUM_VALUE70

#define SPECENUM_VALUE70   E_TECH_LEARNED

Definition at line 94 of file events.h.

◆ SPECENUM_VALUE71

#define SPECENUM_VALUE71   E_TREATY_ALLIANCE

Definition at line 95 of file events.h.

◆ SPECENUM_VALUE72

#define SPECENUM_VALUE72   E_TREATY_BROKEN

Definition at line 96 of file events.h.

◆ SPECENUM_VALUE73

#define SPECENUM_VALUE73   E_TREATY_CEASEFIRE

Definition at line 97 of file events.h.

◆ SPECENUM_VALUE74

#define SPECENUM_VALUE74   E_TREATY_PEACE

Definition at line 98 of file events.h.

◆ SPECENUM_VALUE75

#define SPECENUM_VALUE75   E_TREATY_SHARED_VISION

Definition at line 99 of file events.h.

◆ SPECENUM_VALUE76

#define SPECENUM_VALUE76   E_UNIT_LOST_ATT

Definition at line 100 of file events.h.

◆ SPECENUM_VALUE77

#define SPECENUM_VALUE77   E_UNIT_WIN_ATT

Definition at line 101 of file events.h.

◆ SPECENUM_VALUE78

#define SPECENUM_VALUE78   E_UNIT_BUY

Definition at line 102 of file events.h.

◆ SPECENUM_VALUE79

#define SPECENUM_VALUE79   E_UNIT_BUILT

Definition at line 103 of file events.h.

◆ SPECENUM_VALUE8

#define SPECENUM_VALUE8   E_CITY_AQUEDUCT

Definition at line 32 of file events.h.

◆ SPECENUM_VALUE80

#define SPECENUM_VALUE80   E_UNIT_LOST_DEF

Definition at line 104 of file events.h.

◆ SPECENUM_VALUE81

#define SPECENUM_VALUE81   E_UNIT_WIN_DEF

Definition at line 105 of file events.h.

◆ SPECENUM_VALUE82

#define SPECENUM_VALUE82   E_UNIT_BECAME_VET

Definition at line 106 of file events.h.

◆ SPECENUM_VALUE83

#define SPECENUM_VALUE83   E_UNIT_UPGRADED

Definition at line 107 of file events.h.

◆ SPECENUM_VALUE84

#define SPECENUM_VALUE84   E_UNIT_RELOCATED

Definition at line 108 of file events.h.

◆ SPECENUM_VALUE85

#define SPECENUM_VALUE85   E_UNIT_ORDERS

Definition at line 109 of file events.h.

◆ SPECENUM_VALUE86

#define SPECENUM_VALUE86   E_WONDER_BUILD

Definition at line 110 of file events.h.

◆ SPECENUM_VALUE87

#define SPECENUM_VALUE87   E_WONDER_OBSOLETE

Definition at line 111 of file events.h.

◆ SPECENUM_VALUE88

#define SPECENUM_VALUE88   E_WONDER_STARTED

Definition at line 112 of file events.h.

◆ SPECENUM_VALUE89

#define SPECENUM_VALUE89   E_WONDER_STOPPED

Definition at line 113 of file events.h.

◆ SPECENUM_VALUE9

#define SPECENUM_VALUE9   E_CITY_AQ_BUILDING

Definition at line 33 of file events.h.

◆ SPECENUM_VALUE90

#define SPECENUM_VALUE90   E_WONDER_WILL_BE_BUILT

Definition at line 114 of file events.h.

◆ SPECENUM_VALUE91

#define SPECENUM_VALUE91   E_DIPLOMACY

Definition at line 115 of file events.h.

◆ SPECENUM_VALUE92

#define SPECENUM_VALUE92   E_TREATY_EMBASSY

Definition at line 116 of file events.h.

◆ SPECENUM_VALUE93

#define SPECENUM_VALUE93   E_BAD_COMMAND

Definition at line 118 of file events.h.

◆ SPECENUM_VALUE94

#define SPECENUM_VALUE94   E_SETTING

Definition at line 120 of file events.h.

◆ SPECENUM_VALUE95

#define SPECENUM_VALUE95   E_CHAT_MSG

Definition at line 122 of file events.h.

◆ SPECENUM_VALUE96

#define SPECENUM_VALUE96   E_MESSAGE_WALL

Definition at line 124 of file events.h.

◆ SPECENUM_VALUE97

#define SPECENUM_VALUE97   E_CHAT_ERROR

Definition at line 126 of file events.h.

◆ SPECENUM_VALUE98

#define SPECENUM_VALUE98   E_CONNECTION

Definition at line 128 of file events.h.

◆ SPECENUM_VALUE99

#define SPECENUM_VALUE99   E_AI_DEBUG

Definition at line 130 of file events.h.

Function Documentation

◆ events_free()

void events_free ( void  )

Free events.

Definition at line 377 of file events.c.

◆ events_init()

void events_init ( void  )

Initialize events. Now also initialise sorted_events[].

Definition at line 331 of file events.c.

Referenced by message_options_init().

◆ get_event_message_text()

const char * get_event_message_text ( enum event_type  event)

Returns the translated description of the given event.

Definition at line 247 of file events.c.

Referenced by compar_event_message_texts(), create_messageopt_dialog(), and message_dlg::fill_data().

◆ get_event_tag()

const char * get_event_tag ( enum event_type  event)

Returns a string for the sound to be used for this message type.

Definition at line 276 of file events.c.

Referenced by play_sound_for_event(), and tileset_lookup_sprite_tags().

◆ is_city_event()

bool is_city_event ( enum event_type  event)

Does the event affect a city if there's one at the event location.

Definition at line 291 of file events.c.

Referenced by meswin_double_click().

Variable Documentation

◆ sorted_events

enum event_type sorted_events[]
extern

Definition at line 241 of file events.c.

Referenced by events_init().