Freeciv21
Develop your civilization from humble roots to a global empire
climap.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3  part of Freeciv21. Freeciv21 is free software: you can redistribute it
4  and/or modify it under the terms of the GNU General Public License as
5  published by the Free Software Foundation, either version 3 of the
6  License, or (at your option) any later version. You should have received
7  a copy of the GNU General Public License along with Freeciv21. If not,
8  see https://www.gnu.org/licenses/.
9 **************************************************************************/
10 
11 #pragma once
12 
13 // common
14 #include "fc_types.h" // enum direction8, struct tile
15 #include "tile.h" // known_type
16 
17 enum known_type client_tile_get_known(const struct tile *ptile);
18 
19 enum direction8 gui_to_map_dir(enum direction8 gui_dir);
20 
21 struct tile *client_city_tile(const struct city *pcity);
22 bool client_city_can_work_tile(const struct city *pcity,
23  const struct tile *ptile);
enum known_type client_tile_get_known(const struct tile *ptile)
A tile's "known" field is used by the server to store whether each player knows the tile.
Definition: climap.cpp:29
enum direction8 gui_to_map_dir(enum direction8 gui_dir)
Convert the given GUI direction into a map direction.
Definition: climap.cpp:50
bool client_city_can_work_tile(const struct city *pcity, const struct tile *ptile)
Returns TRUE when a tile is available to be worked, or the city itself is currently working the tile ...
Definition: climap.cpp:114
struct tile * client_city_tile(const struct city *pcity)
Client variant of city_tile().
Definition: climap.cpp:64
Definition: city.h:291
Definition: tile.h:42
known_type
Definition: tile.h:28