Package horizons :: Package util :: Module buildingindexer :: Class BuildingIndex
[hide private]
[frames] | no frames]

Class BuildingIndex

source code

Indexes buildings around a tile to improve nearby building lookup speed. The code isn't particularly pretty for performance reasons.

Instance Methods [hide private]
 
__init__(self, coords, random) source code
 
_update(self) source code
 
get_buildings_in_range(self) source code
 
get_random_building_in_range(self) source code
 
get_num_buildings_in_range(self) source code