combine Game & MutableGame

This commit is contained in:
evanpelle
2025-02-01 12:05:11 -08:00
committed by Evan
parent 7d15c0c065
commit de1dbff570
30 changed files with 101 additions and 101 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
import { AllianceRequest, Cell, Difficulty, Execution, MutableGame, Player, PlayerInfo, PlayerType, Relation, TerrainType, TerraNullius, UnitType } from "../game/Game"
import { AllianceRequest, Cell, Difficulty, Execution, Game, Player, PlayerInfo, PlayerType, Relation, TerrainType, TerraNullius, UnitType } from "../game/Game"
import { PseudoRandom } from "../PseudoRandom"
import { AttackExecution } from "./AttackExecution";
import { TransportShipExecution } from "./TransportShipExecution";
@@ -23,7 +23,7 @@ export class FakeHumanExecution implements Execution {
private active = true
private random: PseudoRandom;
private mg: MutableGame
private mg: Game
private player: Player = null
private enemy: Player | null = null
@@ -36,7 +36,7 @@ export class FakeHumanExecution implements Execution {
this.random = new PseudoRandom(simpleHash(playerInfo.id) + simpleHash(gameID))
}
init(mg: MutableGame, ticks: number) {
init(mg: Game, ticks: number) {
this.mg = mg
if (this.random.chance(10)) {
// this.isTraitor = true