MCPcopy Create free account

hub / github.com/OpenTTD/OpenTTD / functions

Functions16,191 in github.com/OpenTTD/OpenTTD

↓ 37 callersMethodTotalCount
* Returns total count of cargo at the station, including * cargo which is already reserved for loading. * @return Total cargo count. */
src/station_base.h:361
↓ 37 callersFunctionVpStartPlaceSizing
highlighting tiles while only going over them with the mouse */
src/viewport.cpp:2798
↓ 37 callersFunctionbasic_json
@brief create an empty value with a given type @sa https://json.nlohmann.me/api/basic_json/basic_json/
src/3rdparty/nlohmann/json.hpp:20117
↓ 37 callersMethodend
src/3rdparty/fmt/ranges.h:764
↓ 37 callersFunctionsq_pushinteger
src/3rdparty/squirrel/squirrel/sqapi.cpp:218
↓ 37 callersFunctionto_string
@brief return a string representation of the JSON pointer @sa https://json.nlohmann.me/api/json_pointer/to_string/
src/3rdparty/nlohmann/json.hpp:13873
↓ 36 callersFunctionAddStringForMapping
* Record a static StringID for getting translated later. * @param source Source grf-local GRFStringID. * @param func Function to call to set the map
src/newgrf/newgrf_stringmapping.cpp:42
↓ 36 callersMethodGetByteOffset
src/core/utf8.hpp:56
↓ 36 callersFunctionGetConfig
src/script/script_gui.cpp:48
↓ 36 callersMethodGetCount
* Gets the number of elements in the list * @return the number of elements */
src/widget_type.h:737
↓ 36 callersFunctionGetHouseType
* Get the type of this house, which is an index into the house spec array * @param t the tile * @pre IsTileType(t, MP_HOUSE) * @return house type
src/town_map.h:60
↓ 36 callersFunctionGetParamMaxValue
* Get some number that is suitable for string size computations. * @param max_value The biggest value which shall be displayed. * F
src/strings.cpp:236
↓ 36 callersFunctionGetSignalType
src/rail_map.h:292
↓ 36 callersMethodGetType
* Return the type of the setting. * @return type of setting */
src/settings.cpp:911
↓ 36 callersFunctionIsRailStationTile
* Is this tile a station tile and a rail station? * @param t the tile to get the information from * @return true if and only if the tile is a rail s
src/station_map.h:102
↓ 36 callersMethodRecv_uint32
* Read a 32 bits integer from the packet. * @return The read data. */
src/network/core/packet.cpp:347
↓ 36 callersFunctionSetMatrixDataTip
* Widget part function for setting the data and tooltip of WWT_MATRIX widgets * @param cols Number of columns. \c 0 means to use draw columns with wi
src/widget_type.h:1311
↓ 36 callersFunctionStrStartsWithIgnoreCase
* Check whether the given string starts with the given prefix, ignoring case. * @param str The string to look at. * @param prefix The prefix to l
src/string.cpp:257
↓ 36 callersMethoddata
src/3rdparty/nlohmann/json.hpp:23499
↓ 35 callersFunctionGetAnimationFrame
* Get the current animation frame * @param t the tile * @pre IsTileType(t, MP_HOUSE) || IsTileType(t, MP_OBJECT) || IsTileType(t, MP_INDUSTRY) || Is
src/tile_map.h:250
↓ 35 callersFunctionGetRoadTypeTram
src/road_map.h:153
↓ 35 callersFunctionGetTileTrackStatus
* Returns information about trackdirs and signal states. * If there is any trackbit at 'side', return all trackdirbits. * For TRANSPORT_ROAD, return
src/landscape.cpp:560
↓ 35 callersFunctionIsBridgeAbove
* checks if a bridge is set above the ground of this tile * @param t The tile to analyze * @return true if a bridge is detected above */
src/bridge_map.h:45
↓ 35 callersMethodSendError
* Send an error to the client, and close its connection. * @param error The error to disconnect for. * @param reason In case of kicking a client, sp
src/network/network_server.cpp:359
↓ 35 callersFunctionTrackdirToExitdir
* Maps a trackdir to the (4-way) direction the tile is exited when following * that trackdir. * * For the diagonal directions these are the same di
src/track_func.h:439
↓ 35 callersFunctionfe_sq
Precondition ------------- |f0|, |f2|, |f4|, |f6|, |f8| < 1.65 * 2^26 |f1|, |f3|, |f5|, |f7|, |f9| < 1.65 * 2^25 Note: we could use fe_mul() for
src/3rdparty/monocypher/monocypher.cpp:1281
↓ 34 callersFunctionGetCargoTranslation
* Translate a GRF-local cargo slot/bitnum into a CargoType. * @param cargo GRF-local cargo slot/bitnum. * @param grffile Originating GRF file. *
src/newgrf_cargo.cpp:80
↓ 34 callersFunctionGetPrice
* Determine a certain price * @param index Price base * @param cost_factor Price factor * @param grf_file NewGRF to use local price multipliers fro
src/economy.cpp:949
↓ 34 callersFunctionNWidgetFunction
* Obtain a nested widget (sub)tree from an external source. * @param func_ptr Pointer to function that returns the tree. * @ingroup NestedWidgetPart
src/widget_type.h:1448
↓ 34 callersFunctionRailVehInfo
src/engine_base.h:246
↓ 34 callersMethodSkip
src/core/string_consumer.cpp:97
↓ 34 callersFunctionSlCopy
* Copy a list of SL_VARs to/from a savegame. * These entries are copied as-is, and you as caller have to make sure things * like length-fields are c
src/saveload/saveload.cpp:1150
↓ 34 callersFunctionStrCompareIgnoreCase
* Compares two string( view)s, while ignoring the case of the characters. * @param str1 The first string. * @param str2 The second string. * @retur
src/string.cpp:310
↓ 34 callersFunctionis_object
@brief return whether value is an object @sa https://json.nlohmann.me/api/basic_json/is_object/
src/3rdparty/nlohmann/json.hpp:20659
↓ 34 callersFunctionwrite
src/3rdparty/fmt/chrono.h:422
↓ 33 callersMethodAddItem
src/script/api/script_list.cpp:425
↓ 33 callersFunctionGetTileZ
* Get bottom height of the tile * @param tile Tile to compute height of * @return Minimum height of the tile */
src/tile_map.cpp:116
↓ 33 callersFunctionIsLevelCrossingTile
* Return whether a tile is a level crossing tile. * @param t Tile to query. * @return True if level crossing tile. */
src/road_map.h:79
↓ 33 callersFunctionfill_n
src/3rdparty/fmt/format.h:520
↓ 32 callersFunctionDelta
src/core/math_func.hpp:234
↓ 32 callersMethodGetGroup
* Get the group with the given name. * @param name name of the group to find. * @return The requested group or \c nullptr if not found. */
src/ini_load.cpp:118
↓ 32 callersMethodGetScrolledItemFromWidget
src/widget_type.h:894
↓ 32 callersFunctionGetStringPtr
src/strings.cpp:313
↓ 32 callersFunctionGetTypeName
src/3rdparty/squirrel/squirrel/sqobject.cpp:49
↓ 32 callersFunctionGetWindowClassForVehicleType
* Get WindowClass for vehicle list of given vehicle type * @param vt vehicle type to check * @return corresponding window class * @note works only
src/vehicle_gui.h:97
↓ 32 callersMethodIsArticulatedPart
* Check if the vehicle is an articulated part of an engine. * @return Returns true if the vehicle is an articulated part. */
src/vehicle_base.h:922
↓ 32 callersFunctionIsDriveThroughStopTile
* Is tile \a t a drive through road stop station or waypoint? * @param t Tile to check * @return \c true if the tile is a station tile and a drive t
src/station_map.h:276
↓ 32 callersMethodNextShared
* Get the next vehicle of the shared vehicle chain. * @return the next shared vehicle or nullptr when there isn't a next vehicle. */
src/vehicle_base.h:681
↓ 32 callersMethodOrders
src/vehicle_base.h:662
↓ 32 callersFunctionPackVelocity
* Pack velocity and vehicle type for use with SCC_VELOCITY string parameter. * @param speed Display speed for parameter. * @param type Type of vehic
src/strings_func.h:83
↓ 32 callersFunctionReverseTrackdir
* Maps a trackdir to the reverse trackdir. * * Returns the reverse trackdir of a Trackdir value. The reverse trackdir * is the same track with the
src/track_func.h:247
↓ 31 callersMethodClose
* Hide the window and all its child windows, and mark them for a later deletion. */
src/window.cpp:1104
↓ 31 callersFunctionDisableGrf
* Disable a GRF * @param message Error message or STR_NULL. * @param config GRFConfig to disable, nullptr for current. * @return Error message of t
src/newgrf.cpp:135
↓ 31 callersFunctionErrorUnknownCallbackResult
* Record that a NewGRF returned an unknown/invalid callback result. * Also show an error to the user. * @param grfid ID of the NewGRF causing the pr
src/newgrf_commons.cpp:517
↓ 31 callersMethodGetIndex
src/widget_type.h:180
↓ 31 callersFunctionGetRoadBits
* Get the present road bits for a specific road type. * @param t The tile to query. * @param rt Road type. * @pre IsNormalRoad(t) * @return The p
src/road_map.h:112
↓ 31 callersFunctionGetTropicZone
* Get the tropic zone * @param tile the tile to get the zone of * @pre tile < Map::Size() * @return the zone type */
src/tile_map.h:238
↓ 31 callersMethodPutChar
* Append 8-bit char. */
src/core/string_builder.cpp:105
↓ 31 callersMethodReadExtendedByte
* Read a single Extended Byte (8 or 16 bits). * @return Value read from buffer. */
src/newgrf/newgrf_bytereader.h:56
↓ 31 callersFunctionStrEndsWithIgnoreCase
* Check whether the given string ends with the given suffix, ignoring case. * @param str The string to look at. * @param suffix The suffix to loo
src/string.cpp:297
↓ 31 callersFunctionformat_append
src/core/format.hpp:49
↓ 30 callersFunctionDoClearSquare
src/landscape.cpp:536
↓ 30 callersMethodGet
src/3rdparty/squirrel/squirrel/sqvm.cpp:1230
↓ 30 callersFunctionGetNearbyTile
* Get the tile at the given offset. * @param parameter The NewGRF "encoded" offset. * @param tile The tile to base the offset from. * @param signed
src/newgrf_commons.cpp:411
↓ 30 callersFunctionGetTileRailType
* Return the rail type of tile, or INVALID_RAILTYPE if this is no rail tile. */
src/rail.cpp:37
↓ 30 callersMethodHasArticulatedPart
* Check if an engine has an articulated part. * @return True if the engine has an articulated part. */
src/vehicle_base.h:931
↓ 30 callersFunctionHasSignalOnTrackdir
* Checks for the presence of signals along the given trackdir on the given * rail tile. * * Along meaning if you are currently driving on the given
src/rail_map.h:425
↓ 30 callersFunctionIsInvisibilitySet
* Check if the invisibility option bit is set * and if we aren't in the game menu (there's never transparency) * * @param to the structure which in
src/transparency.h:61
↓ 30 callersFunctionIsRailDepotTile
* Is this tile rail tile and a rail depot? * @param t the tile to get the information from * @return true if and only if the tile is a rail depot *
src/rail_map.h:105
↓ 30 callersFunctionRoadTypeIsTram
src/road.h:195
↓ 30 callersMethodSetString
* Set string of the nested widget. * @param string The new string. */
src/widget.cpp:1182
↓ 30 callersMethodSkipBytes
* Skip \a n bytes ahead in the file. * @param n Number of bytes to skip reading. */
src/random_access_file.cpp:163
↓ 30 callersFunctionTrackToTrackBits
* Maps a Track to the corresponding TrackBits value * @param track the track to convert * @return the converted TrackBits value of the track */
src/track_func.h:77
↓ 30 callersMethoddata
Returns a pointer to the output buffer content. No terminating null character is appended.
src/3rdparty/fmt/format.h:4060
↓ 30 callersMethodkey
src/3rdparty/nlohmann/json.hpp:7338
↓ 29 callersFunctionFormatArrayAsHex
* Format a byte array into a continuous hex string. * @param data Array to format * @return Converted string. */
src/string.cpp:77
↓ 29 callersFunctionGetCustomRoadSprite
* Get the sprite to draw for the given tile. * @param rti The road type data (spec). * @param tile The tile to get the sprite for. * @param rtsg Th
src/newgrf_roadtype.cpp:149
↓ 29 callersFunctionGetOtherTunnelBridgeEnd
* Determines type of the wormhole and returns its other end * @param t one end * @pre IsTileType(t, MP_TUNNELBRIDGE) * @return other end */
src/tunnelbridge_map.h:78
↓ 29 callersFunctionHasStationRail
* Has this station tile a rail? In other words, is this station * tile a rail station or rail waypoint? * @param t the tile to check * @pre IsTileT
src/station_map.h:135
↓ 29 callersFunctionIsLevelCrossing
* Return whether a tile is a level crossing. * @param t Tile to query. * @pre IsTileType(t, MP_ROAD) * @return True if level crossing. */
src/road_map.h:69
↓ 29 callersFunctionIsTileFlat
* Check if a given tile is flat * @param tile Tile to check * @param h If not \c nullptr, pointer to storage of z height (only if tile is flat) * @
src/tile_map.cpp:95
↓ 29 callersFunctionScrollMainWindowToTile
* Scrolls the viewport of the main window to a given location. * @param tile Desired tile to center on. * @param instant Jump to the location ins
src/viewport.cpp:2592
↓ 29 callersMethodSetDirty
Mark the linkgraph dirty to be rebuilt next time Draw() is called. */
src/linkgraph/linkgraph_gui.h:68
↓ 29 callersFunctionShowDropDownMenu
* Show a dropdown menu window near a widget of the parent window. * The result code of the items is their index in the \a strings list. * @param w
src/dropdown.cpp:458
↓ 29 callersFunctionconst_check
src/3rdparty/fmt/base.h:381
↓ 29 callersMethodout
src/3rdparty/fmt/chrono.h:1316
↓ 28 callersMethodCount
src/newgrf_object.cpp:44
↓ 28 callersMethodGetDepotOrderType
What caused us going to the depot? */
src/order_base.h:150
↓ 28 callersMethodGetItem
* Get the item with the given name. * @param name name of the item to find. * @return the requested item or nullptr if not found. */
src/ini_load.cpp:51
↓ 28 callersFunctionGetMainWindow
* Get the main window, i.e. FindWindowById(WC_MAIN_WINDOW, 0). * If the main window is not available, this function will trigger an assert. * @retur
src/window.cpp:1182
↓ 28 callersFunctionGetStringHeight
* Calculates height of string (in pixels). The string is changed to a multiline string if needed. * @param str string to check * @param maxw maximum
src/gfx.cpp:715
↓ 28 callersMethodGetVisibleRangeIterators
src/widget_type.h:875
↓ 28 callersMethodIsEmpty
src/station.cpp:570
↓ 28 callersMethodIsValid
* Check whether the header is a valid header for OpenTTD. * @return true iff the header is deemed valid. */
src/strings.cpp:2017
↓ 28 callersMethodOrderGetSel
* Return the memorised selected order. * @return the memorised order if it is a valid one * else return the number of orders */
src/order_gui.cpp:550
↓ 28 callersMethodToGroupID
src/vehiclelist.h:44
↓ 28 callersFunctionUtf8StringLength
* Get the length of an UTF-8 encoded string in number of characters * and thus not the number of bytes that the encoded string contains. * @param s
src/string.cpp:349
↓ 28 callersMethodappend
src/3rdparty/fmt/base.h:1801
↓ 28 callersMethodget
src/3rdparty/catch2/catch.hpp:12437
↓ 28 callersFunctionget_token_string
return the last read token (for errors only). Will never contain EOF (an arbitrary value that is not a valid char value, often -1), because 255 may l
src/3rdparty/nlohmann/json.hpp:8820
← previousnext →301–400 of 16,191, ranked by callers