Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WarFrontIO/client
/ functions
Functions
628 in github.com/WarFrontIO/client
⨍
Functions
628
◇
Types & classes
194
Function
buildSubHeader
(text: string, ...classes: string[])
src/ui/type/TextNode.ts:46
Function
canAttack
* Returns whether a player can attack another player. * @param attacker The player that wants to attack. * @param target The player that is attack
src/game/mode/GameMode.ts:18
Method
clear
* Clears a tile. * @see TerritoryManager.conquer * @param tile The tile to clear * @param transaction The transaction to apply the clearing to,
src/game/TerritoryManager.ts:102
Function
colorCompositeVertexShader
(ctx: GameGLContext)
src/renderer/shader/ShaderManager.ts:6
Function
compositeVertexShader
(ctx: GameGLContext)
src/renderer/shader/ShaderManager.ts:7
Function
constantColorFragmentShader
(ctx: GameGLContext)
src/renderer/shader/ShaderManager.ts:20
Function
constructor
(winners: Player[])
src/game/result/GameResult.ts:8
Function
constructor
(player: Player)
src/game/transaction/Transaction.ts:8
Function
constructor
* Creates a new UI element. * @param element The HTML element of the UI element
src/ui/UIElement.ts:15
Function
constructor
(defaultValue: T, category: SettingCategory | null = null, version: number = 0)
src/util/settings/Setting.ts:18
Method
constructor
* Creates a new boat with given starting and ending positions. * @param owner The player that owns the boat. * @param path The path to follow. *
src/game/boat/Boat.ts:30
Method
constructor
(winner: Player)
src/game/result/FFAGameResult.ts:6
Method
constructor
(id: number, name: string, baseColor: HSLColor)
src/game/player/ClientPlayer.ts:10
Method
constructor
(id: number, name: string, baseColor: HSLColor)
src/game/player/Player.ts:12
Method
constructor
* Create a new attack executor. * @param player The player that is attacking. * @param target The player that is being attacked, or null if the ta
src/game/attack/AttackExecutor.ts:38
Method
constructor
(id: number)
src/game/bot/BotPlayer.ts:14
Method
constructor
* Creates a new cooldown bot constraints. * @param cooldown The cooldown in ticks
src/game/bot/modifier/BotConstraints.ts:18
Method
constructor
( private readonly dropAttackChance: number, private readonly targetSmallChance: number, private readonl
src/game/bot/modifier/SimpleAttackStrategy.ts:12
Method
constructor
* Creates a new random bot trigger. * @param chance The chance to trigger a bot action in percent
src/game/bot/modifier/BotTrigger.ts:14
Method
constructor
* Creates a new interval bot trigger. * @param interval The interval in ticks * @param initialDelay The initial delay in ticks
src/game/bot/modifier/BotTrigger.ts:32
Method
constructor
* Create a new territory transaction. * @param attacker The player that is attacking, or null if the territory is being cleared. * @param defendan
src/game/transaction/TerritoryTransaction.ts:19
Method
constructor
(ctx: WebGL2RenderingContext)
src/renderer/GameGLContext.ts:6
Method
constructor
()
src/renderer/GameRenderer.ts:20
Method
constructor
(context: GameGLContext, image: HTMLImageElement, data: Uint8Array)
src/renderer/GameFont.ts:18
Method
constructor
* Create a new terrain influence renderer * @param simplified Whether to show tiles of the same area in the same color. * @param navigableOnly Whe
src/renderer/layer/debug/TerrainInfluenceRenderer.ts:24
Method
constructor
(borderSet: Set<number>, id: number)
src/renderer/manager/PlayerNameRenderingManager.ts:151
Method
constructor
(player: number, validate: boolean)
src/renderer/manager/PlayerNameRenderingManager.ts:234
Method
constructor
(private token: string, private expires: number)
src/network/NetworkAuthenticator.ts:28
Method
constructor
(url: string, options: Promise<RequestInit>)
src/network/api/Endpoint.ts:52
Method
constructor
(id: string, width: number, height: number, tileTypes: TileTypeBase[])
src/map/GameMap.ts:20
Method
constructor
(x: number, y: number)
src/map/area/AreaCalculator.ts:284
Method
constructor
(x: number, y: number)
src/map/area/AreaCalculator.ts:301
Method
constructor
(element: HTMLElement, input: HTMLInputElement, errorElement: HTMLElement)
src/ui/type/ValidatedInput.ts:17
Method
constructor
(element: HTMLElement, select: HTMLSelectElement)
src/ui/type/SingleSelectElement.ts:13
Method
constructor
(element: HTMLElement, bodyElement: HTMLElement)
src/ui/type/ContentField.ts:7
Method
constructor
(element: HTMLElement, titleElement: HTMLElement, contentElement: HTMLElement)
src/ui/type/CopyableTextContainer.ts:9
Method
constructor
(element: HTMLElement, bodyElement: HTMLElement, titleElement: HTMLElement)
src/ui/type/UIPanel.ts:14
Method
constructor
(element: HTMLElement, inputElement: HTMLInputElement)
src/ui/type/CheckboxInput.ts:10
Method
constructor
* Create a new priority queue. * @param comparator Comparator function to compare the priority of two values.
src/util/PriorityQueue.ts:11
Method
constructor
(r: number, g: number, b: number, a: number = 1)
src/util/RGBColor.ts:12
Method
constructor
(h: number, s: number, l: number, a: number = 1)
src/util/HSLColor.ts:12
Method
constructor
(defaultValue: () => V)
src/util/SafeMap.ts:4
Method
constructor
(private cookie: string)
src/util/CookieContext.ts:11
Method
constructor
(private readonly prefix: string)
src/util/settings/SettingRegistry.ts:18
Method
constructor
(category: SettingCategory | null, version: number = 0)
src/util/settings/MultiSelectSetting.ts:14
Method
constructor
(defaultId: string, category: SettingCategory | null, version: number = 0)
src/util/settings/SingleSelectSetting.ts:12
Method
constructor
* Creates a new event handler registry. * @param handleListener The method to call on each listener * @param initialHandler The method to call on
src/event/ManagedEventHandlerRegistry.ts:13
Method
constructor
(handleListener: (listener: (this: void, ...args: T) => void, ...args: []) => void)
src/event/ManagedEventHandlerRegistry.ts:42
Method
constructor
()
src/event/InteractionManager.ts:42
Function
cookie
()
test/util/CookieContext.test.ts:9
Method
deleteBuffer
* Deletes the given buffer. * @param buffer The buffer to delete
src/renderer/GameGLContext.ts:213
Function
destroy
* Removes all listeners from this UI element. * Call this method when the element is no longer needed to prevent memory leaks.
src/ui/UIElement.ts:136
Function
distanceMapFragmentShader
(ctx: GameGLContext)
src/renderer/shader/ShaderManager.ts:17
Method
execute
(player: BotPlayer)
src/game/bot/modifier/BoatAttackStrategy.ts:11
Method
execute
(player: BotPlayer)
src/game/bot/modifier/SimpleAttackStrategy.ts:19
Method
forEach
(callback: (value: T, index: number, array: T[]) => void)
src/util/PriorityList.ts:41
Method
forceRepaint
* Force a repaint of the territory layer.
src/renderer/manager/TerritoryRenderingManager.ts:57
Method
fromRGBA
* Create a color from an RGBA value. * @param r The red value. * @param g The green value. * @param b The blue value. * @param a The alpha val
src/util/HSLColor.ts:116
Method
fromRGBColor
* Create a color from an RGB color. * @param color The color to convert.
src/util/HSLColor.ts:124
Method
fromString
(value: string)
src/util/settings/BooleanSetting.ts:11
Method
fromString
(value: string)
src/util/settings/StringSetting.ts:64
Method
fromString
(value: string)
src/util/settings/NumberSetting.ts:11
Method
fromString
(value: string)
src/util/settings/IntegerSetting.ts:11
Method
fromString
(value: string)
src/util/settings/MultiSelectSetting.ts:76
Method
fromString
(value: string)
src/util/settings/SingleSelectSetting.ts:82
Function
func
(...args: T)
src/util/PromiseBundle.ts:7
Function
get
* Returns the value of this setting. * @throws IllegalStateException if the setting has not been initialized
src/util/settings/Setting.ts:29
Method
getAll
* Get all settings * @returns an array of all settings
src/util/settings/SettingRegistry.ts:76
Method
getAllOptions
* Returns all options. * @returns An array of the values of all options
src/util/settings/MultiSelectSetting.ts:68
Function
getCategory
* @returns the category of this setting or null if it has none
src/util/settings/Setting.ts:70
Function
getClientHeight
* @returns The height of this UI element
src/ui/UIElement.ts:118
Function
getDefaultValue
* Returns the default value of this setting.
src/util/settings/Setting.ts:56
Function
getElement
* Gets the HTML element of this UI element. * @returns The HTML element of this UI element
src/ui/UIElement.ts:29
Function
getGameModes
()
src/game/mode/GameModeRegistry.ts:10
Method
getRawToken
()
src/network/NetworkAuthenticator.ts:57
Function
getRegistry
* @returns the registry for this setting
src/util/settings/Setting.ts:85
Function
getSaveId
* Returns the save id of this setting
src/util/settings/Setting.ts:146
Function
getTheme
(id: string)
src/renderer/GameTheme.ts:79
Function
getUserAccount
()
src/network/api/UserAccount.ts:24
Method
getValue
* Gets the value of the select element. * @returns The value of the select element
src/ui/type/SingleSelectElement.ts:45
Function
getVersion
* @returns the version of this setting
src/util/settings/Setting.ts:63
Function
handleAuthCallback
(params: URLSearchParams, _path: string[])
src/network/NetworkAuthenticator.ts:165
Method
handleError
* Handles an error during the request. * @param error Error that occurred * @private
src/network/api/Endpoint.ts:94
Function
handleRegistry
* Calls a register function and an unregister function after the element is destroyed. * @param registry The registry to handle * @param callback
src/ui/UIElement.ts:110
Function
init
(context: GameGLContext)
src/renderer/layer/BaseRendererLayer.ts:14
Method
init
* Initialize the spawn manager with the given maximum number of players. * * The spawn points are generated based on the map size and the number o
src/game/player/SpawnManager.ts:25
Method
init
* Initializes the player manager with the given players. * @param humans human players, one for local games, multiple for online games. * @param c
src/game/player/PlayerManager.ts:17
Method
init
(maxPlayers: number)
src/game/attack/AttackActionHandler.ts:16
Method
init
(context: GameGLContext)
src/renderer/layer/BackgroundLayer.ts:16
Method
init
(context: GameGLContext)
src/renderer/layer/TerritoryRenderer.ts:40
Method
init
(context: GameGLContext)
src/renderer/layer/MapRenderer.ts:32
Method
init
(context: GameGLContext)
src/renderer/layer/debug/BoatMeshDebugRenderer.ts:26
Method
init
(context: GameGLContext)
src/renderer/layer/debug/TerrainDepthRenderer.ts:28
Method
init
(context: GameGLContext)
src/renderer/layer/debug/DebugRenderer.ts:52
Method
init
* Create a new setting registry * Warning: The prefix parameter has to be unique for each setting registry * @param prefix the prefix of the setti
src/util/settings/SettingRegistry.ts:27
Method
init
(category: SettingCategory | null, version: number = 0)
src/util/settings/MultiSelectSetting.ts:10
Function
initDefaultListeners
()
src/ui/UIElement.ts:20
Method
isBorder
* Checks if a tile is a border tile of the territory of its owner. * * A tile is a border tile if it is adjacent to a tile that is not owned by th
src/game/TerritoryManager.ts:30
Method
isChecked
* Returns whether the checkbox is checked.
src/ui/type/CheckboxInput.ts:28
Function
isInitialized
* Returns whether this setting has been initialized. * This does only require the setting to have *some* valid value, not necessarily all options fo
src/util/settings/Setting.ts:49
← previous
next →
401–500 of 628, ranked by callers