MCPcopy Create free account

hub / github.com/WarFrontIO/client / functions

Functions628 in github.com/WarFrontIO/client

FunctionbuildSubHeader
(text: string, ...classes: string[])
src/ui/type/TextNode.ts:46
FunctioncanAttack
* 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
Methodclear
* 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
FunctioncolorCompositeVertexShader
(ctx: GameGLContext)
src/renderer/shader/ShaderManager.ts:6
FunctioncompositeVertexShader
(ctx: GameGLContext)
src/renderer/shader/ShaderManager.ts:7
FunctionconstantColorFragmentShader
(ctx: GameGLContext)
src/renderer/shader/ShaderManager.ts:20
Functionconstructor
(winners: Player[])
src/game/result/GameResult.ts:8
Functionconstructor
(player: Player)
src/game/transaction/Transaction.ts:8
Functionconstructor
* Creates a new UI element. * @param element The HTML element of the UI element
src/ui/UIElement.ts:15
Functionconstructor
(defaultValue: T, category: SettingCategory | null = null, version: number = 0)
src/util/settings/Setting.ts:18
Methodconstructor
* 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
Methodconstructor
(winner: Player)
src/game/result/FFAGameResult.ts:6
Methodconstructor
(id: number, name: string, baseColor: HSLColor)
src/game/player/ClientPlayer.ts:10
Methodconstructor
(id: number, name: string, baseColor: HSLColor)
src/game/player/Player.ts:12
Methodconstructor
* 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
Methodconstructor
(id: number)
src/game/bot/BotPlayer.ts:14
Methodconstructor
* Creates a new cooldown bot constraints. * @param cooldown The cooldown in ticks
src/game/bot/modifier/BotConstraints.ts:18
Methodconstructor
( private readonly dropAttackChance: number, private readonly targetSmallChance: number, private readonl
src/game/bot/modifier/SimpleAttackStrategy.ts:12
Methodconstructor
* Creates a new random bot trigger. * @param chance The chance to trigger a bot action in percent
src/game/bot/modifier/BotTrigger.ts:14
Methodconstructor
* 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
Methodconstructor
* 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
Methodconstructor
(ctx: WebGL2RenderingContext)
src/renderer/GameGLContext.ts:6
Methodconstructor
()
src/renderer/GameRenderer.ts:20
Methodconstructor
(context: GameGLContext, image: HTMLImageElement, data: Uint8Array)
src/renderer/GameFont.ts:18
Methodconstructor
* 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
Methodconstructor
(borderSet: Set<number>, id: number)
src/renderer/manager/PlayerNameRenderingManager.ts:151
Methodconstructor
(player: number, validate: boolean)
src/renderer/manager/PlayerNameRenderingManager.ts:234
Methodconstructor
(private token: string, private expires: number)
src/network/NetworkAuthenticator.ts:28
Methodconstructor
(url: string, options: Promise<RequestInit>)
src/network/api/Endpoint.ts:52
Methodconstructor
(id: string, width: number, height: number, tileTypes: TileTypeBase[])
src/map/GameMap.ts:20
Methodconstructor
(x: number, y: number)
src/map/area/AreaCalculator.ts:284
Methodconstructor
(x: number, y: number)
src/map/area/AreaCalculator.ts:301
Methodconstructor
(element: HTMLElement, input: HTMLInputElement, errorElement: HTMLElement)
src/ui/type/ValidatedInput.ts:17
Methodconstructor
(element: HTMLElement, select: HTMLSelectElement)
src/ui/type/SingleSelectElement.ts:13
Methodconstructor
(element: HTMLElement, bodyElement: HTMLElement)
src/ui/type/ContentField.ts:7
Methodconstructor
(element: HTMLElement, titleElement: HTMLElement, contentElement: HTMLElement)
src/ui/type/CopyableTextContainer.ts:9
Methodconstructor
(element: HTMLElement, bodyElement: HTMLElement, titleElement: HTMLElement)
src/ui/type/UIPanel.ts:14
Methodconstructor
(element: HTMLElement, inputElement: HTMLInputElement)
src/ui/type/CheckboxInput.ts:10
Methodconstructor
* Create a new priority queue. * @param comparator Comparator function to compare the priority of two values.
src/util/PriorityQueue.ts:11
Methodconstructor
(r: number, g: number, b: number, a: number = 1)
src/util/RGBColor.ts:12
Methodconstructor
(h: number, s: number, l: number, a: number = 1)
src/util/HSLColor.ts:12
Methodconstructor
(defaultValue: () => V)
src/util/SafeMap.ts:4
Methodconstructor
(private cookie: string)
src/util/CookieContext.ts:11
Methodconstructor
(private readonly prefix: string)
src/util/settings/SettingRegistry.ts:18
Methodconstructor
(category: SettingCategory | null, version: number = 0)
src/util/settings/MultiSelectSetting.ts:14
Methodconstructor
(defaultId: string, category: SettingCategory | null, version: number = 0)
src/util/settings/SingleSelectSetting.ts:12
Methodconstructor
* 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
Methodconstructor
(handleListener: (listener: (this: void, ...args: T) => void, ...args: []) => void)
src/event/ManagedEventHandlerRegistry.ts:42
Methodconstructor
()
src/event/InteractionManager.ts:42
Functioncookie
()
test/util/CookieContext.test.ts:9
MethoddeleteBuffer
* Deletes the given buffer. * @param buffer The buffer to delete
src/renderer/GameGLContext.ts:213
Functiondestroy
* 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
FunctiondistanceMapFragmentShader
(ctx: GameGLContext)
src/renderer/shader/ShaderManager.ts:17
Methodexecute
(player: BotPlayer)
src/game/bot/modifier/BoatAttackStrategy.ts:11
Methodexecute
(player: BotPlayer)
src/game/bot/modifier/SimpleAttackStrategy.ts:19
MethodforEach
(callback: (value: T, index: number, array: T[]) => void)
src/util/PriorityList.ts:41
MethodforceRepaint
* Force a repaint of the territory layer.
src/renderer/manager/TerritoryRenderingManager.ts:57
MethodfromRGBA
* 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
MethodfromRGBColor
* Create a color from an RGB color. * @param color The color to convert.
src/util/HSLColor.ts:124
MethodfromString
(value: string)
src/util/settings/BooleanSetting.ts:11
MethodfromString
(value: string)
src/util/settings/StringSetting.ts:64
MethodfromString
(value: string)
src/util/settings/NumberSetting.ts:11
MethodfromString
(value: string)
src/util/settings/IntegerSetting.ts:11
MethodfromString
(value: string)
src/util/settings/MultiSelectSetting.ts:76
MethodfromString
(value: string)
src/util/settings/SingleSelectSetting.ts:82
Functionfunc
(...args: T)
src/util/PromiseBundle.ts:7
Functionget
* Returns the value of this setting. * @throws IllegalStateException if the setting has not been initialized
src/util/settings/Setting.ts:29
MethodgetAll
* Get all settings * @returns an array of all settings
src/util/settings/SettingRegistry.ts:76
MethodgetAllOptions
* Returns all options. * @returns An array of the values of all options
src/util/settings/MultiSelectSetting.ts:68
FunctiongetCategory
* @returns the category of this setting or null if it has none
src/util/settings/Setting.ts:70
FunctiongetClientHeight
* @returns The height of this UI element
src/ui/UIElement.ts:118
FunctiongetDefaultValue
* Returns the default value of this setting.
src/util/settings/Setting.ts:56
FunctiongetElement
* Gets the HTML element of this UI element. * @returns The HTML element of this UI element
src/ui/UIElement.ts:29
FunctiongetGameModes
()
src/game/mode/GameModeRegistry.ts:10
MethodgetRawToken
()
src/network/NetworkAuthenticator.ts:57
FunctiongetRegistry
* @returns the registry for this setting
src/util/settings/Setting.ts:85
FunctiongetSaveId
* Returns the save id of this setting
src/util/settings/Setting.ts:146
FunctiongetTheme
(id: string)
src/renderer/GameTheme.ts:79
FunctiongetUserAccount
()
src/network/api/UserAccount.ts:24
MethodgetValue
* Gets the value of the select element. * @returns The value of the select element
src/ui/type/SingleSelectElement.ts:45
FunctiongetVersion
* @returns the version of this setting
src/util/settings/Setting.ts:63
FunctionhandleAuthCallback
(params: URLSearchParams, _path: string[])
src/network/NetworkAuthenticator.ts:165
MethodhandleError
* Handles an error during the request. * @param error Error that occurred * @private
src/network/api/Endpoint.ts:94
FunctionhandleRegistry
* 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
Functioninit
(context: GameGLContext)
src/renderer/layer/BaseRendererLayer.ts:14
Methodinit
* 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
Methodinit
* 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
Methodinit
(maxPlayers: number)
src/game/attack/AttackActionHandler.ts:16
Methodinit
(context: GameGLContext)
src/renderer/layer/BackgroundLayer.ts:16
Methodinit
(context: GameGLContext)
src/renderer/layer/TerritoryRenderer.ts:40
Methodinit
(context: GameGLContext)
src/renderer/layer/MapRenderer.ts:32
Methodinit
(context: GameGLContext)
src/renderer/layer/debug/BoatMeshDebugRenderer.ts:26
Methodinit
(context: GameGLContext)
src/renderer/layer/debug/TerrainDepthRenderer.ts:28
Methodinit
(context: GameGLContext)
src/renderer/layer/debug/DebugRenderer.ts:52
Methodinit
* 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
Methodinit
(category: SettingCategory | null, version: number = 0)
src/util/settings/MultiSelectSetting.ts:10
FunctioninitDefaultListeners
()
src/ui/UIElement.ts:20
MethodisBorder
* 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
MethodisChecked
* Returns whether the checkbox is checked.
src/ui/type/CheckboxInput.ts:28
FunctionisInitialized
* 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
← previousnext →401–500 of 628, ranked by callers