Пример #1
0
 private void HandleAngleDR(Cell root, sbyte value)
 {
     root.AdjustResidents(value);
     root.BottomNeighbour.AdjustResidents(value);
     root.RightNeighbour.AdjustResidents(value);
 }
Пример #2
0
 private void HandleAngleUL(Cell root, sbyte value)
 {
     root.AdjustResidents(value);
     root.TopNeighbour.AdjustResidents(value);
     root.LeftNeighbour.AdjustResidents(value);
 }
Пример #3
0
 private void HandleHline(Cell root, sbyte value)
 {
     root.AdjustResidents(value);
     root.LeftNeighbour.AdjustResidents(value);
     root.RightNeighbour.AdjustResidents(value);
 }
Пример #4
0
 private void HandleVline(Cell root, sbyte value)
 {
     root.AdjustResidents(value);
     root.TopNeighbour.AdjustResidents(value);
     root.BottomNeighbour.AdjustResidents(value);
 }
Пример #5
0
 private void HandlePlus(Cell root, sbyte value)
 {
     root.AdjustResidents(value);
     root.TopNeighbour.AdjustResidents(value);
     root.BottomNeighbour.AdjustResidents(value);
     root.LeftNeighbour.AdjustResidents(value);
     root.RightNeighbour.AdjustResidents(value);
 }
Пример #6
0
 private void HandleNinetile(Cell root, sbyte value)
 {
     root.AdjustResidents(value);
     root.TopNeighbour.AdjustResidents(value);
     root.BottomNeighbour.AdjustResidents(value);
     root.LeftNeighbour.AdjustResidents(value);
     root.RightNeighbour.AdjustResidents(value);
     root.TopLeftNeighbour.AdjustResidents(value);
     root.TopRightNeighbour.AdjustResidents(value);
     root.BottomLeftNeighbour.AdjustResidents(value);
     root.BottomRightNeighbour.AdjustResidents(value);
 }