combine Game & MutableGame

This commit is contained in:
evanpelle
2025-01-23 11:12:01 -08:00
committed by Evan
parent 7d15c0c065
commit de1dbff570
30 changed files with 101 additions and 101 deletions
@@ -1,15 +1,15 @@
import { consolex } from "../../Consolex";
import {AllianceRequest, Execution, MutableGame, Player, PlayerID} from "../../game/Game";
import {AllianceRequest, Execution, Game, Player, PlayerID} from "../../game/Game";
export class AllianceRequestExecution implements Execution {
private active = true
private mg: MutableGame = null
private mg: Game = null
private requestor: Player;
private recipient: Player
constructor(private requestorID: PlayerID, private recipientID: PlayerID) { }
init(mg: MutableGame, ticks: number): void {
init(mg: Game, ticks: number): void {
this.mg = mg
this.requestor = mg.player(this.requestorID)
this.recipient = mg.player(this.recipientID)
@@ -1,15 +1,15 @@
import { consolex } from "../../Consolex";
import { AllianceRequest, Execution, MutableGame, Player, PlayerID } from "../../game/Game";
import { AllianceRequest, Execution, Game, Player, PlayerID } from "../../game/Game";
export class AllianceRequestReplyExecution implements Execution {
private active = true
private mg: MutableGame = null
private mg: Game = null
private requestor: Player;
private recipient: Player
constructor(private requestorID: PlayerID, private recipientID: PlayerID, private accept: boolean) { }
init(mg: MutableGame, ticks: number): void {
init(mg: Game, ticks: number): void {
this.mg = mg
this.requestor = mg.player(this.requestorID)
this.recipient = mg.player(this.recipientID)
@@ -1,15 +1,15 @@
import { consolex } from "../../Consolex";
import { AllianceRequest, Execution, MutableGame, Player, PlayerID } from "../../game/Game";
import { AllianceRequest, Execution, Game, Player, PlayerID } from "../../game/Game";
export class BreakAllianceExecution implements Execution {
private active = true
private requestor: Player;
private recipient: Player
private mg: MutableGame
private mg: Game
constructor(private requestorID: PlayerID, private recipientID: PlayerID) { }
init(mg: MutableGame, ticks: number): void {
init(mg: Game, ticks: number): void {
this.requestor = mg.player(this.requestorID)
this.recipient = mg.player(this.recipientID)
this.mg = mg