Simple data struct representing a fighter's stats in the Keyboard_Warriors_ game. It stores HP, attack, defense and a cursed flag and provides a constructor to initialize them.
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;
}
}
}