Ejemplo n.º 1
0
        public static ColoredString Ability(Ability ability)
        {
            Color elementColor;

              switch (ability.element)
              {
            case EnumElement.COLD:
              elementColor = Color.DarkBlue;
              break;
            case EnumElement.FIRE:
              elementColor = Color.Blue;
              break;
            case EnumElement.HOLY:
              elementColor = Color.LightGoldenrodYellow;
              break;
            case EnumElement.LIGHTNING:
              elementColor = Color.Yellow;
              break;
            case EnumElement.PHYSICAL:
              elementColor = Color.Gray;
              break;
            case EnumElement.POISON:
              elementColor = Color.Green;
              break;
            case EnumElement.UNHOLY:
              elementColor = Color.Purple;
              break;
            default:
              elementColor = Color.Black;
              break;
              }
              return new ColoredString(elementColor, ability.Name);
        }
Ejemplo n.º 2
0
 public AbilityEventArgs(Character source, List<Character> targets, Ability ability)
 {
     this.Source = source;
     this.Targets = targets;
     this.Ability = ability;
 }