You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dice_app/Sources/Model/Dice/Faces/AbstractDieFace.cs

27 lines
692 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model.Dice.Faces
{
public abstract class AbstractDieFace
{
/// <summary>
/// every die face has a value, and they can all be represented by an int,
/// even if they're not litterally a decimal number
/// <br/>
/// USE GetPracticalValue for a Value specific to face type
/// </summary>
protected abstract int Value { get; }
public abstract object GetPracticalValue();
public override string ToString()
{
return GetPracticalValue().ToString();
}
}
}