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.
48 lines
1.0 KiB
48 lines
1.0 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Model
|
|
{
|
|
public class Turn
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public int DiceValue1
|
|
{
|
|
get => diceValue1;
|
|
set
|
|
{
|
|
if (value > 6)
|
|
{
|
|
throw new ArgumentException("a Cell must have a value lower or equal to 12");
|
|
}
|
|
diceValue1 = value;
|
|
}
|
|
}
|
|
private int diceValue1;
|
|
|
|
public int DiceValue2
|
|
{
|
|
get => diceValue2;
|
|
set
|
|
{
|
|
if (value > 6)
|
|
{
|
|
throw new ArgumentException("a Cell must have a value lower or equal to 12");
|
|
}
|
|
diceValue2 = value;
|
|
}
|
|
}
|
|
private int diceValue2;
|
|
|
|
public Turn(int diceValue1, int diceValue2)
|
|
{
|
|
DiceValue1 = diceValue1;
|
|
DiceValue2 = diceValue2;
|
|
}
|
|
}
|
|
}
|