Files
IsleBot/Card.cs
2023-11-06 20:38:28 +01:00

24 lines
589 B
C#

namespace IsleBot;
public class Card
{
public string Name { get; set; }
public int Attack { get; set; }
public int Defense { get; set; }
public int MaxHealth { get; set; }
public int CurrentHealth { get; set; }
public override string ToString() {
return $"{Name} ATK: {Attack} DEF: {Defense} HP: {CurrentHealth}/{MaxHealth}";
}
public Card(string name, int attack, int defense, int maxHealth) {
Name = name;
Attack = attack;
Defense = defense;
MaxHealth = maxHealth;
CurrentHealth = maxHealth;
}
}