move config to Game

This commit is contained in:
evanpelle
2024-08-24 12:12:46 -07:00
parent a9785741b7
commit bb8c24e230
11 changed files with 102 additions and 51 deletions
+5 -3
View File
@@ -4,12 +4,14 @@ import {Execution, MutableGame, MutablePlayer, PlayerID} from "../Game"
export class PlayerExecution implements Execution {
private player: MutablePlayer
private config: Config
constructor(private playerID: PlayerID, private config: Config) {
constructor(private playerID: PlayerID) {
}
init(gs: MutableGame, ticks: number) {
this.player = gs.player(this.playerID)
init(mg: MutableGame, ticks: number) {
this.config = mg.config()
this.player = mg.player(this.playerID)
}
tick(ticks: number) {