create EventsDisplay file

This commit is contained in:
evanpelle
2024-09-20 13:14:46 -07:00
parent 828675f087
commit a0353066c9
11 changed files with 279 additions and 31 deletions
@@ -3,8 +3,8 @@ import {AllianceRequest, Execution, MutableGame, MutablePlayer, Player, PlayerID
export class AllianceRequestExecution implements Execution {
private active = true
private mg: MutableGame = null
private requestor: Player;
private recipient: Player
private requestor: MutablePlayer;
private recipient: MutablePlayer
constructor(private requestorID: PlayerID, private recipientID: PlayerID) { }
@@ -18,7 +18,7 @@ export class AllianceRequestExecution implements Execution {
if (this.requestor.alliedWith(this.recipient)) {
console.warn('already allied')
} else {
this.mg.createAllianceRequest(this.requestor, this.recipient)
this.requestor.createAllianceRequest(this.recipient)
}
this.active = false
}