OpenTTD Source 20251213-master-g1091fa6071
signs.cpp File Reference

Handling of signs. More...

#include "stdafx.h"
#include "landscape.h"
#include "company_func.h"
#include "signs_base.h"
#include "signs_func.h"
#include "strings_func.h"
#include "core/pool_func.hpp"
#include "viewport_kdtree.h"
#include "table/strings.h"
#include "safeguards.h"

Go to the source code of this file.

Functions

void UpdateAllSignVirtCoords ()
 Update the coordinates of all signs.
 
bool CompanyCanEditSign (const Sign *si)
 Check if the current company can rename or move a given sign.
 

Variables

SignPool _sign_pool ("Sign")
 Initialize the sign-pool.
 

Detailed Description

Handling of signs.

Definition in file signs.cpp.

Function Documentation

◆ CompanyCanEditSign()

bool CompanyCanEditSign ( const Sign si)

Check if the current company can rename or move a given sign.

Parameters
*siThe sign in question.
Returns
true if the sign can be renamed or moved, else false.

Definition at line 62 of file signs.cpp.

References _current_company, and OWNER_DEITY.

Referenced by CmdMoveSign(), CmdRenameSign(), and HandleClickOnSign().

◆ UpdateAllSignVirtCoords()

void UpdateAllSignVirtCoords ( )

Update the coordinates of all signs.

Definition at line 50 of file signs.cpp.

References Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem<&_sign_pool >::Iterate().

Referenced by UpdateAllVirtCoords().