Added interface and equipment
This commit is contained in:
22
PeopleVille/Equipment/Food.cs
Normal file
22
PeopleVille/Equipment/Food.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace PeopleVille.Equipment
|
||||||
|
{
|
||||||
|
public class Food : IEquipment
|
||||||
|
{
|
||||||
|
public required string Name { get; set; }
|
||||||
|
public int HealthPoints { get; set; }
|
||||||
|
|
||||||
|
public void Equip()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Unequip()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
22
PeopleVille/Equipment/Gun.cs
Normal file
22
PeopleVille/Equipment/Gun.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace PeopleVille.Equipment
|
||||||
|
{
|
||||||
|
public class Gun : IEquipment
|
||||||
|
{
|
||||||
|
public required string Name { get; set; }
|
||||||
|
public int Damage { get; set; }
|
||||||
|
|
||||||
|
public void Equip()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Unequip()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
8
PeopleVille/IEquipment.cs
Normal file
8
PeopleVille/IEquipment.cs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
namespace PeopleVille
|
||||||
|
{
|
||||||
|
interface IEquipment
|
||||||
|
{
|
||||||
|
public void Equip();
|
||||||
|
public void Unequip();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user