OpenTTD Source 20241224-master-gf74b0cf984
town_kdtree.h File Reference

Declarations for accessing the k-d tree of towns. More...

#include "core/kdtree.hpp"
#include "town.h"

Go to the source code of this file.

Data Structures

struct  Kdtree_TownXYFunc
 

Typedefs

using TownKdtree = Kdtree< TownID, Kdtree_TownXYFunc, uint16_t, int >
 

Variables

TownKdtree _town_kdtree
 
TownKdtree _town_local_authority_kdtree
 

Detailed Description

Declarations for accessing the k-d tree of towns.

Definition in file town_kdtree.h.

Typedef Documentation

◆ TownKdtree

using TownKdtree = Kdtree<TownID, Kdtree_TownXYFunc, uint16_t, int>

Definition at line 23 of file town_kdtree.h.

Variable Documentation

◆ _town_kdtree

TownKdtree _town_kdtree
extern

Definition at line 71 of file town_cmd.cpp.

◆ _town_local_authority_kdtree

TownKdtree _town_local_authority_kdtree
extern

Definition at line 57 of file town_gui.cpp.