diff --git a/src/client/graphics/layers/PlayerActionHandler.ts b/src/client/graphics/layers/PlayerActionHandler.ts index 54714cadbf..9a16e80e50 100644 --- a/src/client/graphics/layers/PlayerActionHandler.ts +++ b/src/client/graphics/layers/PlayerActionHandler.ts @@ -1,5 +1,4 @@ import { EventBus } from "../../../core/EventBus"; -import { PlayerActions } from "../../../core/game/Game"; import { TileRef } from "../../../core/game/GameMap"; import { PlayerView } from "../../../core/game/GameView"; import { @@ -23,13 +22,6 @@ export class PlayerActionHandler { private uiState: UIState, ) {} - async getPlayerActions( - player: PlayerView, - tile: TileRef, - ): Promise { - return await player.actions(tile); - } - handleAttack(player: PlayerView, targetId: string | null) { this.eventBus.emit( new SendAttackIntentEvent( diff --git a/src/client/graphics/layers/StructureIconsLayer.ts b/src/client/graphics/layers/StructureIconsLayer.ts index 72d7ef7f91..44c8085c68 100644 --- a/src/client/graphics/layers/StructureIconsLayer.ts +++ b/src/client/graphics/layers/StructureIconsLayer.ts @@ -8,7 +8,6 @@ import { wouldNukeBreakAlliance } from "../../../core/execution/Util"; import { BuildableUnit, Cell, - PlayerActions, PlayerID, UnitType, } from "../../../core/game/Game"; @@ -74,7 +73,6 @@ export class StructureIconsLayer implements Layer { private ghostStage: PIXI.Container; private levelsStage: PIXI.Container; private rootStage: PIXI.Container = new PIXI.Container(); - public playerActions: PlayerActions | null = null; private dotsStage: PIXI.Container; private readonly theme: Theme; private renderer: PIXI.Renderer | null = null; diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index 27eaa8c08c..7cf070af06 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -360,7 +360,6 @@ export class DefaultConfig implements Config { territoryBound: true, constructionDuration: this.instantBuild() ? 0 : 2 * 10, upgradable: true, - canBuildTrainStation: true, }; case UnitType.AtomBomb: return { @@ -429,7 +428,6 @@ export class DefaultConfig implements Config { territoryBound: true, constructionDuration: this.instantBuild() ? 0 : 2 * 10, upgradable: true, - canBuildTrainStation: true, }; case UnitType.Factory: return { @@ -441,15 +439,12 @@ export class DefaultConfig implements Config { ), territoryBound: true, constructionDuration: this.instantBuild() ? 0 : 2 * 10, - canBuildTrainStation: true, - experimental: true, upgradable: true, }; case UnitType.Train: return { cost: () => 0n, territoryBound: false, - experimental: true, }; default: assertNever(type); diff --git a/src/core/game/Game.ts b/src/core/game/Game.ts index 06f9e280d4..a1c779e02a 100644 --- a/src/core/game/Game.ts +++ b/src/core/game/Game.ts @@ -233,8 +233,6 @@ export interface UnitInfo { damage?: number; constructionDuration?: number; upgradable?: boolean; - canBuildTrainStation?: boolean; - experimental?: boolean; } export enum UnitType {