|
|
@ -8,26 +8,26 @@ namespace Models.Game
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class Game
|
|
|
|
public class Game
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public Player CurentPlayer { get; set; }
|
|
|
|
public Player CurrentPlayer { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Map UsedMap { get; set; }
|
|
|
|
private Map UsedMap { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public De Dice1 { get; set; }
|
|
|
|
private De Dice1 { get; set; }
|
|
|
|
public De Dice2 { get; set; }
|
|
|
|
private De Dice2 { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public int Turn { get; set; }
|
|
|
|
private int Turn { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public Rules.Rules rules { get; set; }
|
|
|
|
private Rules.Rules Rules { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Game(Player player,Map map)
|
|
|
|
public Game(Player player,Map map)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UsedMap = map;
|
|
|
|
UsedMap = map;
|
|
|
|
CurentPlayer = player;
|
|
|
|
CurrentPlayer = player;
|
|
|
|
Dice1 = new De();
|
|
|
|
Dice1 = new De();
|
|
|
|
Dice2 = new De(1);
|
|
|
|
Dice2 = new De(1);
|
|
|
|
Turn = 0;
|
|
|
|
Turn = 0;
|
|
|
|
rules = new Rules.Rules();
|
|
|
|
Rules = new Rules.Rules();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void ThrowDice()
|
|
|
|
public void ThrowDice()
|
|
|
@ -67,17 +67,15 @@ namespace Models.Game
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(rules.NearCell(playerChoice,UsedMap.Cells))
|
|
|
|
if(Rules.NearCell(playerChoice,UsedMap.Cells))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
playerChoice.Value = result;
|
|
|
|
playerChoice.Value = result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void AddRopeZone(Cell playerChoice,RopesZones list)
|
|
|
|
public void AddRopeZone(Cell playerChoice,RopesZones list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|