19#include "table/strings.h"
42 if (this->sign.kdtree_valid) _viewport_sign_kdtree.Remove(ViewportSignKdtreeItem::MakeSign(this->
index));
44 this->sign.UpdatePosition(pt.
x, pt.
y - 6 * ZOOM_BASE,
GetString(STR_WHITE_SIGN, this->
index));
46 _viewport_sign_kdtree.Insert(ViewportSignKdtreeItem::MakeSign(this->
index));
53 si->UpdateVirtCoord();
CompanyID _current_company
Company currently doing an action.
Functions related to companies.
static constexpr Owner OWNER_DEITY
The object is owned by a superuser / goal script.
Functions related to OTTD's landscape.
Point RemapCoords(int x, int y, int z)
Map 3D world or tile coordinate to equivalent 2D coordinate as used in the viewports and smallmap.
#define Point
Macro that prevents name conflicts between included headers.
Some methods of Pool are placed here in order to reduce compilation time and binary size.
#define INSTANTIATE_POOL_METHODS(name)
Force instantiation of pool methods so we don't get linker errors.
A number of safeguards to prevent using unsafe methods.
bool CompanyCanEditSign(const Sign *si)
Check if the current company can rename or move a given sign.
SignPool _sign_pool("Sign")
Initialize the sign-pool.
void UpdateAllSignVirtCoords()
Update the coordinates of all signs.
Functions related to signs.
void DeleteRenameSignWindow(SignID sign)
Close the sign window associated with the given sign.
Definition of base types and functions in a cross-platform compatible way.
std::string GetString(StringID string)
Resolve the given StringID into a std::string with formatting but no parameters.
Functions related to OTTD's strings.
static Pool::IterateWrapper< Sign > Iterate(size_t from=0)
static bool CleaningPool()
void UpdateVirtCoord()
Update the coordinate of one sign.
Declarations for accessing the k-d tree of viewports.