Move heroDeck and monsterDeck into BattleState
This commit is contained in:
parent
f1ef7d7d46
commit
12eb97084f
4 changed files with 45 additions and 44 deletions
|
|
@ -10,6 +10,8 @@ public class BattleState
|
|||
private BuffManager buffManager;
|
||||
private EnergyPool heroEnergy;
|
||||
private EnergyPool monsterEnergy;
|
||||
private BattleDeck<HeroCard> heroDeck;
|
||||
private BattleDeck<MonsterCard> monsterDeck;
|
||||
|
||||
public BattleState() {
|
||||
this.clock = new BattleClock();
|
||||
|
|
@ -18,6 +20,11 @@ public class BattleState
|
|||
this.monsterEnergy = new EnergyPool();
|
||||
}
|
||||
|
||||
public void SetDecks(BattleDeck<HeroCard> heroDeck, BattleDeck<MonsterCard> monsterDeck) {
|
||||
this.heroDeck = heroDeck;
|
||||
this.monsterDeck = monsterDeck;
|
||||
}
|
||||
|
||||
public bool IsTeamsTurnToPlay(TeamChoice team) {
|
||||
if (team == TeamChoice.Heroes) {
|
||||
return this.clock.Now.RoundStep == RoundStep.StartOfHeroTurn;
|
||||
|
|
@ -48,4 +55,6 @@ public class BattleState
|
|||
|
||||
public EnergyPool HeroEnergy {get => this.heroEnergy;}
|
||||
public EnergyPool MonsterEnergy {get => this.monsterEnergy;}
|
||||
public BattleDeck<HeroCard> HeroDeck {get => this.heroDeck;}
|
||||
public BattleDeck<MonsterCard> MonsterDeck {get => this.monsterDeck;}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue