public TargetingStrategyButton(ContentControl container, Actor actor, TargetingStrategy strategy, Texture2D texture)
 {
     this.container = container;
     this.Actor = actor;
     this.TargetingStrategy = strategy;
     this.texture = texture;
 }
Beispiel #2
0
        private Color GetTargetingStrategyColor(TargetingStrategy strategy)
        {
            if (player.UnlockedTargetingStrategies.Contains(strategy.Value))
                return Color.LightGreen;

            if (strategy.Cost > player.Gold)
                return Color.Salmon;

            return Color.LightGray;
        }
Beispiel #3
0
 private void BuyTargettingStrategy(TargetingStrategy item)
 {
     if (item != null)
     {
         //player.Gold -= item.Cost;
         player.UnlockedTargetingStrategies.Add(item.Value);
     }
 }