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
↓ 19 callers
Method
blit
* Blits all the visible Surface child elements onto the * display screen, by order of addition. */
src/Engine/State.cpp:167
↓ 19 callers
Method
getFollowers
* Returns the list of crafts currently * following this target. * @return Pointer to list of crafts. */
src/Savegame/Target.cpp:142
↓ 19 callers
Method
getLongitude
* Returns the longitude coordinate of the target. * @return Longitude in radian. */
src/Savegame/Target.cpp:88
↓ 19 callers
Method
getNodes
* Gets the list of nodes. * @return Pointer to the list of nodes. */
src/Savegame/SavedBattleGame.cpp:710
↓ 19 callers
Method
getShade
* Gets the tile's shade amount 0-15. It returns the brightest of all light layers. * Shade level is the inverse of light level. So a maximum amount o
src/Savegame/Tile.cpp:424
↓ 19 callers
Method
initText
* Changes the various resources needed for text rendering. * The different fonts need to be passed in advance since the * text size can change mid-t
src/Interface/Text.cpp:149
↓ 19 callers
Method
moveToOwner
* Removes the item from the previous owner and moves it to the new owner. * @param owner Pointer to Battleunit. */
src/Savegame/BattleItem.cpp:236
↓ 19 callers
Function
percent
* Generates a random percent chance of an event occuring, * and returns the result * @param value Value percentage (0-100%) * @return True if the c
src/Engine/RNG.cpp:133
↓ 18 callers
Method
abortPath
* Aborts the current path. Clears the path vector. */
src/Battlescape/Pathfinding.cpp:543
↓ 18 callers
Method
getCraft
* Returns the craft the soldier is assigned to. * @return Pointer to craft. */
src/Savegame/Soldier.cpp:206
↓ 18 callers
Method
getInventoryHeight
* Gets the item's height in a soldier's inventory. * @return The height. */
src/Ruleset/RuleItem.cpp:482
↓ 18 callers
Method
getInventoryWidth
* Gets the item's width in a soldier's inventory. * @return The width. */
src/Ruleset/RuleItem.cpp:473
↓ 18 callers
Method
getMapDataSets
* Gets the array of mapdatafiles. * @return Pointer to the array of mapdatafiles. */
src/Ruleset/RuleTerrain.cpp:102
↓ 18 callers
Method
getMapSizeXYZ
* Gets the map size in tiles. * @return The map size. */
src/Savegame/SavedBattleGame.cpp:557
↓ 18 callers
Method
getPosition
* Gets the y position of the projectile on the radar. */
src/Savegame/CraftWeaponProjectile.cpp:135
↓ 18 callers
Method
getSender
* Returns the interactive surface that triggered * this action (the sender). * @return Pointer to interactive surface. */
src/Engine/Action.cpp:181
↓ 18 callers
Method
getSlotX
* Gets the item's inventory X position. * @return X position. */
src/Savegame/BattleItem.cpp:279
↓ 18 callers
Method
getVisibleUnits
* Get the pointer to the vector of visible units. * @return pointer to vector. */
src/Savegame/BattleUnit.cpp:1234
↓ 18 callers
Method
insideRegion
* Checks if a point is inside this region. * @param lon Longitude in radians. * @param lat Latitude in radians. * @return True if it's inside, fals
src/Ruleset/RuleRegion.cpp:145
↓ 18 callers
Method
isFixed
* Returns whether this item is a fixed weapon. * You can't move/throw/drop fixed weapons - e.g. HWP turrets. * @return True if it is a fixed weapon.
src/Ruleset/RuleItem.cpp:320
↓ 18 callers
Method
setPressed
set the _isPressed state of the button and force it to redraw
src/Interface/ToggleTextButton.cpp:53
↓ 18 callers
Function
ucvector_cleanup
src/lodepng.cpp:227
↓ 17 callers
Function
ShaderScalar
src/Engine/ShaderDraw.h:134
↓ 17 callers
Method
blit
* Blits the base view and selector. * @param surface Pointer to surface to blit onto. */
src/Basescape/BaseView.cpp:496
↓ 17 callers
Method
getAmmoQuantity
* Gets the quantity of ammo in this item. * @return Ammo quantity. */
src/Savegame/BattleItem.cpp:173
↓ 17 callers
Method
getGeoscapeSoldier
* Get the geoscape-soldier object. * @return soldier. */
src/Savegame/BattleUnit.cpp:2302
↓ 17 callers
Method
getHandSprite
* Gets the reference in HANDOB.PCK for use in inventory. * @return The sprite reference. */
src/Ruleset/RuleItem.cpp:292
↓ 17 callers
Method
getSlotY
* Gets the item's inventory Y position. * @return Y position. */
src/Savegame/BattleItem.cpp:297
↓ 17 callers
Method
getSmoke
* Get the amount of turns this tile is smoking. 0 = no smoke. * @return smoke : amount of turns this tile is smoking. */
src/Savegame/Tile.cpp:689
↓ 17 callers
Method
getSpacing
* Returns the spacing for any character in the font. * @return Spacing in pixels. * @note This does not refer to character spacing within the surfac
src/Engine/Font.cpp:216
↓ 17 callers
Method
getTerrorSites
* Returns the list of terror sites. * @return Pointer to terror site list. */
src/Savegame/SavedGame.cpp:872
↓ 17 callers
Method
getViewLevel
* Gets the displayed level. * @return The displayed layer. */
src/Battlescape/Camera.cpp:510
↓ 17 callers
Function
glGetProcAddress
src/Engine/OpenGL.cpp:74
↓ 17 callers
Method
setOptions
* Changes the list of available options to choose from. * @param options List of string IDs. */
src/Interface/ComboBox.cpp:273
↓ 16 callers
Method
close
* Closes the window. */
src/Battlescape/InfoboxState.cpp:104
↓ 16 callers
Method
getDifficulty
* Returns the game's difficulty level. * @return Difficulty level. */
src/Savegame/SavedGame.cpp:573
↓ 16 callers
Method
getPoints
* Returns the number of points (vertexes) that make up the polygon. * @return Number of points. */
src/Geoscape/Polygon.cpp:178
↓ 16 callers
Method
setCursorType
* Sets the 3D cursor to selection/aim mode. * @param type Cursor type. * @param size Size of cursor. */
src/Battlescape/Map.cpp:1349
↓ 16 callers
Method
setDestination
* Handle destination changes, making sure to delete old waypoint destinations. * @param dest Pointer to the new destination. */
src/Savegame/Ufo.cpp:634
↓ 16 callers
Method
setSlot
* Sets the item's inventory slot. * @param slot The slot id. */
src/Savegame/BattleItem.cpp:270
↓ 15 callers
Method
calculate
* Calculates the shortest path. * @param unit Unit taking the path. * @param endPosition The position we want to reach. * @param target Target of t
src/Battlescape/Pathfinding.cpp:81
↓ 15 callers
Method
calculateFOV
* Calculates line of sight of a soldier. * @param unit Unit to check line of sight of. * @return True when new aliens are spotted. */
src/Battlescape/TileEngine.cpp:227
↓ 15 callers
Method
clearList
* Removes all the rows currently stored in the list. */
src/Interface/TextList.cpp:752
↓ 15 callers
Method
copy
* Copies the exact contents of another surface onto this one. * Only the content that would overlap both surfaces is copied, in * accordance with th
src/Engine/Surface.cpp:531
↓ 15 callers
Method
getAlienMission
* Returns the rules for the specified alien mission. * @param id Alien mission type. * @return Rules for the alien mission. */
src/Ruleset/Ruleset.cpp:1074
↓ 15 callers
Method
getAmmoMax
* Gets the maximum amount of ammo the craft weapon * can carry. * @return The amount of ammo. */
src/Ruleset/RuleCraftWeapon.cpp:169
↓ 15 callers
Method
getAssignedEngineers
src/Savegame/Production.cpp:69
↓ 15 callers
Method
getCharSize
* Returns the dimensions of a particular character in the font. * @param c Font character. * @return Width and Height dimensions (X and Y are ignore
src/Engine/Font.cpp:226
↓ 15 callers
Function
getFolderContents
* Gets the name of all the files * contained in a certain folder. * @param path Full path to folder. * @param ext Extension of files ("" if it does
src/Engine/CrossPlatform.cpp:498
↓ 15 callers
Method
getItem
* Returns the rules for the specified item. * @param id Item type. * @return Rules for the item, or 0 when the item is not found. */
src/Ruleset/Ruleset.cpp:741
↓ 15 callers
Method
getMainHandWeapon
* Get the "main hand weapon" from the unit. * @param quickest Whether to get the quickest weapon, default true * @return Pointer to item. */
src/Savegame/BattleUnit.cpp:1742
↓ 15 callers
Method
getMapOffset
* Gets the map offset. * @return The map offset. */
src/Battlescape/Camera.cpp:537
↓ 15 callers
Method
getPressed
src/Interface/ToggleTextButton.h:44
↓ 15 callers
Method
getRandomMapBlock
* Gets a random mapblock within the given constraints. * @param maxsize The maximum size of the mapblock (10 or 20 or 999 - don't care). * @param ty
src/Ruleset/RuleTerrain.cpp:123
↓ 15 callers
Method
getStoreItem
* Gets the storage item needed to equip this. * @return The name of the store item. */
src/Ruleset/Armor.cpp:174
↓ 15 callers
Method
returnToBase
* Sends the craft back to its origin base. */
src/Savegame/Craft.cpp:623
↓ 15 callers
Method
setDirection
* Changes the BattleUnit's (horizontal) direction. * Only used for initial unit placement. * @param direction new horizontal direction */
src/Savegame/BattleUnit.cpp:341
↓ 15 callers
Method
setDot
* If enabled, the text in different columns will be separated by dots. * Otherwise, it will only be separated by blank space. * @param dot True for
src/Interface/TextList.cpp:546
↓ 15 callers
Method
setState
* Pops all the states currently in stack and pushes in the new state. * A shortcut for cleaning up all the old states when they're not necessary * l
src/Engine/Game.cpp:398
↓ 15 callers
Method
setUnit
* Sets _unit in order to abuse low-level pathfinding functions from outside the class. * @param unit Unit taking the path. */
src/Battlescape/Pathfinding.cpp:1148
↓ 15 callers
Method
warning
* Shows a warning message. * @param message Warning message. */
src/Battlescape/BattlescapeState.cpp:1449
↓ 14 callers
Method
cancelCurrentAction
* Cancels the current action the user had selected (firing, throwing,..) * @param bForce Force the action to be cancelled. * @return Whether an ac
src/Battlescape/BattlescapeGame.cpp:1142
↓ 14 callers
Method
getAltitude
* Returns the current altitude of the UFO. * @return Altitude. */
src/Savegame/Ufo.cpp:355
↓ 14 callers
Method
getFloatHeight
* Returns the unit's floating elevation. * @return The unit's floating height. */
src/Ruleset/Unit.cpp:129
↓ 14 callers
Method
getMaxSpeed
* Gets the maximum speed of the UFO flying * around the Geoscape. * @return The maximum speed. */
src/Ruleset/RuleUfo.cpp:143
↓ 14 callers
Method
getPanicHandled
Returns whether panic has been handled.
src/Battlescape/BattlescapeGame.h:169
↓ 14 callers
Method
getProjectile
* Gets the current projectile sprite on the map. * @return Projectile or 0 if there is no projectile sprite on the map. */
src/Battlescape/Map.cpp:1447
↓ 14 callers
Method
getStartDirection
* Checks whether a path is ready and gives the first direction. * @return Direction where the unit needs to go next, -1 if it's the end of the path.
src/Battlescape/Pathfinding.cpp:522
↓ 14 callers
Method
getText
* Returns the string displayed on screen. * @return Text string. */
src/Interface/Text.cpp:177
↓ 14 callers
Method
getWalkingPhase
* Gets the walking phase for animation and sound. * @return phase will always go from 0-7 */
src/Savegame/BattleUnit.cpp:540
↓ 14 callers
Method
getYOffset
* Gets the Y offset for drawing. * @return The height in pixels. */
src/Ruleset/MapData.cpp:219
↓ 14 callers
Method
isIronman
* Returns if the game is set to ironman mode. * Ironman games cannot be manually saved. * @return Tony Stark */
src/Savegame/SavedGame.cpp:592
↓ 14 callers
Method
playMusic
* Plays the specified track if it's not already playing. * @param name Name of the music. * @param random Pick a random track? */
src/Resource/ResourcePack.cpp:187
↓ 14 callers
Function
save
* Saves options to a YAML file. * @param filename YAML filename. */
src/Engine/Options.cpp:530
↓ 14 callers
Method
selectNextPlayerUnit
* Selects the next soldier. * @param checkReselect When true, don't select a unit that has been previously flagged. * @param setReselect When true,
src/Battlescape/BattlescapeState.cpp:961
↓ 14 callers
Method
setStateInterval
* Sets the timer interval for think() calls of the state. * @param interval An interval in ms. */
src/Battlescape/BattlescapeGame.cpp:937
↓ 14 callers
Method
showMessage
* Displays the warning message. * @param msg Message string. */
src/Battlescape/WarningMessage.cpp:106
↓ 13 callers
Function
Round
src/fmath.h:31
↓ 13 callers
Method
clear
Remove all entries.
src/Savegame/WeightedOptions.h:48
↓ 13 callers
Method
drawLine
* Draws a line on the surface. * @param x1 Start x coordinate in pixels. * @param y1 Start y coordinate in pixels. * @param x2 End x coordinate in
src/Engine/Surface.cpp:577
↓ 13 callers
Method
getArrowsLeftEdge
* Gets the arrowsLeftEdge. * @return arrowsLeftEdge. */
src/Interface/TextList.cpp:115
↓ 13 callers
Method
getArrowsRightEdge
* Gets the arrowsRightEdge. * @return arrowsRightEdge. */
src/Interface/TextList.cpp:124
↓ 13 callers
Method
getAvailableEngineers
* Returns the amount of engineers contained * in the base without any assignments. * @return Number of engineers. */
src/Savegame/Base.cpp:501
↓ 13 callers
Method
getAvailableScientists
* Returns the amount of scientists contained * in the base without any assignments. * @return Number of scientists. */
src/Savegame/Base.cpp:466
↓ 13 callers
Method
getFpsCounter
* Returns the FpsCounter used by the game. * @return Pointer to the FpsCounter. */
src/Engine/Game.cpp:387
↓ 13 callers
Method
getFuseTimer
* Gets the turns until detonation. -1 = unprimed grenade * @return turns until detonation. */
src/Savegame/BattleItem.cpp:155
↓ 13 callers
Method
getGlobe
* Returns a pointer to the Geoscape globe for * access by other substates. * @return Pointer to globe. */
src/Geoscape/GeoscapeState.cpp:1776
↓ 13 callers
Method
getMapSizeZ
* Gets the map height. * @return The map height (Size Z) in layers. */
src/Savegame/SavedBattleGame.cpp:548
↓ 13 callers
Method
getUnit
* Get the (alive) unit on this tile. * @return BattleUnit. */
src/Savegame/Tile.h:179
↓ 13 callers
Method
isUFODoor
* Gets whether this is an animated ufo door. * @return True if this is an animated ufo door. */
src/Ruleset/MapData.cpp:85
↓ 13 callers
Function
lodepng_realloc
src/lodepng.cpp:66
↓ 13 callers
Method
setColor2
* Changes the color used to draw the second contents. * @param color Color value. */
src/Interface/Bar.cpp:68
↓ 13 callers
Method
setDiscovered
* Sets the tile's cache flag. - TODO: set this for each object separately? * @param flag true/false * @param part 0-2 westwall/northwall/content+flo
src/Savegame/Tile.cpp:369
↓ 13 callers
Method
setId
* Changes the UFO's unique ID. * @param id Unique ID. */
src/Savegame/Ufo.cpp:243
↓ 13 callers
Method
setValue2
* Changes the value used to draw the second inner contents. * @param value Current value. */
src/Interface/Bar.cpp:144
↓ 13 callers
Method
setX
* Changes the position of the surface in the X axis. * @param x X position in pixels. */
src/Engine/Surface.cpp:636
↓ 13 callers
Function
ucvector_resize
returns 1 if success, 0 if failure ==> nothing done*/
src/lodepng.cpp:207
↓ 12 callers
Method
abortTurn
* Stops the turning towards the target direction. */
src/Savegame/BattleUnit.cpp:689
↓ 12 callers
Method
draw
* Draws the whole map, part by part. */
src/Battlescape/Map.cpp:164
↓ 12 callers
Method
getAssigned
* Returns the number of scientist assigned to this project * @return Number of assigned scientist. */
src/Savegame/ResearchProject.cpp:67
← previous
next →
201–300 of 4,163, ranked by callers