Defines the Fighter data model, storing health, attack, defense, and a cursed status.
using System;
using System.Collections.Generic;
namespace Keyboard_Warriors_.Models
{
public struct Fighter
{
public int Hp { get; set; }
public int Attack { get; set; }
public int Defense { get; set; }
public bool Cursed { get; set; }
public Fighter( int hp, int attack, int defense, bool cursed = false )
{
Hp = hp;
Attack = attack;
Defense = defense;
Cursed = cursed;
}
}
}