Add project files.
This commit is contained in:
20
RPGLibrary.Implementation/Attribute/DefenseAttribute.cs
Normal file
20
RPGLibrary.Implementation/Attribute/DefenseAttribute.cs
Normal 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}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
18
RPGLibrary.Implementation/Attribute/HP.cs
Normal file
18
RPGLibrary.Implementation/Attribute/HP.cs
Normal 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})";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
13
RPGLibrary.Implementation/Attribute/Speed.cs
Normal file
13
RPGLibrary.Implementation/Attribute/Speed.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace RPGLibrary.Implementation
|
||||
{
|
||||
public class Speed
|
||||
{
|
||||
public Speed(double value)
|
||||
{
|
||||
Value = value;
|
||||
}
|
||||
|
||||
public double Value { get; }
|
||||
}
|
||||
|
||||
}
|
||||
20
RPGLibrary.Implementation/Attribute/StrengthAttribute.cs
Normal file
20
RPGLibrary.Implementation/Attribute/StrengthAttribute.cs
Normal 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}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user