pokerogue/src/phase.ts

19 lines
385 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();
}
}