32static const uint8_t MAX_COMPANIES = CompanyID::End().base();
46 static constexpr size_t DecayValueType(
CompanyID value) {
return value.base(); }
48 constexpr auto operator <=>(
const CompanyMask &)
const noexcept =
default;
Base for bit set wrapper.
static const uint MAX_LENGTH_PRESIDENT_NAME_CHARS
The maximum length of a president name in characters including '\0'.
static constexpr Owner OWNER_DEITY
The object is owned by a superuser / goal script.
static const uint MAX_LENGTH_COMPANY_NAME_CHARS
The maximum length of a company name in characters including '\0'.
CompanyCtrlAction
The action to do with CMD_COMPANY_CTRL.
@ CCA_NEW_AI
Create a new AI company.
@ CCA_DELETE
Delete a company.
@ CCA_NEW
Create a new company.
@ CCA_END
Sentinel for end.
static constexpr CompanyID COMPANY_SPECTATOR
The client is spectating.
static constexpr Owner OWNER_END
Last + 1 owner.
CompanyAllowListCtrlAction
The action to do with CMD_COMPANY_ALLOW_LIST_CTRL.
@ CALCA_END
Sentinel for end.
@ CALCA_REMOVE
Remove a public key.
@ CALCA_ADD
Create a public key.
static constexpr CompanyID COMPANY_NEW_COMPANY
The client wants a new company.
static const uint MAX_HISTORY_QUARTERS
The maximum number of quarters kept as performance's history.
static constexpr Owner OWNER_TOWN
A town owns the tile, or a town is expanding.
uint32_t CompanyManagerFace
Company manager face bits, info see in company_manager_face.h.
static constexpr Owner OWNER_BEGIN
First owner.
static constexpr CompanyID COMPANY_INACTIVE_CLIENT
The client is joining.
static constexpr Owner OWNER_NONE
The tile has no ownership.
static constexpr Owner INVALID_OWNER
An invalid owner.
static constexpr Owner OWNER_WATER
The tile/execution is done by "water".
static const uint MIN_COMPETITORS_INTERVAL
The minimum interval (in minutes) between competitors.
CompanyRemoveReason
The reason why the company was removed.
@ CRR_BANKRUPT
The company went belly-up.
@ CRR_END
Sentinel for end.
@ CRR_AUTOCLEAN
The company is removed due to autoclean.
@ CRR_NONE
Dummy reason for actions that don't need one.
@ CRR_MANUAL
The company is manually removed.
static const uint MAX_COMPETITORS_INTERVAL
The maximum interval (in minutes) between competitors.
Type (helpers) for enums.
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle,...