Rulesave saves trade.type and trade.bonus correctly.
[freeciv.git] / client / messagewin_common.h
blobe53a35efe18405df1199c6346bbc0b02d2d82cbb
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)
6 any later version.
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
17 #ifdef __cplusplus
18 extern "C" {
19 #endif /* __cplusplus */
21 /* utility */
22 #include "support.h" /* bool type */
24 /* common */
25 #include "events.h" /* enum event_type */
26 #include "fc_types.h" /* struct tile */
27 #include "featured_text.h" /* struct text_tag_list */
29 struct message {
30 char *descr;
31 struct text_tag_list *tags;
32 struct tile *tile;
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);
48 #ifdef __cplusplus
50 #endif /* __cplusplus */
52 #endif /* FC__MESSAGEWIN_COMMON_H */