Freeciv-3.3: /fast/freeciv/nightly/main/client/messagewin_common.h Source File

Freeciv-3.3

Loading...
Searching...
No Matches
messagewin_common.h
Go to the documentation of this file.
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.
7
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***********************************************************************/
13
14#ifndef FC__MESSAGEWIN_COMMON_H
15#define FC__MESSAGEWIN_COMMON_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21/* utility */
22#include "support.h" /* bool type */
23
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 */
28
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;
35 bool city_ok;
36 bool visited;
37 int turn;
38 int phase;
39};
40
41#define MESWIN_CLEAR_ALL (-1)
42
43void meswin_clear_older(int turn, int phase);
44void meswin_add(const char *message, const struct text_tag_list *tags,
45 struct tile *ptile, enum event_type event,
46 int turn, int phase);
47
48const struct message *meswin_get_message(int message_index);
49int meswin_get_num_messages(void);
50void meswin_set_visited_state(int message_index, bool state);
51void meswin_popup_city(int message_index);
52void meswin_goto(int message_index);
53void meswin_double_click(int message_index);
54
55#ifdef __cplusplus
56}
57#endif /* __cplusplus */
58
59#endif /* FC__MESSAGEWIN_COMMON_H */
incite_cost
char * incite_cost
Definition comments.c:74
event
enum event_type event
Definition events.c:81
events.h
fc_types.h
featured_text.h
meswin_popup_city
void meswin_popup_city(int message_index)
Definition messagewin_common.c:185
meswin_goto
void meswin_goto(int message_index)
Definition messagewin_common.c:213
meswin_get_num_messages
int meswin_get_num_messages(void)
Definition messagewin_common.c:167
meswin_clear_older
void meswin_clear_older(int turn, int phase)
Definition messagewin_common.c:65
meswin_get_message
const struct message * meswin_get_message(int message_index)
Definition messagewin_common.c:154
meswin_double_click
void meswin_double_click(int message_index)
Definition messagewin_common.c:225
meswin_add
void meswin_add(const char *message, const struct text_tag_list *tags, struct tile *ptile, enum event_type event, int turn, int phase)
Definition messagewin_common.c:100
meswin_set_visited_state
void meswin_set_visited_state(int message_index, bool state)
Definition messagewin_common.c:175
message
Definition messagewin_common.h:29
message::descr
char * descr
Definition messagewin_common.h:30
message::visited
bool visited
Definition messagewin_common.h:36
message::event
enum event_type event
Definition messagewin_common.h:33
message::tags
struct text_tag_list * tags
Definition messagewin_common.h:31
message::location_ok
bool location_ok
Definition messagewin_common.h:34
message::tile
struct tile * tile
Definition messagewin_common.h:32
message::phase
int phase
Definition messagewin_common.h:38
message::turn
int turn
Definition messagewin_common.h:37
message::city_ok
bool city_ok
Definition messagewin_common.h:35
tile
Definition tile.h:50
support.h