Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenXcom/OpenXcom
/ functions
Functions
4,163 in github.com/OpenXcom/OpenXcom
⨍
Functions
4,163
◇
Types & classes
1,490
↓ 4 callers
Method
canTargetTile
* Checks for a tile part available for targeting and what particular voxel. * @param originVoxel Voxel of trace origin (gun's barrel). * @param tile
src/Battlescape/TileEngine.cpp:630
↓ 4 callers
Method
cartToPolar
* Converts a cartesian point into a polar point for * mapping a globe click onto the flat world map. * @param x X position of the cartesian point.
src/Geoscape/Globe.cpp:449
↓ 4 callers
Function
caseInsensitiveFolder
* Takes a path and tries to find it based on the * system's case-sensitivity. * @param base Base unaltered path. * @param path Full path to check f
src/Engine/CrossPlatform.cpp:351
↓ 4 callers
Method
checkReactionFire
* Checks if a sniper from the opposing faction sees this unit. The unit with the highest reaction score will be compared with the current unit's react
src/Battlescape/TileEngine.cpp:775
↓ 4 callers
Method
checkReservedTU
* Checks against reserved time units. * @param bu Pointer to the unit. * @param tu Number of time units to check. * @param justChecking True to sup
src/Battlescape/BattlescapeGame.cpp:950
↓ 4 callers
Method
choose
* Select a random choice from among the contents. * This MUST be called on non-empty objects. * Each time this is called, the returned value can be
src/Savegame/WeightedOptions.cpp:32
↓ 4 callers
Method
connect
* Connects the node. This will connect the node to the previous node along the path to @a target * and update the pathfinding information. * @param
src/Battlescape/PathfindingNode.cpp:108
↓ 4 callers
Function
create
* Sets up the options by creating their OptionInfo metadata. */
src/Engine/Options.cpp:57
↓ 4 callers
Method
debug
* Shows a debug message in the topleft corner. * @param message Debug message. */
src/Battlescape/BattlescapeState.cpp:1437
↓ 4 callers
Method
dequeuePath
* Dequeues the next path direction. Ie returns the direction and removes it from queue. * @return Direction where the unit needs to go next, -1 if it
src/Battlescape/Pathfinding.cpp:532
↓ 4 callers
Method
deriveRank
* Derive the numeric unit rank from the string rank * (for soldier units). */
src/Savegame/BattleUnit.cpp:2512
↓ 4 callers
Method
destroy
* Destroy a part on this tile. We first remove the old object, then replace it with the destroyed one. * This is because the object type of the old a
src/Savegame/Tile.cpp:444
↓ 4 callers
Method
distanceSq
* Calculates the distance squared between 2 points. No sqrt(), not floating point math, and sometimes it's all you need. * @param pos1 Position of fi
src/Battlescape/TileEngine.cpp:2407
↓ 4 callers
Function
encode
src/lodepng.cpp:6193
↓ 4 callers
Function
filter
src/lodepng.cpp:5231
↓ 4 callers
Function
func_mute
MAIN FUNCTION - instantly stops music
src/Engine/Adlib/adlplayer.cpp:519
↓ 4 callers
Method
getAccuracyAuto
* Gets the item's accuracy for autoshots. * @return The autoshot accuracy. */
src/Ruleset/RuleItem.cpp:383
↓ 4 callers
Method
getAliens
* Gets the number of captured live aliens this facility * can contain. * @return The number of aliens. */
src/Ruleset/RuleBaseFacility.cpp:245
↓ 4 callers
Method
getBulletSpeed
* Gets the speed at which this bullet travels. * @return The speed. */
src/Ruleset/RuleItem.cpp:762
↓ 4 callers
Method
getBulletSprite
* Gets the item's bullet sprite reference. * @return The sprite reference. */
src/Ruleset/RuleItem.cpp:329
↓ 4 callers
Method
getColors
* Provides access to colors contained in the palette. * @param offset Offset to a specific color. * @return Pointer to the requested SDL_Color. */
src/Engine/Palette.cpp:88
↓ 4 callers
Method
getCountryFunding
* Adds up the monthly funding of all the countries. * @return Total funding. */
src/Savegame/SavedGame.cpp:773
↓ 4 callers
Method
getCurrentFrame
* Gets the current frame in the animation. * @return frame number. */
src/Battlescape/Explosion.cpp:74
↓ 4 callers
Method
getDataset
* Gets the dataset this object belongs to. * @return Pointer to MapDataSet. */
src/Ruleset/MapData.cpp:56
↓ 4 callers
Method
getDistance
* Returns the great circle distance to another * target on the globe. * @param target Pointer to other target. * @returns Distance in radian. */
src/Savegame/Target.cpp:153
↓ 4 callers
Method
getDropoff
* Gets the accuracy dropoff value of this weapon. * @return The per-tile dropoff. */
src/Ruleset/RuleItem.cpp:753
↓ 4 callers
Method
getEquipmentLayout
* Returns the list of EquipmentLayoutItems of a soldier. * @return Pointer to the EquipmentLayoutItem list. */
src/Savegame/Soldier.cpp:457
↓ 4 callers
Method
getFlammable
* Gets the amount of flammable (how flammable this object is). * @return The amount of flammable. */
src/Ruleset/MapData.cpp:413
↓ 4 callers
Method
getFootstepSound
* Gets the tile's footstep sound. * @param tileBelow * @return sound ID */
src/Savegame/Tile.cpp:297
↓ 4 callers
Method
getHyperDetected
* Returns whether this UFO has been detected by hyper-wave. * @return Detection status. */
src/Savegame/Ufo.cpp:616
↓ 4 callers
Method
getId
* Returns the craft's unique ID. Each craft * can be identified by its type and ID. * @return Unique ID. */
src/Savegame/Craft.cpp:284
↓ 4 callers
Method
getId
* Gets the item's id. * @return The item's id. */
src/Savegame/BattleItem.cpp:408
↓ 4 callers
Method
getInterceptionOrder
* Gets interception order. * @return Interception order. */
src/Savegame/Craft.cpp:899
↓ 4 callers
Method
getInventory
* Get the pointer to the vector of inventory items. * @return pointer to vector. */
src/Savegame/BattleUnit.cpp:1563
↓ 4 callers
Method
getKneelReserved
* Gets the kneel reservation setting. * @return Kneel reservation setting. */
src/Battlescape/BattlescapeGame.cpp:2007
↓ 4 callers
Method
getLightSource
* Gets the amount of light the object is emitting. * @return The amount of light emitted. */
src/Ruleset/MapData.cpp:373
↓ 4 callers
Method
getManufactureTime
* Gets the time needed to manufacture one object. * @return The time needed to manufacture one object (in man/hour). */
src/Ruleset/RuleManufacture.cpp:102
↓ 4 callers
Method
getMarkerColor
* Get the marker color on this tile. * @return color */
src/Savegame/Tile.cpp:830
↓ 4 callers
Method
getMeleeAttackSound
* What sound does this weapon make when you swing this at someone? * @return The weapon's melee attack sound. */
src/Ruleset/RuleItem.cpp:844
↓ 4 callers
Method
getModSprite
* For user-defined UFOs, use a surface for the "preview" image. * @return The name of the surface that represents this UFO. */
src/Ruleset/RuleUfo.cpp:219
↓ 4 callers
Method
getName
* Returns the name of the city. * @return The city's name. */
src/Ruleset/City.cpp:58
↓ 4 callers
Method
getObjectType
* Gets the type of object. * @return The object type (0-3). */
src/Ruleset/MapData.cpp:246
↓ 4 callers
Method
getPatrolNode
* Finds a fitting node where a unit can patrol to. * @param scout Is the unit scouting? * @param unit Pointer to the unit (to get its position). *
src/Savegame/SavedBattleGame.cpp:1138
↓ 4 callers
Method
getPreviousOwner
* Gets the item's previous owner. * @return Pointer to Battleunit. */
src/Savegame/BattleItem.cpp:217
↓ 4 callers
Method
getPriority
* Get the priority of this spawnpoint. * @return priority */
src/Savegame/Node.cpp:126
↓ 4 callers
Method
getRace
* Gets the alien's race. * @return The alien's race. */
src/Ruleset/Unit.cpp:147
↓ 4 callers
Method
getRelativeYMouse
* Returns the relative X position of the * mouse cursor relative to the surface that * triggered the action, corrected for screen scaling. * @retur
src/Engine/Action.cpp:169
↓ 4 callers
Method
getRentCost
* Gets the cost of rent for a month. * @return The cost. */
src/Ruleset/RuleCraft.cpp:213
↓ 4 callers
Method
getScroll
* get the scroll depth. * @return scroll depth. */
src/Interface/TextList.cpp:1121
↓ 4 callers
Method
getSlots
* Gets all the slots in the inventory section. * @return The list of slots. */
src/Ruleset/RuleInventory.cpp:124
↓ 4 callers
Method
getSoldier
* Get a pointer to the soldier being transferred. * @return a pointer to the soldier being moved. */
src/Savegame/Transfer.cpp:320
↓ 4 callers
Method
getSoldier
* Returns pointer to the Soldier given it's unique ID. * @param id A soldier's unique id. * @return Pointer to Soldier. */
src/Savegame/SavedGame.cpp:1262
↓ 4 callers
Method
getSoldier
* Returns the info about a specific unit. * @param name Unit name. * @return Rules for the units. */
src/Ruleset/Ruleset.cpp:826
↓ 4 callers
Method
getSound
* Returns a specific sound from the resource set. * @param set Name of the sound set. * @param sound ID of the sound. * @return Pointer to the soun
src/Resource/ResourcePack.cpp:217
↓ 4 callers
Method
getSpaceUsed
* Returns the amount of space in use by * soldiers and vehicles. * @return Space used. */
src/Savegame/Craft.cpp:839
↓ 4 callers
Method
getSprites
* Gets the list of sprites defined my this mod. * @return The list of sprites. */
src/Ruleset/ExtraSprites.cpp:59
↓ 4 callers
Method
getStatCaps
* Gets the stat caps. * @return The stat caps. */
src/Ruleset/RuleSoldier.cpp:89
↓ 4 callers
Method
getStatStrings
* Gets the list of StatStrings. * @return The list of StatStrings. */
src/Ruleset/Ruleset.cpp:1188
↓ 4 callers
Method
getStrafeMove
* Gets the strafe move setting. * @return Strafe move. */
src/Battlescape/Pathfinding.cpp:1130
↓ 4 callers
Method
getTUAimed
* Gets the item's time unit percentage for aimed shots. * @return The aimed shot TU percentage. */
src/Ruleset/RuleItem.cpp:428
↓ 4 callers
Method
getTUAuto
* Gets the item's time unit percentage for autoshots. * @return The autoshot TU percentage. */
src/Ruleset/RuleItem.cpp:419
↓ 4 callers
Method
getTextWrapping
* Returns the wrapping rules to use for rendering * text in this language. * @return Text wrapping. */
src/Engine/Language.cpp:583
↓ 4 callers
Method
getTextures
* Gets the array of globe texture IDs this terrain is loaded on. * @return Pointer to the array of texture IDs. */
src/Ruleset/RuleTerrain.cpp:213
↓ 4 callers
Method
getTooltip
* Returns the help description of this surface, * for example for showing in tooltips. * @return String ID. */
src/Engine/Surface.cpp:838
↓ 4 callers
Method
getTotalSoldiers
* Returns the total amount of soldiers contained * in the base. * @return Number of soldiers. */
src/Savegame/Base.cpp:448
↓ 4 callers
Method
getTotalTUCost
Gets _totalTUCost; finds out whether we can hike somewhere in this turn or not.
src/Battlescape/Pathfinding.h:102
↓ 4 callers
Method
getType
* Get unit type. * @return unit type. */
src/Savegame/BattleUnit.cpp:2319
↓ 4 callers
Method
getVisibleRows
* Returns the amount of visible rows stored in the list. * @return Number of rows. */
src/Interface/TextList.cpp:237
↓ 4 callers
Method
hit
* Handles bullet/weapon hits. * * A bullet/weapon hits a voxel. * @param center Center of the explosion in voxelspace. * @param power Power of the
src/Battlescape/TileEngine.cpp:1000
↓ 4 callers
Method
ignite
* Ignite starts fire on a tile, it will burn <fuel> rounds. Fuel of a tile is the highest fuel of its objects. * NOT the sum of the fuel of the objec
src/Savegame/Tile.cpp:555
↓ 4 callers
Method
init
* Initializes the Battlescape game. */
src/Battlescape/BattlescapeGame.cpp:157
↓ 4 callers
Method
isBaseModule
* check if this is an xcom base object. * @return if it is a base object. */
src/Ruleset/MapData.cpp:541
↓ 4 callers
Method
isPathPreviewed
* Gets the path preview setting. * @return True, if paths are previewed. */
src/Battlescape/Pathfinding.cpp:1139
↓ 4 callers
Method
isVoxelVisible
src/Battlescape/TileEngine.cpp:2274
↓ 4 callers
Method
isWaypoint
* Returns whether this item uses waypoints. * @return True if it uses waypoints. */
src/Ruleset/RuleItem.cpp:310
↓ 4 callers
Method
loadData
* Loads terrain data in XCom format (MCD & PCK files). * @sa http://www.ufopaedia.org/index.php?title=MCD */
src/Ruleset/MapDataSet.cpp:101
↓ 4 callers
Method
loadScr
* Loads the contents of an X-Com SCR image file into * the surface. SCR files are simply uncompressed images * containing the palette offset of each
src/Engine/Surface.cpp:220
↓ 4 callers
Function
lodepng_color_mode_init
src/lodepng.cpp:2524
↓ 4 callers
Function
lodepng_decode_memory
src/lodepng.cpp:4781
↓ 4 callers
Function
lodepng_encode_memory
src/lodepng.cpp:5855
↓ 4 callers
Function
lodepng_error_text
This returns the description of a numerical error code in English. This is also the documentation of all the error codes. */
src/lodepng.cpp:5926
↓ 4 callers
Function
lodepng_info_cleanup
src/lodepng.cpp:2859
↓ 4 callers
Function
lodepng_info_init
src/lodepng.cpp:2839
↓ 4 callers
Function
lodepng_state_cleanup
src/lodepng.cpp:4857
↓ 4 callers
Function
lodepng_state_init
src/lodepng.cpp:4844
↓ 4 callers
Method
mod_range
src/Engine/ShaderDrawHelper.h:594
↓ 4 callers
Method
modifyData
* Applies an MCD patch to a mapDataSet. * @param dataSet The MapDataSet we want to modify. */
src/Ruleset/MCDPatch.cpp:128
↓ 4 callers
Function
next
src/Engine/RNG.cpp:42
↓ 4 callers
Method
previewPath
* Marks tiles for the path preview. * @param bRemove Remove preview? * @return True, if a path is previewed. */
src/Battlescape/Pathfinding.cpp:839
↓ 4 callers
Function
readBitsFromReversedStream
src/lodepng.cpp:2326
↓ 4 callers
Method
remove
* Marks the projectile to be removed. */
src/Savegame/CraftWeaponProjectile.cpp:160
↓ 4 callers
Method
replace
* Replaces every instance of a substring. * @param str The string to modify. * @param find The substring to find. * @param replace The substring to
src/Engine/Language.cpp:317
↓ 4 callers
Method
requestEndTurn
* Requests the end of the turn (waits for explosions etc to really end the turn). */
src/Battlescape/BattlescapeGame.cpp:1435
↓ 4 callers
Method
resize
* Resizes the viewable window of the camera. */
src/Battlescape/Camera.cpp:601
↓ 4 callers
Function
scale2x_mmx_emms
* End the use of the MMX instructions. * This function must be called before using any floating-point operations. */
src/Engine/Scalers/scale2x.h:58
↓ 4 callers
Method
scrollTo
* set the scroll depth. * @param scroll set the scroll depth to this. */
src/Interface/TextList.cpp:1130
↓ 4 callers
Method
selectPreviousPlayerUnit
* Selects the previous soldier. * @param checkReselect When true, don't select a unit that has been previously flagged. * @param setReselect When tr
src/Battlescape/BattlescapeState.cpp:981
↓ 4 callers
Method
setAssigned
* Changes the number of scientist to the ResearchProject * @param nb number of scientist assigned to this ResearchProject */
src/Savegame/ResearchProject.cpp:53
↓ 4 callers
Function
setBitOfReversedStream
src/lodepng.cpp:2350
↓ 4 callers
Method
setBuildTime
* Changes the base facility's remaining time * until it's finished building. * @param time Time left in days. */
src/Savegame/BaseFacility.cpp:132
← previous
next →
701–800 of 4,163, ranked by callers