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.
35 lines
794 B
35 lines
794 B
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace Model
|
|
{
|
|
public abstract class Die
|
|
{
|
|
private String name ;
|
|
/// <summary>
|
|
/// Proprieté
|
|
/// </summary>
|
|
public string Name
|
|
{
|
|
get
|
|
{
|
|
return name;
|
|
|
|
}
|
|
protected set //pour que je puissse l'utilser sur la classe file
|
|
{
|
|
if (string.IsNullOrWhiteSpace(value))
|
|
{
|
|
throw new ArgumentException("Enter a name", nameof(value));
|
|
}
|
|
name = value;
|
|
}
|
|
}
|
|
public Die(String name)
|
|
{
|
|
Name = name;
|
|
}
|
|
|
|
public abstract int RandomFace();
|
|
|
|
}
|
|
} |