Example #1
0
 public WaterField(int width, int height, PipeGrid pipeGrid)
 {
     Width  = width;
     Height = height;
     Reset();
     PipeGrid = pipeGrid;
 }
Example #2
0
 public WaterCell(int x, int y, PipeGrid pipeGrid)
 {
     X      = x;
     Y      = y;
     Volume = 0;
     LastDistributedToLeft = false;
     PipeGrid = pipeGrid;
 }
Example #3
0
 public Level(int id, PipeGrid pipeGrid, WaterCell initCell)
 {
     Id            = id;
     Cells         = new List <WaterCell>();
     UpCells       = new List <WaterCell>();
     PipeGrid      = pipeGrid;
     UpCellsFilled = false;
     InitCell      = initCell;
 }