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
Function
setColorKeyFrom16bit
src/lodepng.cpp:3746
↓ 4 callers
Method
setHeight
* Changes the height of the surface. * @warning This is not a trivial setter! * It will force the surface to be recreated for the new size. * @para
src/Engine/Surface.cpp:906
↓ 4 callers
Method
setModal
* Changes the current modal surface. If a surface is modal, * then only that surface can receive events. This is used * when an element needs to tak
src/Engine/State.cpp:339
↓ 4 callers
Method
setPixelIterative
* Changes the color of a pixel in the surface and returns the * next pixel position. Useful when changing a lot of pixels in * a row, eg. loading
src/Engine/Surface.h:156
↓ 4 callers
Method
setShootingAt
src/Savegame/Ufo.cpp:646
↓ 4 callers
Method
setTime
* Changes the current time of the game. * @param time Game time. */
src/Savegame/SavedGame.cpp:735
↓ 4 callers
Method
setViewLevel
* Sets the view level. * @param viewlevel New view level. */
src/Battlescape/Camera.cpp:413
↓ 4 callers
Method
setY
* Changes the position of the surface in the Y axis. * @param y Y position in pixels. */
src/Interface/TextList.cpp:101
↓ 4 callers
Method
showLaunchButton
* Shows the launch button. * @param show Show launch button? */
src/Battlescape/BattlescapeState.cpp:1953
↓ 4 callers
Function
slowTick
src/Engine/Timer.cpp:31
↓ 4 callers
Method
spendBullet
* Spends a bullet from the ammo in this item. * @return True if there are bullets left. */
src/Savegame/BattleItem.cpp:195
↓ 4 callers
Function
toString
src/Battlescape/MedikitState.cpp:46
↓ 4 callers
Method
toggle
* Opens/closes the combo box list. * @param first Is it the initialization toggle? */
src/Interface/ComboBox.cpp:359
↓ 4 callers
Function
yuv_diff
Test if there is difference in color */
src/Engine/Scalers/common.h:50
↓ 4 callers
Function
zlib_decompress
src/lodepng.cpp:2116
↓ 3 callers
Function
CALC_FCSLOT
---------- frequency counter for operator update ---------- */
src/Engine/Adlib/fmopl.cpp:369
↓ 3 callers
Function
DeleteAligned
* Helper function release aligned memory * @param buffer buffer to delete */
src/Engine/Surface.cpp:111
↓ 3 callers
Function
FlcReadFile
src/Engine/Flc.cpp:88
↓ 3 callers
Function
HuffmanTree_makeFromFrequencies
Create the Huffman tree given the symbol frequencies*/
src/lodepng.cpp:834
↓ 3 callers
Function
NewAligned
* Helper function creating aligned buffer * @param bpp bytes per pixel * @param width number of pixel in row * @param height number of rows * @ret
src/Engine/Surface.cpp:68
↓ 3 callers
Function
OPL_STATUS_SET
status set and IRQ handling */
src/Engine/Adlib/fmopl.cpp:255
↓ 3 callers
Method
addFallingUnit
* Adds this unit to the vector of falling units, * if it doesn't already exist. * @param unit The unit. * @return Was the unit added? */
src/Savegame/SavedBattleGame.cpp:1496
↓ 3 callers
Method
addPsiExp
* Adds one to the firing exp counter. */
src/Savegame/BattleUnit.cpp:1877
↓ 3 callers
Method
addSmoke
* 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:657
↓ 3 callers
Function
addUnknownChunks
src/lodepng.cpp:5648
↓ 3 callers
Function
adlib_reset_channels
resets (clears) adlib channels
src/Engine/Adlib/adlplayer.cpp:357
↓ 3 callers
Function
adlib_set_amplitude
sets voice amplitude for particular adlib channel
src/Engine/Adlib/adlplayer.cpp:341
↓ 3 callers
Method
applyGravity
* Applies gravity to a tile. Causes items and units to drop. * @param t Tile. * @return Tile where the items end up in eventually. */
src/Battlescape/TileEngine.cpp:2480
↓ 3 callers
Function
backupDisplay
* Saves display settings temporarily to be able * to revert to old ones. */
src/Engine/Options.cpp:618
↓ 3 callers
Method
calcStatString
* Calculates the soldier's statString. * @param statStrings List of statString rules. * @param psiStrengthEval Are psi stats available? */
src/Savegame/Soldier.cpp:579
↓ 3 callers
Method
calculateSunShading
* Calculates sun shading for the whole terrain. */
src/Battlescape/TileEngine.cpp:79
↓ 3 callers
Method
calculateTrajectory
src/Battlescape/Projectile.cpp:91
↓ 3 callers
Function
checkColorValidity
return type is a LodePNG error code*/
src/lodepng.cpp:2489
↓ 3 callers
Function
cleanup_coins
src/lodepng.cpp:686
↓ 3 callers
Function
color_tree_add
color is not allowed to already exist. Index should be >= 0 (it's signed to be compatible with using -1 for "doesn't exist")*/
src/lodepng.cpp:2964
↓ 3 callers
Function
color_tree_init
src/lodepng.cpp:2922
↓ 3 callers
Method
convertMapToScreen
* Converts map coordinates X,Y,Z to screen positions X, Y. * @param mapPos X,Y,Z coordinates on the map. * @param screenPos Screen position. */
src/Battlescape/Camera.cpp:481
↓ 3 callers
Function
deleteFile
* Removes a file from the specified path. * @param path Full path to file. * @return True if the operation succeeded, False otherwise. */
src/Engine/CrossPlatform.cpp:644
↓ 3 callers
Method
detect
* Returns if a certain target is covered by the base's * radar range, taking in account the range and chance. * @param target Pointer to target to c
src/Savegame/Base.cpp:368
↓ 3 callers
Method
die
* Kills the soldier in the Geoscape. * @param death Pointer to death data. */
src/Savegame/Soldier.cpp:557
↓ 3 callers
Method
directionToVector
* Converts direction to a vector. Direction starts north = 0 and goes clockwise. * @param direction Source direction. * @param vector Pointer to a p
src/Battlescape/Pathfinding.cpp:488
↓ 3 callers
Method
dropItem
* Drops an item to the floor and affects it with gravity. * @param position Position to spawn the item. * @param item Pointer to the item. * @param
src/Battlescape/BattlescapeGame.cpp:1467
↓ 3 callers
Function
endPath
* Adds an ending slash to a path if necessary. * @param path Folder path. * @return Terminated path. */
src/Engine/CrossPlatform.cpp:484
↓ 3 callers
Method
faceWindow
* Gets the AI to look through a window. * @param position Current position. * @return Direction or -1 when no window found. */
src/Battlescape/TileEngine.cpp:2651
↓ 3 callers
Method
finishBattle
* Finishes up the current battle, shuts down the battlescape * and presents the debriefing screen for the mission. * @param abort Was the mission ab
src/Battlescape/BattlescapeState.cpp:1889
↓ 3 callers
Method
fitItemInSlot
* Checks if an item completely fits when * placed in a certain slot. * @param item Pointer to item ruleset. * @param x Slot X position. * @param y
src/Ruleset/RuleInventory.cpp:187
↓ 3 callers
Function
flashWindow
* Notifies the user that maybe he should have a look. */
src/Engine/CrossPlatform.cpp:882
↓ 3 callers
Method
getAccuracy
* Gets the percentage chance of each shot of * this craft weapon hitting an enemy craft. * @return The accuracy as a percentage. */
src/Ruleset/RuleCraftWeapon.cpp:129
↓ 3 callers
Method
getAccuracyAimed
* Gets the item's accuracy for aimed shots. * @return The aimed accuracy. */
src/Ruleset/RuleItem.cpp:392
↓ 3 callers
Method
getAccuracySnap
* Gets the item's accuracy for snapshots. * @return The snapshot accuracy. */
src/Ruleset/RuleItem.cpp:374
↓ 3 callers
Method
getAction
* Gets the action result. Returns error messages or an empty string when everything went fine. * @return Error or empty string when everything is fin
src/Battlescape/BattleState.cpp:83
↓ 3 callers
Method
getAltMCD
* Gets the alternative object ID. * @return The alternative object ID. */
src/Ruleset/MapData.cpp:337
↓ 3 callers
Method
getAmount
Get amount of objects.
src/Engine/CatFile.h:46
↓ 3 callers
Method
getAttraction
* Gets the attraction value for this item (for AI). * @return The attraction value. */
src/Ruleset/RuleItem.cpp:690
↓ 3 callers
Method
getAutoShots
* Gets the amount of auto shots fired by this weapon. * @return The shots. */
src/Ruleset/RuleItem.cpp:780
↓ 3 callers
Method
getAvailableLaboratories
* Returns the total amount of laboratories * available in the base. * @return Laboratory space. */
src/Savegame/Base.cpp:679
↓ 3 callers
Method
getAvailableSoldiers
* Returns the amount of soldiers contained * in the base without any assignments. * @param checkCombatReadiness does what it says on the tin. * @re
src/Savegame/Base.cpp:425
↓ 3 callers
Method
getAvailableWorkshops
* Returns the total amount of workshops * available in the base. * @return Workshop space. */
src/Savegame/Base.cpp:712
↓ 3 callers
Method
getBattleGame
* Gets the BattlescapeState. * @return Pointer to the BattlescapeState. */
src/Savegame/SavedBattleGame.cpp:899
↓ 3 callers
Method
getChar
* Returns a particular character from the set stored in the font. * @param c Character to use for size/position. * @return Pointer to the font's sur
src/Engine/Font.cpp:180
↓ 3 callers
Method
getClipsLoaded
* get how many clips are loaded into this weapon. * @param ruleset a pointer to the core ruleset. * @return number of clips loaded. */
src/Savegame/CraftWeapon.cpp:179
↓ 3 callers
Method
getCraftString
* Returns the soldier's craft string, which * is either the soldier's wounded status, * the assigned craft name, or none. * @param lang Language to
src/Savegame/Soldier.cpp:227
↓ 3 callers
Method
getCrafts
* Gets the number of base craft this facility can contain. * @return The number of craft. */
src/Ruleset/RuleBaseFacility.cpp:254
↓ 3 callers
Method
getDayString
* Returns the localized representation of the current * ingame day with the cardinal operator. * @param lang Pointer to current language. * @return
src/Savegame/GameTime.cpp:201
↓ 3 callers
Method
getDefenses
src/Savegame/Base.cpp:1305
↓ 3 callers
Method
getDrawingRoutine
* Gets the drawing routine ID. * @return The drawing routine ID. */
src/Ruleset/Armor.cpp:183
↓ 3 callers
Method
getExpenditures
* return the list of expenditures scores * @return list of expenditures scores. */
src/Savegame/SavedGame.cpp:1499
↓ 3 callers
Method
getFatalWound
* Get the amount of fatal wound for a body part * @param part The body part (in the range 0-5) * @return The amount of fatal wound of a body part *
src/Savegame/BattleUnit.cpp:2040
↓ 3 callers
Method
getFlammability
* Flammability of a tile is the lowest flammability of it's objects. * @return Flammability : the lower the value, the higher the chance the tile/obj
src/Savegame/Tile.cpp:516
↓ 3 callers
Method
getFreeLaboratories
* Return laboratories space not used by a ResearchProject * @return laboratories space not used by a ResearchProject */
src/Savegame/Base.cpp:773
↓ 3 callers
Method
getFuelLimit
* Returns the minimum required fuel for the * craft to make it back to base. * @return Fuel amount. */
src/Savegame/Craft.cpp:604
↓ 3 callers
Method
getFuelPercentage
* Returns the ratio between the amount of fuel currently * contained in this craft and the total it can carry. * @return Percentage of fuel. */
src/Savegame/Craft.cpp:519
↓ 3 callers
Method
getGridX
* Returns the X position of the grid square * the mouse is currently over. * @return X position on the grid. */
src/Basescape/BaseView.cpp:145
↓ 3 callers
Method
getGridY
* Returns the Y position of the grid square * the mouse is currently over. * @return Y position on the grid. */
src/Basescape/BaseView.cpp:155
↓ 3 callers
Method
getHemisphere
* Gets the hemishpere this terrain occurs on. * -1 = northern, 0 = either, 1 = southern. * @return The hemisphere. */
src/Ruleset/RuleTerrain.cpp:223
↓ 3 callers
Method
getHitSound
* Gets the item's hit sound. * @return The hit sound id. */
src/Ruleset/RuleItem.cpp:347
↓ 3 callers
Function
getHome
* Gets the user's home folder according to the system. * @return Absolute path to home folder. */
src/Engine/CrossPlatform.cpp:93
↓ 3 callers
Method
getHour
* Returns the current ingame hour. * @return Hour (0-23). */
src/Savegame/GameTime.cpp:161
↓ 3 callers
Method
getHours
* Returns the time remaining until the * transfer arrives at its destination. * @return Amount of hours. */
src/Savegame/Transfer.cpp:229
↓ 3 callers
Method
getInfiniteAmount
src/Savegame/Production.cpp:49
↓ 3 callers
Method
getLabelLatitude
* Gets the latitude of the country's label on the globe. * @return The latitude in radians. */
src/Ruleset/RuleCountry.cpp:108
↓ 3 callers
Method
getLabelLongitude
* Gets the longitude of the country's label on the globe. * @return The longitude in radians. */
src/Ruleset/RuleCountry.cpp:99
↓ 3 callers
Method
getLandId
Gets the UFO's landing site ID.
src/Savegame/Ufo.cpp:651
↓ 3 callers
Method
getLeftBlackBand
* Returns the width in pixel of the * left black band if any. * @return Screen's left black band. */
src/Engine/Action.cpp:97
↓ 3 callers
Method
getLoftemps
* Get the unit's loft ID, one per unit tile. * Each tile only has one loft, as it is repeated over the entire height of the unit. * @param entry U
src/Savegame/BattleUnit.cpp:2183
↓ 3 callers
Method
getLongRangeDetection
* Returns the total amount of long range * detection facilities in the base. * @return Defense value. */
src/Savegame/Base.cpp:868
↓ 3 callers
Method
getMinute
* Returns the current ingame minute. * @return Minute (0-59). */
src/Savegame/GameTime.cpp:152
↓ 3 callers
Method
getMissions
* Returns the soldier's amount of missions. * @return Missions. */
src/Savegame/Soldier.cpp:309
↓ 3 callers
Method
getMonth
* Returns the current ingame month. * @return Month (1-12). */
src/Savegame/GameTime.cpp:229
↓ 3 callers
Method
getMonthString
* Returns a localizable-string representation of * the current ingame month. * @return Month string ID. */
src/Savegame/GameTime.cpp:239
↓ 3 callers
Method
getMonthlyCost
* Gets the amount of funds this facility costs monthly * to maintain once it's fully built. * @return The monthly cost. */
src/Ruleset/RuleBaseFacility.cpp:215
↓ 3 callers
Method
getMusic
* Returns a specific music from the resource set. * @param name Name of the music. * @return Pointer to the music. */
src/Resource/ResourcePack.cpp:141
↓ 3 callers
Method
getNumWeapons
* Returns the amount of weapons currently * equipped on this craft. * @return Number of weapons. */
src/Savegame/Craft.cpp:396
↓ 3 callers
Method
getObjectSize
Get object size.
src/Engine/CatFile.h:51
↓ 3 callers
Method
getPersonnelTime
* Returns the time it takes to transfer personnel * between bases. * @return Time in hours. */
src/Ruleset/Ruleset.cpp:941
↓ 3 callers
Method
getPolygonTextureAndShade
* Get the polygons texture at a given point * @param lon Longitude of the point. * @param lat Latitude of the point. * @param texture pointer to te
src/Geoscape/Globe.cpp:2036
↓ 3 callers
Method
getReactionScore
* Little formula to calculate reaction score. * @return Reaction score. */
src/Savegame/BattleUnit.cpp:1404
↓ 3 callers
Method
getRefuelItem
* Gets what item is required while * the craft is refuelling. * @return The item ID or "" if none. */
src/Ruleset/RuleCraft.cpp:233
↓ 3 callers
Method
getRequiredSpace
* Gets the required workspace to start production. * @return The required workspace. */
src/Ruleset/RuleManufacture.cpp:93
↓ 3 callers
Method
getRules
src/Savegame/Production.cpp:185
← previous
next →
801–900 of 4,163, ranked by callers