pokerogue/src/phase.ts

21 lines
394 B
TypeScript
Raw Normal View History

2023-03-28 19:54:52 +01:00
import BattleScene from "./battle-scene";
export class Phase {
2023-03-28 19:54:52 +01:00
protected scene: BattleScene;
constructor(scene: BattleScene) {
this.scene = scene;
}
start() {
console.log(`%cStart Phase ${this.constructor.name}`, "color:green;");
if (this.scene.abilityBar.shown) {
2024-04-09 17:08:38 +01:00
this.scene.abilityBar.resetAutoHideTimer();
}
2023-03-28 19:54:52 +01:00
}
end() {
this.scene.shiftPhase();
}
}