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
↓ 49 callers
Method
getSound
* Returns a particular wave from the sound set. * @param i Sound number in the set. * @return Pointer to the respective sound. */
src/Engine/SoundSet.cpp:163
↓ 49 callers
Method
onTimer
* Sets a state function for the timer to call every interval. * @param handler Event handler. */
src/Engine/Timer.cpp:154
↓ 48 callers
Method
getAbsoluteXMouse
* Returns the absolute X position of the * mouse cursor relative to the game window, * corrected for screen scaling. * @return Mouse's absolute X p
src/Engine/Action.cpp:130
↓ 48 callers
Method
getCamera
* Gets the pointer to the camera. * @return Pointer to camera. */
src/Battlescape/Map.cpp:1465
↓ 48 callers
Method
getSlot
* Gets the item's inventory slot. * @return The slot id. */
src/Savegame/BattleItem.cpp:261
↓ 47 callers
Method
setX
* Changes the X coordinate of a given point. * @param i Point number (0-max). * @param x Point's X coordinate. */
src/Geoscape/Polygon.cpp:130
↓ 45 callers
Method
getDirection
* Returns the current direction the UFO is heading in. * @return Direction. */
src/Savegame/Ufo.cpp:346
↓ 45 callers
Method
setMax
* Changes the maximum value used to draw the outer border. * @param max Maximum value. */
src/Interface/Bar.cpp:106
↓ 45 callers
Method
setScale
* Changes the scale factor used to draw the bar values. * @param scale Scale in pixels/unit. */
src/Interface/Bar.cpp:87
↓ 42 callers
Method
getDestination
* Returns the destination the moving target is heading to. * @return Pointer to destination. */
src/Savegame/MovingTarget.cpp:87
↓ 42 callers
Method
getOriginalFaction
* Get this unit's original Faction. * @return original faction */
src/Savegame/BattleUnit.cpp:2467
↓ 41 callers
Method
getCraft
* Returns the rules for the specified craft. * @param id Craft type. * @return Rules for the craft. */
src/Ruleset/Ruleset.cpp:699
↓ 41 callers
Method
removeItem
* Remove an item from the tile. * @param item */
src/Savegame/Tile.cpp:720
↓ 40 callers
Method
getCompatibleAmmo
* Gets a list of compatible ammo. * @return Pointer to a list of compatible ammo. */
src/Ruleset/RuleItem.cpp:446
↓ 40 callers
Method
getTimeUnits
* Returns the soldier's amount of time units. * @return Time units. */
src/Savegame/BattleUnit.cpp:840
↓ 39 callers
Method
drawRect
* Draws a filled rectangle on the surface. * @param rect Pointer to Rect. * @param color Color of the rectangle. */
src/Engine/Surface.cpp:546
↓ 39 callers
Method
getHealth
* Returns the soldier's amount of health. * @return Health. */
src/Savegame/BattleUnit.cpp:858
↓ 39 callers
Method
isRunning
* Returns if the timer has been started. * @return Running state. */
src/Engine/Timer.cpp:99
↓ 38 callers
Method
setCellColor
* Changes the color of a specific Text object in the list. * @param row Row number. * @param column Column number. * @param color Text color. */
src/Interface/TextList.cpp:152
↓ 37 callers
Method
getSide
* Gets the side currently playing. * @return The unit faction currently playing. */
src/Savegame/SavedBattleGame.cpp:764
↓ 37 callers
Method
getType
* Returns the language string that names * this unit. Each unit type has a unique name. * @return The unit's name. */
src/Ruleset/Unit.cpp:93
↓ 37 callers
Method
isTwoHanded
* Returns whether this item is held with two hands. * @return True if it is two-handed. */
src/Ruleset/RuleItem.cpp:301
↓ 36 callers
Function
AreSame
src/fmath.h:26
↓ 35 callers
Method
getDebugMode
* Gets the current debug mode. * @return Debug mode. */
src/Savegame/SavedGame.cpp:1421
↓ 35 callers
Method
getVisible
* Get the tile visible flag. * @return visibility */
src/Savegame/Tile.cpp:848
↓ 35 callers
Method
lock
src/Engine/OpenGL.cpp:126
↓ 34 callers
Method
getBattleGame
* Returns a pointer to the battlegame, in case we need its functions. */
src/Battlescape/BattlescapeState.cpp:1978
↓ 34 callers
Method
getCrop
* Returns the cropping rectangle for this surface. * @return Pointer to the cropping rectangle. */
src/Engine/Surface.cpp:685
↓ 34 callers
Method
getYScale
* Returns the Y scaling factor used by the screen * when this action was fired (used to correct mouse input). * @return Screen's Y scaling factor.
src/Engine/Action.cpp:56
↓ 34 callers
Function
lodepng_malloc
src/lodepng.cpp:61
↓ 34 callers
Method
setMapData
* Set the MapData references of part 0 to 3. * @param dat pointer to the data object * @param mapDataID * @param mapDataSetID * @param part the pa
src/Savegame/Tile.cpp:200
↓ 34 callers
Method
unlock
* Unlocks the surface after it's been locked * to resume blitting operations. * @sa lock() */
src/Engine/Surface.cpp:730
↓ 33 callers
Method
getActionTUs
* Get the number of time units a certain action takes. * @param actionType * @param item * @return TUs */
src/Savegame/BattleUnit.cpp:1103
↓ 33 callers
Method
getFacilities
* Returns the list of facilities in the base. * @return Pointer to the facility list. */
src/Savegame/Base.cpp:284
↓ 33 callers
Method
getSelected
* Returns the currently selected option. * @return Selected row. */
src/Interface/ComboBox.cpp:233
↓ 33 callers
Method
getVehicles
* Returns the list of vehicles currently equipped * in the base. * @return Pointer to vehicle list. */
src/Savegame/Base.cpp:1315
↓ 33 callers
Method
getXScale
* Returns the X scaling factor used by the screen * when this action was fired (used to correct mouse input). * @return Screen's X scaling factor.
src/Engine/Action.cpp:46
↓ 33 callers
Method
hasNoFloor
* Whether this tile has a floor or not. If no object defined as floor, it has no floor. * @param tileBelow * @return bool */
src/Savegame/Tile.cpp:254
↓ 32 callers
Method
addItem
* Adds a new menu item for an action. * @param ba Action type. * @param name Action description. * @param id Pointer to the new item ID. */
src/Battlescape/ActionMenuState.cpp:155
↓ 32 callers
Method
getGame
* Gets pointer to the game. Some states need this info. * @return Pointer to game. */
src/Battlescape/BattlescapeState.cpp:1419
↓ 32 callers
Method
getMonthsPassed
* @return the month counter. */
src/Savegame/SavedGame.cpp:1565
↓ 32 callers
Method
getObjects
* Gets the objects in this dataset. * @return Pointer to the objects. */
src/Ruleset/MapDataSet.cpp:83
↓ 32 callers
Method
getUfos
* Returns the list of alien UFOs. * @return Pointer to UFO list. */
src/Savegame/SavedGame.cpp:854
↓ 32 callers
Method
resetDisplay
* Resets the screen surfaces based on the current display options, * as they don't automatically take effect. * @param resetVideo Reset display surf
src/Engine/Screen.cpp:305
↓ 32 callers
Method
setSelectable
* If enabled, the base view will respond to player input, * highlighting the selected facility. * @param size Facility length (0 disables it). */
src/Basescape/BaseView.cpp:165
↓ 31 callers
Method
setGroup
* Changes the button group this button belongs to. * @param group Pointer to the pressed button pointer in the group. * Null makes it a regular butt
src/Interface/TextButton.cpp:177
↓ 30 callers
Method
getResearch
* Returns the rules for the specified research project. * @param id Research project type. * @return Rules for the research project. */
src/Ruleset/Ruleset.cpp:1001
↓ 30 callers
Method
getSavedBattle
* Get pointer to the battleGame object. * @return Pointer to the battleGame object. */
src/Savegame/SavedGame.cpp:881
↓ 30 callers
Method
getSize
* Returns the size occupied by this vehicle * in a transport craft. * @return Size in tiles. */
src/Savegame/Vehicle.cpp:104
↓ 30 callers
Method
onChange
* Sets a function to be called every time the slider's value changes. * @param handler Action handler. */
src/Interface/Slider.cpp:300
↓ 30 callers
Method
setCache
* Sets the unit's cache flag. * @param cache Pointer to cache surface to use, NULL to redraw from scratch. * @param part Unit part to cache. */
src/Savegame/BattleUnit.cpp:717
↓ 29 callers
Method
getArmor
* Returns the unit's current armor. * @return Pointer to armor data. */
src/Savegame/Soldier.cpp:407
↓ 29 callers
Method
getCursor
* Returns the mouse cursor used by the game. * @return Pointer to the cursor. */
src/Engine/Game.cpp:378
↓ 29 callers
Method
getTransfers
* Returns the list of transfers destined * to this base. * @return Pointer to the transfer list. */
src/Savegame/Base.cpp:312
↓ 29 callers
Method
load
* Loads a ruleset's contents from the given source. * @param source The source to use. */
src/Ruleset/Ruleset.cpp:200
↓ 28 callers
Method
getContents
* Returns all the items currently contained within. * @return List of contents. */
src/Savegame/ItemContainer.cpp:155
↓ 28 callers
Method
getPixel
* Returns the color of a specified pixel in the surface. * @param x X position of the pixel. * @param y Y position of the pixel. * @return Color
src/Engine/Surface.h:172
↓ 28 callers
Method
getTime
* Returns the time passed since the last interval. * @return Time in milliseconds. */
src/Engine/Timer.cpp:86
↓ 28 callers
Method
setCellText
* Changes the text of a specific Text object in the list. * @param row Row number. * @param column Column number. * @param text Text string. */
src/Interface/TextList.cpp:189
↓ 28 callers
Method
setRowColor
* Changes the text color of a whole row in the list. * @param row Row number. * @param color Text color. */
src/Interface/TextList.cpp:163
↓ 27 callers
Method
cacheUnit
* Check if a certain unit needs to be redrawn. * @param unit Pointer to battleUnit. */
src/Battlescape/Map.cpp:1382
↓ 27 callers
Method
getAmmo
* Returns the ammo contained in this vehicle. * @return Weapon ammo. */
src/Savegame/Vehicle.cpp:78
↓ 27 callers
Method
isDiscovered
* Get the black fog of war state of this tile. * @param part 0-2 westwall/northwall/content+floor * @return bool True = discovered the tile. */
src/Savegame/Tile.cpp:392
↓ 27 callers
Method
setMargin
* Changes the horizontal margin placed around the text. * @param margin Margin in pixels. */
src/Interface/TextList.cpp:632
↓ 26 callers
Function
adlib_reg
src/Engine/Adlib/adlplayer.cpp:299
↓ 26 callers
Method
getClipSize
* Gets the item's ammo clip size. * @return The ammo clip size. */
src/Ruleset/RuleItem.cpp:491
↓ 26 callers
Method
setVerticalAlign
* Changes the way the text is aligned vertically * relative to the drawing area. * @param valign Vertical alignment. */
src/Interface/Text.cpp:247
↓ 25 callers
Method
getMovementType
* Gets the movement type of this armor. * Useful for determining whether the armor can fly. * @return The movement type. */
src/Ruleset/Armor.cpp:193
↓ 25 callers
Method
setArrowColor
* Changes the color of the arrow buttons in the list. * @param color Color value. */
src/Interface/TextList.cpp:650
↓ 25 callers
Method
spendTimeUnits
* Spend time units if it can. Return false if it can't. * @param tu * @return flag if it could spend the time units or not. */
src/Savegame/BattleUnit.cpp:1157
↓ 24 callers
Method
distance
* Calculates the distance between 2 points. Rounded up to first INT. * @param pos1 Position of first square. * @param pos2 Position of second square
src/Battlescape/TileEngine.cpp:2393
↓ 24 callers
Method
getAlienBases
* Returns the list of alien bases. * @return Pointer to alien base list. */
src/Savegame/SavedGame.cpp:1404
↓ 24 callers
Method
getFunds
* Returns the player's current funds. * @return Current funds. */
src/Savegame/SavedGame.cpp:611
↓ 24 callers
Method
getValue
* Gets the unit's value - for scoring. * @return The unit's value. */
src/Ruleset/Unit.cpp:165
↓ 24 callers
Method
onMouseRelease
* Sets a function to be called every time the surface is mouse released. * @param handler Action handler. * @param button Mouse button to check for.
src/Engine/InteractiveSurface.cpp:444
↓ 24 callers
Method
what
* Returns the message describing the exception * that occurred. * @return Exception message. */
src/Engine/Exception.cpp:42
↓ 23 callers
Method
getFire
* Get the amount of turns this tile is on fire. 0 = no fire. * @return fire : amount of turns this tile is on fire. */
src/Savegame/Tile.cpp:648
↓ 23 callers
Method
getItem
* Checks if there's an inventory item in * the specified inventory position. * @param slot Inventory slot. * @param x X position in slot. * @param
src/Savegame/BattleUnit.cpp:1675
↓ 23 callers
Method
isResearched
* Returns if a certain research has been completed. * @param research Research ID. * @return Whether it's researched or not. */
src/Savegame/SavedGame.cpp:1217
↓ 23 callers
Function
load
* Loads options from a YAML file. * @param filename YAML filename. */
src/Engine/Options.cpp:502
↓ 22 callers
Function
fileExists
* Checks if a certain path exists and is a file. * @param path Full path to file. * @return Does it exist? */
src/Engine/CrossPlatform.cpp:621
↓ 22 callers
Method
getCurrentAction
* Gets a pointer to access action members directly. * @return Pointer to action. */
src/Battlescape/BattlescapeGame.cpp:1193
↓ 22 callers
Method
isCrashed
* Returns if this UFO took enough damage * to cause it to crash. * @return Crashed status. */
src/Savegame/Ufo.cpp:382
↓ 22 callers
Method
offset
* Shifts all the colors in the surface by a set amount. * This is a common method in 8bpp games to simulate color * effects for cheap. * @param off
src/Engine/Surface.cpp:403
↓ 22 callers
Method
setSelected
* Changes the currently selected option. * @param sel Selected row. */
src/Interface/ComboBox.cpp:242
↓ 21 callers
Method
centerOnPosition
* Centers map on a certain position. * @param mapPos Position to center on. * @param redraw Redraw map or not. */
src/Battlescape/Camera.cpp:426
↓ 21 callers
Method
getAbsoluteYMouse
* Returns the absolute Y position of the * mouse cursor relative to the game window, * corrected for screen scaling. * @return Mouse's absolute X p
src/Engine/Action.cpp:143
↓ 21 callers
Method
getBigWall
* Gets whether this is a big wall, which blocks all surrounding paths. * * Return value key: * 0: not a bigWall * 1: regular bigWall * 2: allows
src/Ruleset/MapData.cpp:114
↓ 21 callers
Method
getLatitude
* Returns the latitude coordinate of the target. * @return Latitude in radian. */
src/Savegame/Target.cpp:112
↓ 21 callers
Method
getRegion
* Returns the rules for the specified region. * @param id Region type. * @return Rules for the region. */
src/Ruleset/Ruleset.cpp:657
↓ 21 callers
Method
getTUCost
* Gets the TU cost to move from 1 tile to the other (ONE STEP ONLY). * But also updates the endPosition, because it is possible * the unit goes upst
src/Battlescape/Pathfinding.cpp:250
↓ 21 callers
Method
isDestroyed
* Returns if this UFO took enough damage * to cause it to crash. * @return Crashed status. */
src/Savegame/Ufo.cpp:392
↓ 21 callers
Function
uivector_push_back
returns 1 if success, 0 if failure ==> nothing done*/
src/lodepng.cpp:178
↓ 20 callers
Method
blit
* Blits the globe onto another surface. * @param surface Pointer to another surface. */
src/Geoscape/Globe.cpp:1806
↓ 20 callers
Method
getNumSoldiers
* Returns the amount of soldiers from a list * that are currently attached to this craft. * @return Number of soldiers. */
src/Savegame/Craft.cpp:421
↓ 20 callers
Method
getPalette
* Returns the state's 8bpp palette. * @return Pointer to the palette's colors. */
src/Engine/State.cpp:387
↓ 20 callers
Method
getSprite
* Gets the bullet sprite. * @return Pointer to Surface. */
src/Battlescape/Projectile.cpp:391
↓ 20 callers
Function
getUserFolder
* Returns the game's User folder where * saves are stored in. * @return Full path to User folder. */
src/Engine/Options.cpp:589
↓ 20 callers
Method
getWaypoints
* Gets a list of waypoints on the map. * @return A list of waypoints. */
src/Battlescape/Map.cpp:1490
↓ 20 callers
Function
ucvector_init
src/lodepng.cpp:234
← previous
next →
101–200 of 4,163, ranked by callers