mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-12-03 12:16:22 +00:00
19 lines
385 B
TypeScript
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();
|
|
}
|
|
} |