mirror of
https://github.com/SamueleLorefice/isleBot.git
synced 2026-01-15 14:13:41 +00:00
Converted the project in C#, added Entity Framework Core.
This commit is contained in:
23
Card.cs
Normal file
23
Card.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user