Create TurnIntentions
This commit is contained in:
parent
838c30af99
commit
94b3309bb7
9 changed files with 181 additions and 32 deletions
|
|
@ -26,7 +26,8 @@ public class BattlePlayerControls : MonoBehaviour
|
|||
public void Init(
|
||||
BattleDeck<HeroCard> heroDeck, BattleDeck<MonsterCard> monsterDeck, PlayArea playArea,
|
||||
InsightLevel insightLevel, HandPlayability<HeroCard> heroHandPlayability,
|
||||
HandPlayability<MonsterCard> monsterHandPlayability, float scale) {
|
||||
HandPlayability<MonsterCard> monsterHandPlayability,
|
||||
TurnIntentions<MonsterCard> monsterIntentions, float scale) {
|
||||
this.heroDeck = heroDeck;
|
||||
this.monsterDeck = monsterDeck;
|
||||
this.playArea = playArea;
|
||||
|
|
@ -35,11 +36,12 @@ public class BattlePlayerControls : MonoBehaviour
|
|||
|
||||
this.heroHandControls = new HandControls<HeroCard>(
|
||||
heroDeck, this.uiCanvas, this.cardPrefab, HandControlsPosition.Bottom,
|
||||
TeamChoice.Heroes, int.MaxValue, heroHandPlayability, this.scale);
|
||||
TeamChoice.Heroes, int.MaxValue, heroHandPlayability, null, this.scale);
|
||||
this.heroHandControls.OnCardClicked += OnHeroCardClicked;
|
||||
this.monsterHandControls = new HandControls<MonsterCard>(
|
||||
monsterDeck, this.uiCanvas, this.cardPrefab, HandControlsPosition.Top,
|
||||
TeamChoice.Monsters, insightLevel.Level, monsterHandPlayability, this.scale);
|
||||
TeamChoice.Monsters, insightLevel.Level, monsterHandPlayability, monsterIntentions,
|
||||
this.scale);
|
||||
this.monsterHandControls.OnCardClicked += OnMonsterCardClicked;
|
||||
this.cardsInPlayUIs = new Dictionary<BaseCard, GameObject>();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue