Freeciv-3.2
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
35extern bool keyboardless_goto_active;
37
42
43bool is_city_hilited(struct city *pcity);
44
45void cancel_tile_hiliting(void);
46void toggle_tile_hilite(struct tile *ptile);
47
49
50bool clipboard_copy_production(struct tile *ptile);
51void clipboard_paste_production(struct city *pcity);
53
54void release_right_button(int canvas_x, int canvas_y, bool shift);
55
58
60bool can_end_turn(void);
68void update_line(int canvas_x, int canvas_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 */
struct canvas int int canvas_y
Definition canvas_g.h:43
struct canvas int canvas_x
Definition canvas_g.h:43
char * incite_cost
Definition comments.c:75
quickselect_type
Definition control.h:37
void cancel_selection_rectangle(void)
void update_line(int canvas_x, int canvas_y)
void maybe_activate_keyboardless_goto(int canvas_x, int canvas_y)
void adjust_workers_button_pressed(int canvas_x, int canvas_y)
bool rbutton_down
bool rectangle_active
void release_goto_button(int canvas_x, int canvas_y)
bool tiles_hilited_cities
void redraw_selection_rectangle(void)
void recenter_button_pressed(int canvas_x, int canvas_y)
void upgrade_canvas_clipboard(void)
void update_turn_done_button_state(void)
void action_button_pressed(int canvas_x, int canvas_y, enum quickselect_type qtype)
void wakeup_button_pressed(int canvas_x, int canvas_y)
struct city * city_workers_display
bool get_turn_done_button_state(void)
void scroll_mapview(enum direction8 gui_dir)
void release_right_button(int canvas_x, int canvas_y, bool shift)
bool keyboardless_goto_button_down
void key_city_overlay(int canvas_x, int canvas_y)
void update_selection_rectangle(float canvas_x, float canvas_y)
bool can_end_turn(void)
void overview_update_line(int overview_x, int overview_y)
void anchor_selection_rectangle(int canvas_x, int canvas_y)
void cancel_tile_hiliting(void)
bool keyboardless_goto_active
void clipboard_paste_production(struct city *pcity)
void fill_tile_unit_list(const struct tile *ptile, struct unit **unit_list)
bool clipboard_copy_production(struct tile *ptile)
bool is_city_hilited(struct city *pcity)
struct tile * keyboardless_goto_start_tile
void toggle_tile_hilite(struct tile *ptile)
Definition city.h:320
Definition tile.h:50
Definition unit.h:138