1 /**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
14 #ifndef FC__MESSAGEWIN_COMMON_H
15 #define FC__MESSAGEWIN_COMMON_H
19 #endif /* __cplusplus */
22 #include "support.h" /* bool type */
25 #include "events.h" /* enum event_type */
26 #include "fc_types.h" /* struct tile */
27 #include "featured_text.h" /* struct text_tag_list */
31 struct text_tag_list
*tags
;
33 enum event_type event
;
34 bool location_ok
, city_ok
, visited
;
37 void meswin_clear(void);
38 void meswin_add(const char *message
, const struct text_tag_list
*tags
,
39 struct tile
*ptile
, enum event_type event
);
41 const struct message
*meswin_get_message(int message_index
);
42 int meswin_get_num_messages(void);
43 void meswin_set_visited_state(int message_index
, bool state
);
44 void meswin_popup_city(int message_index
);
45 void meswin_goto(int message_index
);
46 void meswin_double_click(int message_index
);
50 #endif /* __cplusplus */
52 #endif /* FC__MESSAGEWIN_COMMON_H */