-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSlice.cs
More file actions
44 lines (34 loc) · 932 Bytes
/
Slice.cs
File metadata and controls
44 lines (34 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
namespace GoogleHashCode19
{
public class Slice
{
public int RowFrom, ColumnFrom;
public int RowTo, ColumnTo;
public Types SliceType;
public enum Types
{
SLICE_HORIZONTAL = 0,
SLICE_VERTICAL = 1
}
public struct Ingredients
{
public int TomatosTotal;
public int MushroomsTotal;
}
public Ingredients SliceIngredients;
public int PortionsTotal;
public Slice(Types SliceType)
{
this.SliceType = SliceType;
SliceIngredients = new Ingredients();
}
public void AddIngredients(Ingredients Ingredients)
{
SliceIngredients = Ingredients;
}
public override string ToString()
{
return string.Format("{0} {1} {2} {3}", RowFrom, ColumnFrom, RowTo, ColumnTo);
}
}
}