pokerogue/src/phase.ts

21 lines
394 B
TypeScript

import BattleScene from "./battle-scene";
export class Phase {
protected scene: BattleScene;
constructor(scene: BattleScene) {
this.scene = scene;
}
start() {
console.log(`%cStart Phase ${this.constructor.name}`, "color:green;");
if (this.scene.abilityBar.shown) {
this.scene.abilityBar.resetAutoHideTimer();
}
}
end() {
this.scene.shiftPhase();
}
}