feat: move warship (#196)

This commit is contained in:
Ilan Schemoul
2025-03-15 00:30:30 +01:00
committed by GitHub
parent baf91db288
commit 275de50fcd
8 changed files with 182 additions and 52 deletions
+3
View File
@@ -36,6 +36,7 @@ import { fixProfaneUsername, isProfaneUsername } from "../validations/username";
import { NoOpExecution } from "./NoOpExecution";
import { EmbargoExecution } from "./EmbargoExecution";
import { RetreatExecution } from "./RetreatExecution";
import { MoveWarshipExecution } from "./MoveWarshipExecution";
export class Executor {
// private random = new PseudoRandom(999)
@@ -83,6 +84,8 @@ export class Executor {
}
case "cancel_attack":
return new RetreatExecution(intent.playerID, intent.attackID);
case "move_warship":
return new MoveWarshipExecution(intent.unitId, intent.tile);
case "spawn":
return new SpawnExecution(
new PlayerInfo(