Add numbers

This commit is contained in:
Marvin Rohrbach
2018-05-25 11:30:18 +02:00
parent 36adef58f2
commit 002a851fc2
2 changed files with 4 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ namespace CoopSweeper.GameTypes
public FieldState State { get; set; }
public int SurroundingBombs { get; set; }
public int CheckID { get; set; }
public DisplayState GetDisplayState()
@@ -31,7 +32,7 @@ namespace CoopSweeper.GameTypes
case FieldState.REVEALED:
if(ContainsBomb)
return DisplayState.BOMB;
return 0;
return (DisplayState)SurroundingBombs;
}
return DisplayState.ERROR;
}