oops, missed revisions in StateManager
This commit is contained in:
parent
a149938f00
commit
58b8bbc27b
@ -15,15 +15,22 @@ const N_TURNS: number = 9;
|
|||||||
|
|
||||||
export class StateManager {
|
export class StateManager {
|
||||||
#turn: number;
|
#turn: number;
|
||||||
|
#revision: number;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.#turn = 1;
|
this.#turn = 1;
|
||||||
|
this.#revision = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
getTurn(): number {
|
getTurn(): number {
|
||||||
return this.#turn;
|
return this.#turn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nextRevision(): number {
|
||||||
|
this.#revision++;
|
||||||
|
return this.#revision;
|
||||||
|
}
|
||||||
|
|
||||||
startFirstGame() {
|
startFirstGame() {
|
||||||
getVNModal().play([
|
getVNModal().play([
|
||||||
...openingScene,
|
...openingScene,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user