Add project files.

This commit is contained in:
2023-02-28 19:15:03 -08:00
parent 24cdd62c8a
commit c13f80e2ab
24 changed files with 459 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using RPGLibrary.Abstraction.Attribute;
namespace RPGLibrary.Implementation
{
public class DefenseAttribute : IAttribute
{
public DefenseAttribute(double value)
{
Value = value;
}
public double Value { get; }
public override string? ToString()
{
return $"Defense: {Value}";
}
}
}

View File

@@ -0,0 +1,18 @@
using RPGLibrary.Attribute;
namespace RPGLibrary.Implementation
{
public class HP : PoolAttribute
{
public HP(double current, double maximum)
: base(current, maximum)
{
}
public override string? ToString()
{
return $"HP: ({Value}/{Maximum})";
}
}
}

View File

@@ -0,0 +1,13 @@
namespace RPGLibrary.Implementation
{
public class Speed
{
public Speed(double value)
{
Value = value;
}
public double Value { get; }
}
}

View File

@@ -0,0 +1,20 @@
using RPGLibrary.Abstraction.Attribute;
namespace RPGLibrary.Implementation
{
public class StrengthAttribute : IAttribute
{
public StrengthAttribute(double value)
{
Value = value;
}
public double Value { get; }
public override string? ToString()
{
return $"Strength: {Value}";
}
}
}