MCPcopy Create free account

hub / github.com/WarFrontIO/client / functions

Functions628 in github.com/WarFrontIO/client

↓ 4 callersMethodunregister
* Unregisters a listener to no longer receive events. * @param listener The listener to unregister.
src/event/EventHandlerRegistry.ts:21
↓ 3 callersMethodactuallyDoTick
()
src/game/GameTicker.ts:89
↓ 3 callersMethodaddTile
* Add a tile to the player's territory. * WARNING: Make sure to call this method AFTER updating the territory manager. * @param _tile The tile to
src/game/player/Player.ts:24
↓ 3 callersMethodaddTroops
* Add troops to the player. * Troops will be capped at 100 times the territory size. * @param amount The amount of troops to add.
src/game/player/Player.ts:61
↓ 3 callersFunctionblockInteraction
(element: HTMLElement | string)
src/ui/UIEventResolver.ts:197
↓ 3 callersFunctionbordersTile
(tile: number, player: number)
src/util/MathUtil.ts:10
↓ 3 callersFunctionbuildSectionHeader
(text: string, ...classes: string[])
src/ui/type/TextNode.ts:59
↓ 3 callersMethodcalculateSpeedFactor
* Calculate the speed factor of the attack. * The speed factor is a value between that determines how fast the attack progresses, higher values mean
src/game/attack/AttackExecutor.ts:189
↓ 3 callersMethoddeleteTexture
* Deletes the given texture and framebuffer. * @param texture The texture to delete * @param framebuffer The framebuffer to delete
src/renderer/GameGLContext.ts:130
↓ 3 callersFunctiondownloadMap
(id, info)
scripts/map-loader.js:54
↓ 3 callersFunctionextractInner
(block)
scripts/WebpackUIModuleLoader.js:147
↓ 3 callersFunctionfindPathInArea
* Finds a path between two points in the same area. * @param start The starting position. * @param end The ending position. * @returns The path fro
src/map/area/BoatPathfinding.ts:84
↓ 3 callersFunctionformatTroops
(troops: number)
src/util/StringFormatter.ts:1
↓ 3 callersMethodgetSpawnPixels
* Get the spawn points near the given tile (within a 5x5 area). * @param tile The tile to get the spawn points for. * @returns The spawn points ne
src/game/player/SpawnManager.ts:200
↓ 3 callersMethodhandleResponse
* Handles the response from the server. * @param status Status code of the response * @param data Data of the response * @private
src/network/api/Endpoint.ts:79
↓ 3 callersMethodisAlive
* @returns True if the player is alive, false otherwise.
src/game/player/Player.ts:83
↓ 3 callersFunctionpad
(n: number, z: number = 2)
src/util/StringFormatter.ts:12
↓ 3 callersMethodpositionAttribute
(data: ArrayBufferView | null = null, type: GLenum = WebGL2RenderingContext.BYTE, usage: GLenum = WebGL2Render
src/renderer/GameGLContext.ts:141
↓ 3 callersMethodremoveTroops
* Remove troops from the player. * @param amount The amount of troops to remove.
src/game/player/Player.ts:69
↓ 3 callersMethodreset
* Creates a new Random instance with a random seed. * @param seed seed for the random number generator * @internal
src/game/Random.ts:16
↓ 3 callersFunctionsendPacket
(packet: T, force: boolean = false)
src/network/NetworkManager.ts:148
↓ 3 callersMethodsetPosAt
* Set the position of the player name. * @param tile The tile to set the position at. * @param size The size of the player name. * @private
src/renderer/manager/PlayerNameRenderingManager.ts:200
↓ 3 callersFunctionsetSliderValue
(value: number)
src/ui/element/GameHud.ts:40
↓ 3 callersMethodtoRGBComponent
* Approximates the RGB value of the color. * @param component The component to approximate, 0 for red, 8 for green, 4 for blue. * @private
src/util/HSLColor.ts:103
↓ 3 callersMethodupdate
* Update a value in the queue. * WARNING: The new value must have a higher priority than the old value. * @param predicate The predicate to find t
src/util/PriorityQueue.ts:69
↓ 3 callersMethodupdateWaypoint
* Initialize the next waypoint. * @returns True if the boat has more waypoints, false otherwise. * @private
src/game/boat/Boat.ts:91
↓ 3 callersMethodvalidate
* Validates the input element.
src/ui/type/ValidatedInput.ts:80
↓ 3 callersMethodvalidatePlayer
* Validate a player id. * @param player The player to validate * @returns Whether the player is valid
src/game/player/PlayerManager.ts:85
↓ 2 callersFunctionactuallyHandleAttack
(attacker: Player, target: number, power: number)
src/game/attack/AttackActionValidator.ts:48
↓ 2 callersMethodaddBoatInternal
* Adds a boat to the boat manager. * @param owner The owner of the boat. * @param path The path to follow. * @param power The percentage of the
src/game/boat/BoatManager.ts:79
↓ 2 callersFunctionappendSmoothed
* Appends smoothed points to the path. * @param path The path to append to. * @param points The points to append.
src/map/area/BoatPathfinding.ts:281
↓ 2 callersMethodattackPlayer
* Schedule an attack on a player. * @param player The player that is attacking. * @param target The player that is being attacked. * @param troo
src/game/attack/AttackActionHandler.ts:48
↓ 2 callersMethodattackUnclaimed
* Schedule an attack on an unclaimed territory. * @param player The player that is attacking. * @param troops The amount of troops that are attack
src/game/attack/AttackActionHandler.ts:31
↓ 2 callersMethodawait
* Waits for the given status code and returns the result. * @param status Status code to wait for
src/network/api/Endpoint.ts:134
↓ 2 callersFunctionawaitSafeForward
()
src/network/NetworkAuthenticator.ts:132
↓ 2 callersFunctionbuildCheckboxInput
(description: string)
src/ui/type/CheckboxInput.ts:68
↓ 2 callersFunctionbuildPanel
(name: string)
src/ui/type/UIPanel.ts:57
↓ 2 callersFunctionbuildPromiseBundle
(method: ((...args: T) => Promise<R>))
src/util/PromiseBundle.ts:4
↓ 2 callersMethodcheckConnections
* Checks if two areas are connected and adds an edge if they are connected. * @param area The area to check. * @param otherX The x-coordinate of t
src/map/area/AreaCalculator.ts:64
↓ 2 callersMethodclear
()
src/game/attack/AttackActionHandler.ts:149
↓ 2 callersMethodclear
* Clear the array.
src/util/SortedArray.ts:24
↓ 2 callersMethoddestroy
()
src/ui/type/ContentField.ts:80
↓ 2 callersMethoddisable
* Disables the map navigation handler.
src/game/action/MapNavigationHandler.ts:37
↓ 2 callersFunctiondoPacketValidation
(packet: IncomingPacket)
src/network/PacketManager.ts:22
↓ 2 callersMethoddrawLines
* Draws the given number of lines starting the given index. * Note: The lines draws by this are very thin (for proper lines, use triangles instead
src/renderer/GameGLContext.ts:352
↓ 2 callersMethodfetchValue
()
src/util/CookieContext.ts:20
↓ 2 callersFunctionfillPathParams
* Fills the path parameters in the URL with the given parameters and removes them from the object * @param url URL to fill * @param params Parameter
src/network/api/Endpoint.ts:38
↓ 2 callersMethodfinalizeSelection
* Finalize the spawn selection and start the game. * This assigns random spawn points to players who didn't select their spawn yet.
src/game/player/SpawnManager.ts:140
↓ 2 callersFunctionfindPlayerTile
* Finds the closest water tile allowing creation of a boat. * The territory tile bordering the tile in question does not have to be in the same area.
src/map/area/BoatPathfinding.ts:227
↓ 2 callersFunctionfindPlural
* Finds a translation, applying plural narrowing if possible. * If the arguments contain a "count" property, a fitting suffix (depending on the selec
src/util/Lang.ts:62
↓ 2 callersFunctionfindStartsInArea
* Finds costs for all nodes in the area. * Note: costs are 1-based, 0 means the node cannot be reached. * @param start The starting position. * @re
src/map/area/BoatPathfinding.ts:140
↓ 2 callersMethodforceRepaint
(theme: GameTheme)
src/renderer/layer/MapRenderer.ts:38
↓ 2 callersMethodgetAttack
* Get the attack executor for the given players. * @param player The player that is attacking. * @param target The player that is being attacked.
src/game/attack/AttackActionHandler.ts:72
↓ 2 callersMethodgetChildren
* Gets the children of this panel. * For elements that frequently change their size, this should return the maximum size. * @returns The children
src/ui/type/ContentField.ts:66
↓ 2 callersMethodgetClientHeight
()
src/ui/type/ValidatedInput.ts:90
↓ 2 callersMethodgetCloseHandler
* Gets the close handler of this panel. * @returns The close handler
src/ui/type/UIPanel.ts:46
↓ 2 callersMethodgetElapsedTime
* Gets the elapsed in-game-time in milliseconds. * Note that this is not necessarily the same as the real-world time. * @returns The elapsed in-ga
src/game/GameTicker.ts:122
↓ 2 callersMethodgetNameDepth
* Get the name depth map. * @returns The name depth map.
src/renderer/manager/PlayerNameRenderingManager.ts:38
↓ 2 callersMethodgetOrCreateNode
* Gets or creates a node at a specific position. * @param area The area to get or create the node in. * @param x The x-coordinate of the node. *
src/map/area/AreaCalculator.ts:138
↓ 2 callersMethodgetPlayer
* Get the player with the given ID. * @param id The ID of the player.
src/game/player/PlayerManager.ts:52
↓ 2 callersMethodgetPlayerData
* Get the player name rendering data. * @param player The player to get the data for. * @returns The player name rendering data.
src/renderer/manager/PlayerNameRenderingManager.ts:29
↓ 2 callersFunctiongetTransactionExecutors
(type: { prototype: T, name: string })
src/game/transaction/TransactionExecutors.ts:36
↓ 2 callersFunctiongetUIElement
(name: string)
src/ui/UIManager.ts:64
↓ 2 callersFunctionhasTerritoryNear
(area: number)
src/game/player/ClientPlayer.ts:42
↓ 2 callersFunctionhideAllUIElements
()
src/ui/UIManager.ts:54
↓ 2 callersFunctionhidePanel
()
src/ui/type/UIPanel.ts:121
↓ 2 callersFunctionhideUIElement
(name: string)
src/ui/UIManager.ts:40
↓ 2 callersFunctionlanguageProxy
()
src/util/Lang.ts:22
↓ 2 callersMethodloadShader
(source: string, isVertex: boolean = false)
src/renderer/GameGLContext.ts:28
↓ 2 callersFunctionloadStaticElement
(id: string)
src/ui/UIManager.ts:92
↓ 2 callersMethodmodifyTroops
* Modify the amount of troops in the attack. * @param amount The amount to modify the troops by.
src/game/attack/AttackExecutor.ts:52
↓ 2 callersMethodmutate
* Adds a mutator to the input element. * Mutators are applied in the order they are added. * @param mutator The mutator to add
src/ui/type/ValidatedInput.ts:38
↓ 2 callersMethodmutate
* Adds a mutator to the input element. * Mutators are applied in the order they are added. * @param mutator The mutator to add
src/util/settings/StringSetting.ts:31
↓ 2 callersMethodonChanged
* Adds a listener for the change event. * @param callback The callback to invoke when the change event is triggered
src/ui/type/CheckboxInput.ts:36
↓ 2 callersMethodonDragMove
* Called when the user drags to the given position. * @param x The screen x-coordinate of the drag move. * @param y The screen y-coordinate of the
src/event/InteractionManager.ts:215
↓ 2 callersMethodpaintBorderTiles
* Paint a border tile. * @param tiles the tiles to paint * @param player the player to paint the tiles for * @internal
src/renderer/manager/TerritoryRenderingManager.ts:47
↓ 2 callersFunctionparseColor
(color)
scripts/theme-loader.js:79
↓ 2 callersFunctionparseColorExpression
(expression)
scripts/theme-loader.js:184
↓ 2 callersMethodprocessZoom
(x: number, y: number, newZoom: number)
src/game/action/MapNavigationHandler.ts:51
↓ 2 callersMethodrandomSpawnPoint
* Select a random spawn point for the given player. * * The spawn point is selected from the available spawn points. * If no spawn points are av
src/game/player/SpawnManager.ts:125
↓ 2 callersMethodrefresh
()
src/network/NetworkAuthenticator.ts:30
↓ 2 callersFunctionregisterBotStrategy
(closure: (strategies: BotStrategy[], player: BotPlayer) => void, priority: number = 0)
src/game/bot/BotPlayer.ts:76
↓ 2 callersFunctionregisterDragListener
(element: HTMLElement | string, startHandler: (x: number, y: number) => void, moveHandler: (x: number, y: numb
src/ui/UIEventResolver.ts:97
↓ 2 callersFunctionregisterKeyboardListener
(element: HTMLElement | string, key: string | string[], handler: (x: number, y: number) => void, keyUpHandler?
src/ui/UIEventResolver.ts:151
↓ 2 callersMethodregisterPlayer
* Register a player. * @param player The player to register. * @param isBot Whether the player is a bot.
src/game/player/PlayerManager.ts:41
↓ 2 callersFunctionregisterTransactionExecutor
(type: { prototype: T, name: string }, executor: (this: T) => void)
src/game/transaction/TransactionExecutors.ts:12
↓ 2 callersFunctionregisterTransactionType
(type: { prototype: T, name: string })
src/game/transaction/TransactionExecutors.ts:24
↓ 2 callersFunctionregisterUIElement
(name: string, element: UIElement)
src/ui/UIManager.ts:14
↓ 2 callersMethodremoveAttack
* Remove an attack from the list of ongoing attacks. * @param attack The attack to remove. * @private
src/game/attack/AttackActionHandler.ts:112
↓ 2 callersMethodremoveTile
* Remove a tile from the player's territory. * WARNING: Make sure to call this method AFTER updating the territory manager. * @param _tile The til
src/game/player/Player.ts:34
↓ 2 callersMethodremoveTile
* Update the player name rendering data. * @internal
src/renderer/manager/PlayerNameRenderingManager.ts:57
↓ 2 callersFunctionresetTimeout
* Resets the timeout of the socket connection.
src/network/NetworkManager.ts:114
↓ 2 callersMethodselectSpawnPoint
* Select a spawn point for the given player based on the selected tile. * * Marks spawn points near the selected tile as blocked, so random spawn
src/game/player/SpawnManager.ts:157
↓ 2 callersMethodsetAction
* Set the action to execute on a tile click. * @param action The action to execute.
src/game/action/MapActionHandler.ts:30
↓ 2 callersMethodsetChecked
* Sets the value of the checkbox. * @param checked The value to set
src/ui/type/CheckboxInput.ts:20
↓ 2 callersMethodsetCloseHandler
* Sets the close handler of this panel. * @param handler The close handler
src/ui/type/UIPanel.ts:37
↓ 2 callersMethodsetNamePos
* Set the name position. * @param pos The position of the name. * @param size The size of the name.
src/renderer/manager/PlayerNameRenderingManager.ts:244
↓ 2 callersMethodsetText
* Sets the text of the text node. * @param text The text of the text node
src/ui/type/TextNode.ts:8
↓ 2 callersMethodsetTitle
* Sets the title of this panel. * @param title The title to set
src/ui/type/UIPanel.ts:28
↓ 2 callersMethodshowTemporaryTooltip
* Adds a temporary tooltip to the container. * @param text The text of the tooltip * @param type The type of the tooltip * @param duration The d
src/ui/type/TooltipContainer.ts:30
← previousnext →101–200 of 628, ranked by callers