implement mirv

This commit is contained in:
Evan
2025-02-04 11:53:41 -08:00
parent e750afcd65
commit b643a6357b
10 changed files with 278 additions and 50 deletions
+6 -1
View File
@@ -37,6 +37,7 @@ import { MissileSiloExecution } from "./MissileSiloExecution";
import { DefensePostExecution } from "./DefensePostExecution";
import { CityExecution } from "./CityExecution";
import { TileRef } from "../game/GameMap";
import { MirvExecution } from "./MIRVExecution";
export class Executor {
// private random = new PseudoRandom(999)
@@ -113,6 +114,11 @@ export class Executor {
intent.player,
this.mg.ref(intent.x, intent.y)
);
case UnitType.MIRV:
return new MirvExecution(
intent.player,
this.mg.ref(intent.x, intent.y)
);
case UnitType.Warship:
return new WarshipExecution(
intent.player,
@@ -155,7 +161,6 @@ export class Executor {
fakeHumanExecutions(): Execution[] {
const execs = [];
for (const nation of this.mg.nations()) {
console.log(`got nation: ${nation.name}`);
execs.push(
new FakeHumanExecution(
this.gameID,