MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsHidden

Method IsHidden

src/engine_base.h:135–138  ·  view source on GitHub ↗

* Check whether the engine is hidden in the GUI for the given company. * @param c Company to check. * @return \c true iff the engine is hidden in the GUI for the given company. */

Source from the content-addressed store, hash-verified

133 * @return \c true iff the engine is hidden in the GUI for the given company.
134 */
135 inline bool IsHidden(CompanyID c) const
136 {
137 return c < MAX_COMPANIES && this->company_hidden.Test(c);
138 }
139
140 /**
141 * Get the last display variant for an engine.

Callers 3

IsVariantHiddenMethod · 0.95
OnClickMethod · 0.80
GetWidgetStringMethod · 0.80

Calls 1

TestMethod · 0.80

Tested by

no test coverage detected