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
↓ 7 callers
Method
setSlotX
* Sets the item's inventory X position. * @param x X position. */
src/Savegame/BattleItem.cpp:288
↓ 7 callers
Method
setSmoke
* Set the amount of turns this tile is smoking. 0 = no smoke. * @param smoke : amount of turns this tile is smoking. */
src/Savegame/Tile.cpp:678
↓ 7 callers
Method
setThickness
* Changes the thickness of the border to draw. * @param thickness Thickness in pixels. */
src/Interface/Frame.cpp:95
↓ 7 callers
Method
setTurnsSinceSpotted
* Set how long since this unit was last exposed. * @param turns number of turns */
src/Savegame/BattleUnit.cpp:2449
↓ 7 callers
Method
setUnitPosition
* Places units on the map. Handles large units that are placed on multiple tiles. * @param bu The unit to be placed. * @param position The position
src/Savegame/SavedBattleGame.cpp:1422
↓ 7 callers
Method
setVolume
* Changes the audio volume of the music and * sound effect channels. * @param sound Sound volume, from 0 to MIX_MAX_VOLUME. * @param music Music vo
src/Engine/Game.cpp:338
↓ 7 callers
Method
setX
* Changes the position of the surface in the X axis. * @param x X position in pixels. */
src/Interface/Slider.cpp:77
↓ 7 callers
Method
think
* Runs the game timer and handles popups. */
src/Geoscape/GeoscapeState.cpp:539
↓ 7 callers
Method
top
* Select the most likely option. * This MUST be called on non-empty objects. * @return The key of the selected choice. */
src/Savegame/WeightedOptions.cpp:55
↓ 7 callers
Method
turn
* Advances the turning towards the target direction. * @param turret True to turn the turret, false to turn the unit. */
src/Savegame/BattleUnit.cpp:610
↓ 6 callers
Function
HuffmanTree_getCode
src/lodepng.cpp:851
↓ 6 callers
Function
Interpolate_3
src/Engine/Scalers/common.h:73
↓ 6 callers
Function
OPLWrite
---------- YM3812 I/O interface ---------- */
src/Engine/Adlib/fmopl.cpp:1319
↓ 6 callers
Function
OPLWriteReg
---------- write a OPL registers ---------- */
src/Engine/Adlib/fmopl.cpp:752
↓ 6 callers
Method
addFinishedResearch
* Add a ResearchProject to the list of already discovered ResearchProject * @param r The newly found ResearchProject * @param ruleset the game Rules
src/Savegame/SavedGame.cpp:901
↓ 6 callers
Function
addHuffmanSymbol
bitlen is the size in bits of the code*/
src/lodepng.cpp:1288
↓ 6 callers
Function
adlib_play_note
starts playing note of particular instrument
src/Engine/Adlib/adlplayer.cpp:434
↓ 6 callers
Method
aim
* Aim. (shows the right hand sprite and weapon holding) * @param aiming true/false */
src/Savegame/BattleUnit.cpp:776
↓ 6 callers
Method
blit
* Blits the slider contents * @param surface Pointer to surface to blit onto. */
src/Interface/Slider.cpp:246
↓ 6 callers
Method
calculateTerrainLighting
* Recalculates lighting for the terrain: objects,items,fire. */
src/Battlescape/TileEngine.cpp:115
↓ 6 callers
Method
category
* Returns the category of the option. Options with * categories show up in the Options screens. * @return Language string ID for the category. */
src/Engine/OptionInfo.cpp:213
↓ 6 callers
Function
dirent_set_errno
Set errno variable */
src/dirent.h:822
↓ 6 callers
Method
drawHandSprite
* Draws and centers the hand sprite on a surface * according to its dimensions. * @param texture Pointer to the surface set to get the sprite from.
src/Ruleset/RuleItem.cpp:502
↓ 6 callers
Method
flip
* Renders the buffer's contents onto the screen, applying * any necessary filters or conversions in the process. * If the scaling factor is bigger t
src/Engine/Screen.cpp:184
↓ 6 callers
Function
folderExists
* Checks if a certain path exists and is a folder. * @param path Full path to folder. * @return Does it exist? */
src/Engine/CrossPlatform.cpp:598
↓ 6 callers
Method
getAggression
* Gets the aggression. Determines the chance of revenge and taking cover. * @return The unit's aggression. */
src/Ruleset/Unit.cpp:201
↓ 6 callers
Method
getAmountProduced
src/Savegame/Production.cpp:180
↓ 6 callers
Method
getAnimationOffset
* Get the number of frames the fire or smoke animation is off-sync. * To void fire and smoke animations of different tiles moving nice in sync - it l
src/Savegame/Tile.cpp:699
↓ 6 callers
Method
getBlock
* Gets the amount of blockage of a certain type. * @param type Type. * @return The blockage (0-255). */
src/Ruleset/MapData.cpp:168
↓ 6 callers
Method
getCache
* Check if the unit is still cached in the Map cache. * When the unit changes it needs to be re-cached. * @param invalid Get if the cache is invalid
src/Savegame/BattleUnit.cpp:737
↓ 6 callers
Method
getCenterPosition
* Gets map's center position. * @return Map's center position. */
src/Battlescape/Camera.cpp:445
↓ 6 callers
Method
getCost
* Returns the cost of the ResearchProject * @return the cost of the ResearchProject(in man/day) */
src/Savegame/ResearchProject.cpp:94
↓ 6 callers
Method
getCost
* Gets the transfer cost of the currently selected item. * @return Transfer cost. */
src/Basescape/TransferItemsState.cpp:486
↓ 6 callers
Method
getCraftWeapon
* Returns the rules for the specified craft weapon. * @param id Craft weapon type. * @return Rules for the craft weapon. */
src/Ruleset/Ruleset.cpp:720
↓ 6 callers
Method
getCursorLeftBlackBand
* Returns the screen's left black forbidden to cursor band's width. * @return Width in pixel. */
src/Engine/Screen.cpp:486
↓ 6 callers
Method
getCursorTopBlackBand
* Returns the screen's top black forbidden to cursor band's height. * @return Height in pixel. */
src/Engine/Screen.cpp:477
↓ 6 callers
Method
getDangerous
* get the danger flag on this tile. * @return the danger flag for this tile. */
src/Savegame/Tile.cpp:918
↓ 6 callers
Method
getInventories
* Returns the list of inventories. * @return Pointer to inventory list. */
src/Ruleset/Ruleset.cpp:971
↓ 6 callers
Method
getLaboratories
* Gets the amount of laboratory space this facility provides * for research projects. * @return The laboratory space. */
src/Ruleset/RuleBaseFacility.cpp:264
↓ 6 callers
Method
getLook
* Returns the soldier's look. * @return Look. */
src/Savegame/Soldier.cpp:336
↓ 6 callers
Method
getLowFuel
* Returns whether the craft is currently low on fuel * (only has enough to head back to base). * @return True if it's low, false otherwise. */
src/Savegame/Craft.cpp:562
↓ 6 callers
Method
getMorale
* Returns the soldier's amount of morale. * @return Morale. */
src/Savegame/BattleUnit.cpp:867
↓ 6 callers
Method
getPersonnel
* Gets the number of base personnel (soldiers, scientists, * engineers) this facility can contain. * @return The number of personnel. */
src/Ruleset/RuleBaseFacility.cpp:235
↓ 6 callers
Method
getSecondsRemaining
* Returns the amount of remaining seconds the UFO has left on the ground. * After this many seconds thet UFO will take off, if landed, or disappear,
src/Savegame/Ufo.cpp:326
↓ 6 callers
Method
getSpaceAvailable
* Returns the amount of space available for * soldiers and vehicles. * @return Space available. */
src/Savegame/Craft.cpp:829
↓ 6 callers
Method
getTUUse
* Gets the number of Time Units needed to use this item. * @return The number of Time Units needed to use this item. */
src/Ruleset/RuleItem.cpp:577
↓ 6 callers
Method
getTotalSize
* Returns the total size of the items in the container. * @param rule Pointer to ruleset. * @return Total item size. */
src/Savegame/ItemContainer.cpp:141
↓ 6 callers
Method
getTurn
* Gets the current turn number. * @return The current turn. */
src/Savegame/SavedBattleGame.cpp:773
↓ 6 callers
Method
getTurnsSinceSpotted
* Get how long since this unit was exposed. * @return number of turns */
src/Savegame/BattleUnit.cpp:2458
↓ 6 callers
Method
getUfo
* Returns the rules for the specified UFO. * @param id UFO type. * @return Rules for the UFO. */
src/Ruleset/Ruleset.cpp:764
↓ 6 callers
Method
getWaveCount
Gets the number of waves.
src/Ruleset/RuleAlienMission.h:76
↓ 6 callers
Method
getWorkshops
* Gets the amount of workshop space this facility provides * for manufacturing projects. * @return The workshop space. */
src/Ruleset/RuleBaseFacility.cpp:274
↓ 6 callers
Method
getY
* Returns the position of the surface in the Y axis. * @return Y position in pixels. */
src/Engine/Surface.h:121
↓ 6 callers
Method
instaKill
* Set health to 0 and set status dead - used when getting zombified. */
src/Savegame/BattleUnit.cpp:2356
↓ 6 callers
Method
isInBattlescape
* Gets the UFO's battlescape status. * @return bool */
src/Savegame/Ufo.cpp:514
↓ 6 callers
Method
isUfoDoorOpen
* Check if the ufo door is open or opening. Used for visibility/light blocking checks. * This function assumes that there never are 2 doors on 1 til
src/Savegame/Tile.h:144
↓ 6 callers
Method
jumpXY
* Handles jumping with given deviation. * @param x X deviation. * @param y Y deviation. */
src/Battlescape/Camera.cpp:375
↓ 6 callers
Function
lodepng_chunk_length
src/lodepng.cpp:2362
↓ 6 callers
Function
lodepng_read32bitInt
src/lodepng.cpp:319
↓ 6 callers
Method
needsAmmo
* Determines if the item uses ammo. * @return True if ammo is used. */
src/Savegame/BattleItem.cpp:351
↓ 6 callers
Method
occupiesSlot
* Checks if the item is covering certain inventory slot(s). * @param x Slot X position. * @param y Slot Y position. * @param item Item to check for
src/Savegame/BattleItem.cpp:318
↓ 6 callers
Method
onLeftArrowClick
* Sets a function to be called every time the left arrows are mouse clicked. * @param handler Action handler. */
src/Interface/TextList.cpp:675
↓ 6 callers
Method
onRightArrowClick
* Sets a function to be called every time the right arrows are mouse clicked. * @param handler Action handler. */
src/Interface/TextList.cpp:714
↓ 6 callers
Method
promoteRank
* Increase the soldier's military rank. */
src/Savegame/Soldier.cpp:295
↓ 6 callers
Method
rotateStop
* Resets the rotation speed and timer. */
src/Geoscape/Globe.cpp:640
↓ 6 callers
Method
rotateStopLat
* Resets latitude rotation speed and timer. */
src/Geoscape/Globe.cpp:662
↓ 6 callers
Method
rotateStopLon
* Resets longitude rotation speed and timer. */
src/Geoscape/Globe.cpp:650
↓ 6 callers
Function
scale2x_16_def_border
src/Engine/Scalers/scale2x.cpp:272
↓ 6 callers
Function
scale2x_16_mmx_border
src/Engine/Scalers/scale2x.cpp:914
↓ 6 callers
Function
scale2x_32_def_border
src/Engine/Scalers/scale2x.cpp:421
↓ 6 callers
Function
scale2x_32_mmx_border
src/Engine/Scalers/scale2x.cpp:1105
↓ 6 callers
Function
scale2x_8_def_border
src/Engine/Scalers/scale2x.cpp:123
↓ 6 callers
Function
scale2x_8_mmx_border
* Apply the Scale2x effect at a single row. * This function must be called only by the other scale2x functions. * * Considering the pixel map : *
src/Engine/Scalers/scale2x.cpp:723
↓ 6 callers
Method
setAltitude
* Changes the current altitude of the UFO. * @param altitude Altitude. */
src/Savegame/Ufo.cpp:364
↓ 6 callers
Method
setArrowColumn
* Sets the position of the column of arrow buttons * in the text list. * @param pos X in pixels (-1 to disable). * @param type Arrow orientation ty
src/Interface/TextList.cpp:663
↓ 6 callers
Method
setCharging
* Set the units we are charging towards. * @param chargeTarget Charge Target */
src/Savegame/BattleUnit.cpp:2414
↓ 6 callers
Method
setDetected
* Changes whether this UFO has been detected by radars. * @param detected Detection status. */
src/Savegame/Ufo.cpp:315
↓ 6 callers
Method
setEngineers
* Changes the amount of engineers currently in the base. * @param engineers Number of engineers. */
src/Savegame/Base.cpp:357
↓ 6 callers
Method
setFocus
* Controls the blinking animation when * the text edit is focused. * @param focus True if focused, false otherwise. * @param modal True to lock inp
src/Interface/TextEdit.cpp:82
↓ 6 callers
Method
setInvertColor
When this is set, Surface::invert() is called with the value from mid when it's time to invert the button
src/Interface/ToggleTextButton.cpp:62
↓ 6 callers
Method
setLowFuel
* Changes whether the craft is currently low on fuel * (only has enough to head back to base). * @param low True if it's low, false otherwise. */
src/Savegame/Craft.cpp:572
↓ 6 callers
Method
setRace
Sets the mission's race.
src/Savegame/AlienMission.h:76
↓ 6 callers
Method
setRearming
* Changes whether this craft weapon needs rearming * (for example, in case there's no more ammo). * @param rearming Rearming status. */
src/Savegame/CraftWeapon.cpp:120
↓ 6 callers
Method
setRegion
* Sets the mission's region. if the region is incompatible with * actually carrying out an attack, use the "fallback" region as * defined in the rul
src/Savegame/AlienMission.cpp:663
↓ 6 callers
Method
setScientists
* Changes the amount of scientists currently in the base. * @param scientists Number of scientists. */
src/Savegame/Base.cpp:339
↓ 6 callers
Method
setShape
* Changes the shape for the arrow button. * @param shape Shape of the arrow. */
src/Interface/ArrowButton.cpp:75
↓ 6 callers
Method
setTUMarker
* set the number to be displayed for pathfinding preview. * @param tu */
src/Savegame/Tile.cpp:875
↓ 6 callers
Method
setupCursor
* Sets the cursor according to the selected action. */
src/Battlescape/BattlescapeGame.cpp:663
↓ 6 callers
Function
string_cleanup
free the above pair again*/
src/lodepng.cpp:297
↓ 6 callers
Function
string_init
init a {char*, size_t} pair for use as string*/
src/lodepng.cpp:290
↓ 6 callers
Function
string_set
src/lodepng.cpp:303
↓ 6 callers
Method
type
* Returns the variable type of the option. * @return Option type. */
src/Engine/OptionInfo.cpp:193
↓ 6 callers
Function
uivector_resize
returns 1 if success, 0 if failure ==> nothing done*/
src/lodepng.cpp:143
↓ 5 callers
Function
HuffmanTree_makeFromLengths
given the code lengths (as stored in the PNG file), generate the tree as defined by Deflate. maxbitlen is the maximum bits that a code in the tree can
src/lodepng.cpp:631
↓ 5 callers
Method
calculateLine
* Calculates a line trajectory, using bresenham algorithm in 3D. * @param origin Origin (voxel??). * @param target Target (also voxel??). * @param
src/Battlescape/TileEngine.cpp:2020
↓ 5 callers
Method
checkForTerrainExplosions
* Checks for chained explosions. * * Chained explosions are explosions which occur after an explosive map object is destroyed. * May be due a direc
src/Battlescape/TileEngine.cpp:1426
↓ 5 callers
Method
convertScreenToMap
* Converts screen coordinates to map coordinates. * @param screenX Screen x position. * @param screenY Screen y position. * @param mapX Map x posit
src/Battlescape/Camera.cpp:458
↓ 5 callers
Method
description
* Returns the description of the option. Options with * descriptions show up in the Options screens. * @return Language string ID for the descriptio
src/Engine/OptionInfo.cpp:203
↓ 5 callers
Method
dontReselect
* Mark this unit as not reselectable. */
src/Savegame/BattleUnit.cpp:1517
↓ 5 callers
Method
draw
* Draws the graphic that the surface contains before it * gets blitted onto other surfaces. The surface is only * redrawn if the flag is set by a pr
src/Engine/Surface.cpp:488
← previous
next →
501–600 of 4,163, ranked by callers