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
↓ 5 callers
Function
filterScanline
src/lodepng.cpp:5158
↓ 5 callers
Method
findReachable
* Locates all tiles reachable to @a *unit with a TU cost no more than @a tuMax. * Uses Dijkstra's algorithm. * @param unit Pointer to the unit. * @
src/Battlescape/Pathfinding.cpp:1074
↓ 5 callers
Method
getBuildCost
* Gets the amount of funds that this facility costs * to build on a base. * @return The building cost. */
src/Ruleset/RuleBaseFacility.cpp:195
↓ 5 callers
Method
getCurrentAIState
* Returns the current AI state. * @return Pointer to AI state. */
src/Savegame/BattleUnit.cpp:1597
↓ 5 callers
Method
getCursorType
* Gets the cursor type. * @return cursortype. */
src/Battlescape/Map.cpp:1362
↓ 5 callers
Method
getDX
* Gets the Horizontal offset from the mid-point of the screen, in pixels. * @return the horizontal offset. */
src/Engine/Screen.cpp:566
↓ 5 callers
Method
getDamagePercentage
* Returns the ratio between the amount of damage this * craft can take and the total it can take before it's * destroyed. * @return Percentage of d
src/Savegame/Craft.cpp:552
↓ 5 callers
Method
getDieMCD
* Gets the dead object ID. * @return The dead object ID. */
src/Ruleset/MapData.cpp:355
↓ 5 callers
Method
getEngineerCost
* Returns the cost of an individual engineer * for purchase/maintenance. * @return Cost. */
src/Ruleset/Ruleset.cpp:921
↓ 5 callers
Method
getEngineers
* Returns the amount of engineers currently in the base. * @return Number of engineers. */
src/Savegame/Base.cpp:348
↓ 5 callers
Method
getFallingUnits
* Gets all units in the battlescape that are falling. * @return The falling units in the battlescape. */
src/Savegame/SavedBattleGame.cpp:1519
↓ 5 callers
Method
getFlatRate
* Returns whether this item charges a flat TU rate. * @return True if this item charges a flat TU rate. */
src/Ruleset/RuleItem.cpp:672
↓ 5 callers
Method
getFreeWorkshops
* Return workshop space not used by a Production * @return workshop space not used by a Production */
src/Savegame/Base.cpp:782
↓ 5 callers
Method
getFrontArmor
* Gets the front armor level. * @return The front armor level. */
src/Ruleset/Armor.cpp:118
↓ 5 callers
Method
getHealQuantity
* Gets the heal quantity of the item. * @return The new heal quantity. */
src/Ruleset/RuleItem.cpp:514
↓ 5 callers
Method
getId
* @return The unique ID assigned to this mission. */
src/Savegame/AlienMission.cpp:578
↓ 5 callers
Method
getManufacture
* Returns the rules for the specified manufacture project. * @param id Manufacture project type. * @return Rules for the manufacture project. */
src/Ruleset/Ruleset.cpp:1021
↓ 5 callers
Method
getManufactureCost
* Gets the cost of manufacturing one object. * @return The cost of manufacturing one object. */
src/Ruleset/RuleManufacture.cpp:112
↓ 5 callers
Method
getMinStats
* Gets the minimum stats for the random stats generator. * @return The minimum stats. */
src/Ruleset/RuleSoldier.cpp:71
↓ 5 callers
Method
getMoraleModifier
* Gets the morale modifier for * - either XCom based on the highest ranked, living XCom unit, * - or the unit passed to this function. * @param uni
src/Savegame/SavedBattleGame.cpp:1569
↓ 5 callers
Method
getOriginVoxel
* Gets the origin voxel of a certain action. * @param action Battle action. * @param tile Pointer to the action tile. * @return origin position. *
src/Battlescape/TileEngine.cpp:2797
↓ 5 callers
Method
getPainKillerQuantity
* Gets the pain killer quantity of the item. * @return The new pain killer quantity. */
src/Ruleset/RuleItem.cpp:523
↓ 5 callers
Method
getPolygons
* Returns the list of polygons in the resource set. * @return Pointer to the list of polygons. */
src/Resource/ResourcePack.cpp:122
↓ 5 callers
Method
getPreview
* retrieve the direction stored by the pathfinding. * @return preview */
src/Savegame/Tile.cpp:866
↓ 5 callers
Method
getQuantity
* Gets the quantity of the currently selected item * on the base. * @return Quantity of selected item on the base. */
src/Basescape/SellState.cpp:577
↓ 5 callers
Method
getRandomPoint
* Gets a random point that is guaranteed to be inside the give zone. * If the region contains cities, they are the sites of zone 0 and the rest of th
src/Ruleset/RuleRegion.cpp:189
↓ 5 callers
Method
getRankInt
* Return the numeric version of the unit's rank. * @return unit rank, 0 = lowest */
src/Savegame/BattleUnit.cpp:2503
↓ 5 callers
Method
getRearArmor
* Gets the rear armor level. * @return The rear armor level. */
src/Ruleset/Armor.cpp:136
↓ 5 callers
Method
getRearmRate
* Gets how much ammo is added to the craft weapon * while rearming (the amount of ammo in each clip item). * @return The amount of ammo. */
src/Ruleset/RuleCraftWeapon.cpp:179
↓ 5 callers
Method
getRelativeXMouse
* 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:156
↓ 5 callers
Method
getRules
* Returns the ruleset for the craft weapon's type. * @return Pointer to ruleset. */
src/Savegame/CraftWeapon.cpp:72
↓ 5 callers
Method
getScientistCost
* Returns the cost of an individual scientist * for purchase/maintenance. * @return Cost. */
src/Ruleset/Ruleset.cpp:931
↓ 5 callers
Method
getScientists
* Returns the amount of scientists currently in the base. * @return Number of scientists. */
src/Savegame/Base.cpp:330
↓ 5 callers
Method
getSelectedItem
* Returns the item currently grabbed by the player. * @return Pointer to selected item, or NULL if none. */
src/Battlescape/Inventory.cpp:389
↓ 5 callers
Method
getSoldierCost
* Returns the cost of an individual soldier * for purchase/maintenance. * @return Cost. */
src/Ruleset/Ruleset.cpp:911
↓ 5 callers
Method
getSpawnNode
* Finds a fitting node where a unit can spawn. * @param nodeRank Rank of the node (this is not the rank of the alien!). * @param unit Pointer to the
src/Savegame/SavedBattleGame.cpp:1097
↓ 5 callers
Method
getSpeedPercentage
* Gets the speed percentage at a waypoint. * @param wp The waypoint. * @return The speed as a percentage. */
src/Ruleset/UfoTrajectory.h:83
↓ 5 callers
Method
getSprite
* Get the sprite of a certain part of the tile. * @param part * @return Pointer to the sprite. */
src/Savegame/Tile.cpp:612
↓ 5 callers
Method
getSpriteInventory
* Gets the unit's inventory sprite. * @return The inventory sprite name. */
src/Ruleset/Armor.cpp:109
↓ 5 callers
Method
getStimulantQuantity
* Gets the stimulant quantity of the item. * @return The new stimulant quantity. */
src/Ruleset/RuleItem.cpp:532
↓ 5 callers
Method
getTotalEngineers
* Returns the total amount of engineers contained * in the base. * @return Number of engineers. */
src/Savegame/Base.cpp:511
↓ 5 callers
Method
getTotalScientists
* Returns the total amount of scientists contained * in the base. * @return Number of scientists. */
src/Savegame/Base.cpp:476
↓ 5 callers
Method
getUfopaediaArticle
* Returns the article definition for a given name. * @param name Article name. * @return Article definition. */
src/Ruleset/Ruleset.cpp:951
↓ 5 callers
Method
getUnderArmor
* Gets the under armor level. * @return The under armor level. */
src/Ruleset/Armor.cpp:145
↓ 5 callers
Method
getX
* Returns the position of the surface in the X axis. * @return X position in pixels. */
src/Engine/Surface.h:111
↓ 5 callers
Method
getXMouse
* Returns the X position of the * mouse cursor relative to the game window, * or -1 if this isn't a mouse-related action. * @return Mouse's X posit
src/Engine/Action.cpp:108
↓ 5 callers
Method
getYMouse
* Returns the Y position of the * mouse cursor relative to the game window, * or -1 if this isn't a mouse-related action. * @return Mouse's Y posit
src/Engine/Action.cpp:119
↓ 5 callers
Method
get_ref
src/Engine/ShaderDrawHelper.h:633
↓ 5 callers
Method
handle
* Takes care of any events from the core game engine, * and passes them on to its InteractiveSurface child elements. * @param action Pointer to an a
src/Engine/State.cpp:146
↓ 5 callers
Method
hasInventory
* Checks if this unit has an inventory. Large units and/or * terror units don't have inventories. * @return True if an inventory is available, false
src/Savegame/BattleUnit.cpp:2652
↓ 5 callers
Method
inc_x
src/Engine/ShaderDrawHelper.h:628
↓ 5 callers
Method
inc_y
src/Engine/ShaderDrawHelper.h:614
↓ 5 callers
Method
isInExitArea
* Check if this unit is in the exit area. * @param stt Type of exit tile to check for. * @return Is in the exit area? */
src/Savegame/BattleUnit.cpp:1836
↓ 5 callers
Method
isLift
* Checks if this facility is the core access lift * of a base. Every base has an access lift and all * facilities have to be connected to it. * @re
src/Ruleset/RuleBaseFacility.cpp:155
↓ 5 callers
Method
isOnScreen
* Checks if map coordinates X,Y,Z are on screen. * @param mapPos Coordinates to check. * @param unitWalking True to offset coordinates for a unit wa
src/Battlescape/Camera.cpp:576
↓ 5 callers
Method
killedBy
* Get the faction the unit was killed by. * @return faction */
src/Savegame/BattleUnit.cpp:2396
↓ 5 callers
Method
locateRegion
* Find the region containing this location. * @param lon The longtitude. * @param lat The latitude. * @return Pointer to the region, or 0. */
src/Savegame/SavedGame.cpp:1542
↓ 5 callers
Function
lodepng_add32bitInt
src/lodepng.cpp:336
↓ 5 callers
Method
merge
src/Ruleset/Unit.h:43
↓ 5 callers
Method
mod_x
src/Engine/ShaderDrawHelper.h:620
↓ 5 callers
Method
mod_y
src/Engine/ShaderDrawHelper.h:606
↓ 5 callers
Method
needItem
* Checks if this ResearchProject needs a corresponding Item to be researched. * @return True if the ResearchProject needs a corresponding item. */
src/Ruleset/RuleResearch.cpp:82
↓ 5 callers
Method
onLeftArrowPress
* Sets a function to be called every time the left arrows are mouse pressed. * @param handler Action handler. */
src/Interface/TextList.cpp:688
↓ 5 callers
Method
onLeftArrowRelease
* Sets a function to be called every time the left arrows are mouse released. * @param handler Action handler. */
src/Interface/TextList.cpp:701
↓ 5 callers
Method
onRightArrowPress
* Sets a function to be called every time the right arrows are mouse pressed. * @param handler Action handler. */
src/Interface/TextList.cpp:727
↓ 5 callers
Method
onRightArrowRelease
* Sets a function to be called every time the right arrows are mouse released. * @param handler Action handler. */
src/Interface/TextList.cpp:740
↓ 5 callers
Method
pop
* Gets the node with the least cost. * After this call, the node is no longer in the set. It is an error to call this when the set is empty. * @retu
src/Battlescape/PathfindingOpenSet.cpp:57
↓ 5 callers
Function
readBitFromReversedStream
src/lodepng.cpp:2319
↓ 5 callers
Method
recalculateFOV
* Recalculates FOV of all units in-game. */
src/Battlescape/TileEngine.cpp:2730
↓ 5 callers
Method
resize
* Each state will probably need its own resize handling, * so this space intentionally left blank * @param dX delta of X; * @param dY delta of Y;
src/Engine/State.cpp:398
↓ 5 callers
Method
run
* The state machine takes care of passing all the events from SDL to the * active state, running any code within and blitting all the states and * c
src/Engine/Game.cpp:142
↓ 5 callers
Function
sanitizeFilename
* Replaces invalid filesystem characters with _. * @param filename Original filename. * @return Filename without invalid characters */
src/Engine/CrossPlatform.cpp:683
↓ 5 callers
Method
scrollDown
* Scrolls the text in the list down by one row or to the bottom. * @param toMax If true then scrolls to the bottom of the list. false => one row down
src/Interface/TextList.cpp:801
↓ 5 callers
Method
scrollUp
* Scrolls the text in the list up by one row or to the top. * @param toMax If true then scrolls to the top of the list. false => one row up * @param
src/Interface/TextList.cpp:772
↓ 5 callers
Method
setDamage
* Changes the amount of damage this UFO has taken. * @param damage Amount of damage. */
src/Savegame/Ufo.cpp:285
↓ 5 callers
Method
setDomain
src/Engine/ShaderDrawHelper.h:114
↓ 5 callers
Method
setLatitude
* Changes the latitude of a given point. * @param i Point number (0-max). * @param lat Point's latitude. */
src/Geoscape/Polygon.cpp:90
↓ 5 callers
Method
setLongitude
* Changes the latitude of a given point. * @param i Point number (0-max). * @param lon Point's longitude. */
src/Geoscape/Polygon.cpp:110
↓ 5 callers
Method
setProjectile
* Puts a projectile sprite on the map. * @param projectile Projectile to place. */
src/Battlescape/Map.cpp:1434
↓ 5 callers
Method
setPsiTraining
* toggles whether or not the unit is in psi training */
src/Savegame/Soldier.cpp:530
↓ 5 callers
Method
setSlotY
* Sets the item's inventory Y position. * @param y Y position. */
src/Savegame/BattleItem.cpp:306
↓ 5 callers
Method
setSmall
* Changes the text to use the small-size font. */
src/Interface/Text.cpp:125
↓ 5 callers
Method
setTexture
* Changes the texture to use for drawing * the various base elements. * @param texture Pointer to SurfaceSet to use. */
src/Basescape/BaseView.cpp:116
↓ 5 callers
Method
setUnit
* Set a unit on this tile. * @param unit * @param tileBelow */
src/Savegame/Tile.cpp:625
↓ 5 callers
Method
set_range
src/Engine/ShaderDrawHelper.h:599
↓ 5 callers
Method
set_x
src/Engine/ShaderDrawHelper.h:624
↓ 5 callers
Method
set_y
src/Engine/ShaderDrawHelper.h:610
↓ 5 callers
Function
stage_scale4x
* Apply the Scale4x effect on a group of rows. Used internally. */
src/Engine/Scalers/scalebit.cpp:114
↓ 5 callers
Method
startWalking
* Initialises variables to start walking. * @param direction Which way to walk. * @param destination The position we should end up on. * @param til
src/Savegame/BattleUnit.cpp:420
↓ 5 callers
Method
statePushBack
* Pushes a state to the back. * @param bs Battlestate. */
src/Battlescape/BattlescapeGame.cpp:758
↓ 5 callers
Method
statePushFront
* Pushes a state to the front of the queue and starts it. * @param bs Battlestate. */
src/Battlescape/BattlescapeGame.cpp:730
↓ 5 callers
Method
tallyUnits
* Tallies the living units in the game and, if required, converts units into their spawn unit. * @param &liveAliens The integer in which to store the
src/Battlescape/BattlescapeGame.cpp:1949
↓ 5 callers
Function
uivector_resizev
resize and give all new elements the value*/
src/lodepng.cpp:162
↓ 5 callers
Function
zlib_compress
compress using the default or custom zlib function */
src/lodepng.cpp:2176
↓ 4 callers
Function
Adam7_getpassvalues
Outputs various dimensions and positions in the image related to the Adam7 reduced images. passw: output containing the width of the 7 passes passh: o
src/lodepng.cpp:3916
↓ 4 callers
Function
GetPitch
* Helper function counting pitch in bytes with 16byte padding * @param bpp bytes per pixel * @param width number of pixel in row * @return pitch in
src/Engine/Surface.cpp:56
↓ 4 callers
Function
Interpolate_2
Interpolate functions */
src/Engine/Scalers/common.h:62
↓ 4 callers
Function
OPL_STATUS_RESET
status reset and IRQ handling */
src/Engine/Adlib/fmopl.cpp:271
↓ 4 callers
Method
addItem
* Adds an item to an XCom soldier (auto-equip). * @param item Pointer to the Item. * @param unit Pointer to the Unit. * @param allowSecondClip allo
src/Battlescape/BattlescapeGenerator.cpp:942
↓ 4 callers
Method
asKey
* Returns the pointer to the key option, * or throws an exception if it's not a key. * @return Pointer to the option. */
src/Engine/OptionInfo.cpp:251
← previous
next →
601–700 of 4,163, ranked by callers