Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/mapctrl_common.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
mapctrl_common.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 2002 - The Freeciv Project
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__MAPCTRL_COMMON_H
15#define FC__MAPCTRL_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 "map.h" /* enum direction8 */
26
27/* client */
28#include "control.h" /* quickselect_type */
29
30extern bool rbutton_down;
31extern bool rectangle_active;
32extern bool tiles_hilited_cities;
33
34extern bool keyboardless_goto_button_down;
35extern bool keyboardless_goto_active;
36extern struct tile *keyboardless_goto_start_tile;
37
38void anchor_selection_rectangle(int canvas_x, int canvas_y);
39void update_selection_rectangle(float canvas_x, float canvas_y);
40void redraw_selection_rectangle(void);
41void cancel_selection_rectangle(void);
42
43bool is_city_hilited(struct city *pcity);
44
45void cancel_tile_hiliting(void);
46void toggle_tile_hilite(struct tile *ptile);
47
48void key_city_overlay(int canvas_x, int canvas_y);
49
50bool clipboard_copy_production(struct tile *ptile);
51void clipboard_paste_production(struct city *pcity);
52void upgrade_canvas_clipboard(void);
53
54void release_right_button(int canvas_x, int canvas_y, bool shift);
55
56void release_goto_button(int canvas_x, int canvas_y);
57void maybe_activate_keyboardless_goto(int canvas_x, int canvas_y);
58
59bool get_turn_done_button_state(void);
60bool can_end_turn(void);
61void scroll_mapview(enum direction8 gui_dir);
62void action_button_pressed(int canvas_x, int canvas_y,
63 enum quickselect_type qtype);
64void wakeup_button_pressed(int canvas_x, int canvas_y);
65void adjust_workers_button_pressed(int canvas_x, int canvas_y);
66void recenter_button_pressed(int canvas_x, int canvas_y);
67void update_turn_done_button_state(void);
68void update_line(int canvas_x, int canvas_y);
69void overview_update_line(int overview_x, int overview_y);
70
71void fill_tile_unit_list(const struct tile *ptile, struct unit **unit_list);
72
73extern struct city *city_workers_display;
74
75#ifdef __cplusplus
76}
77#endif /* __cplusplus */
78
79#endif /* FC__MAPCTRL_COMMON_H */
canvas_y
struct canvas int int canvas_y
Definition canvas_g.h:43
canvas_x
struct canvas int canvas_x
Definition canvas_g.h:43
control.h
quickselect_type
quickselect_type
Definition control.h:36
map.h
cancel_selection_rectangle
void cancel_selection_rectangle(void)
Definition mapctrl_common.c:288
update_line
void update_line(int canvas_x, int canvas_y)
Definition mapctrl_common.c:662
maybe_activate_keyboardless_goto
void maybe_activate_keyboardless_goto(int canvas_x, int canvas_y)
Definition mapctrl_common.c:504
adjust_workers_button_pressed
void adjust_workers_button_pressed(int canvas_x, int canvas_y)
Definition mapctrl_common.c:594
rbutton_down
bool rbutton_down
Definition mapctrl_common.c:55
rectangle_active
bool rectangle_active
Definition mapctrl_common.c:56
release_goto_button
void release_goto_button(int canvas_x, int canvas_y)
Definition mapctrl_common.c:484
tiles_hilited_cities
bool tiles_hilited_cities
Definition mapctrl_common.c:60
redraw_selection_rectangle
void redraw_selection_rectangle(void)
Definition mapctrl_common.c:278
recenter_button_pressed
void recenter_button_pressed(int canvas_x, int canvas_y)
Definition mapctrl_common.c:630
upgrade_canvas_clipboard
void upgrade_canvas_clipboard(void)
Definition mapctrl_common.c:466
update_turn_done_button_state
void update_turn_done_button_state(void)
Definition mapctrl_common.c:644
action_button_pressed
void action_button_pressed(int canvas_x, int canvas_y, enum quickselect_type qtype)
Definition mapctrl_common.c:567
wakeup_button_pressed
void wakeup_button_pressed(int canvas_x, int canvas_y)
Definition mapctrl_common.c:582
city_workers_display
struct city * city_workers_display
Definition mapctrl_common.c:74
get_turn_done_button_state
bool get_turn_done_button_state(void)
Definition mapctrl_common.c:519
scroll_mapview
void scroll_mapview(enum direction8 gui_dir)
Definition mapctrl_common.c:549
release_right_button
void release_right_button(int canvas_x, int canvas_y, bool shift)
Definition mapctrl_common.c:322
keyboardless_goto_button_down
bool keyboardless_goto_button_down
Definition mapctrl_common.c:69
key_city_overlay
void key_city_overlay(int canvas_x, int canvas_y)
Definition mapctrl_common.c:360
update_selection_rectangle
void update_selection_rectangle(float canvas_x, float canvas_y)
Definition mapctrl_common.c:201
can_end_turn
bool can_end_turn(void)
Definition mapctrl_common.c:528
overview_update_line
void overview_update_line(int overview_x, int overview_y)
Definition mapctrl_common.c:693
anchor_selection_rectangle
void anchor_selection_rectangle(int canvas_x, int canvas_y)
Definition mapctrl_common.c:87
cancel_tile_hiliting
void cancel_tile_hiliting(void)
Definition mapctrl_common.c:310
keyboardless_goto_active
bool keyboardless_goto_active
Definition mapctrl_common.c:70
clipboard_paste_production
void clipboard_paste_production(struct city *pcity)
Definition mapctrl_common.c:421
fill_tile_unit_list
void fill_tile_unit_list(const struct tile *ptile, struct unit **unit_list)
Definition mapctrl_common.c:764
clipboard_copy_production
bool clipboard_copy_production(struct tile *ptile)
Definition mapctrl_common.c:380
is_city_hilited
bool is_city_hilited(struct city *pcity)
Definition mapctrl_common.c:302
keyboardless_goto_start_tile
struct tile * keyboardless_goto_start_tile
Definition mapctrl_common.c:71
toggle_tile_hilite
void toggle_tile_hilite(struct tile *ptile)
Definition mapctrl_common.c:337
city
Definition city.h:309
tile
Definition tile.h:49
unit
Definition unit.h:138
support.h