70 if (
nullptr == pcity) {
92 static_cast<int>(y), tile_x, tile_y);
93 x +=
static_cast<double>(dx) / num;
94 y +=
static_cast<double>(dy) / num;
102 static_cast<int>(y));
115 const struct tile *ptile)
bool base_city_can_work_tile(const struct player *restriction, 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 ...
struct tile * city_tile(const struct city *pcity)
Return the tile location of the city.
struct player * client_player()
Either controlling or observing.
bool client_is_observer()
Returns whether client is observer.
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.
enum direction8 gui_to_map_dir(enum direction8 gui_dir)
Convert the given GUI direction into a map direction.
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 ...
struct tile * client_city_tile(const struct city *pcity)
Client variant of city_tile().
struct tile * map_pos_to_tile(const struct civ_map *nmap, int map_x, int map_y)
Return the tile for the given cartesian (map) position.
enum direction8 dir_ccw(enum direction8 dir)
Returns the next direction counter-clock-wise.
void base_map_distance_vector(int *dx, int *dy, int x0dv, int y0dv, int x1dv, int y1dv)
Finds the difference between the two (unnormalized) positions, in cartesian (map) coordinates.
#define whole_map_iterate(_map, _tile)
#define whole_map_iterate_end
#define index_to_map_pos(pmap_x, pmap_y, mindex)
enum known_type tile_get_known(const struct tile *ptile, const struct player *pplayer)
Return a known_type enumeration value for the tile.
#define tile_worked(_tile)
bool tileset_is_isometric(const struct tileset *t)
Return whether the current tileset is isometric.