2023-03-28 11:54:52 -07:00
|
|
|
import BattleScene from "./battle-scene";
|
|
|
|
|
2024-02-21 20:57:49 -08:00
|
|
|
export class Phase {
|
2023-03-28 11:54:52 -07:00
|
|
|
protected scene: BattleScene;
|
|
|
|
|
|
|
|
constructor(scene: BattleScene) {
|
|
|
|
this.scene = scene;
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2023-12-30 15:41:25 -08:00
|
|
|
console.log(`%cStart Phase ${this.constructor.name}`, 'color:green;');
|
2024-04-09 09:08:38 -07:00
|
|
|
if (this.scene.abilityBar.shown)
|
|
|
|
this.scene.abilityBar.resetAutoHideTimer();
|
2023-03-28 11:54:52 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
end() {
|
|
|
|
this.scene.shiftPhase();
|
|
|
|
}
|
|
|
|
}
|