示例#1
0
 public WaterField(int width, int height, PipeGrid pipeGrid)
 {
     Width  = width;
     Height = height;
     Reset();
     PipeGrid = pipeGrid;
 }
示例#2
0
 public WaterCell(int x, int y, PipeGrid pipeGrid)
 {
     X      = x;
     Y      = y;
     Volume = 0;
     LastDistributedToLeft = false;
     PipeGrid = pipeGrid;
 }
示例#3
0
文件: Level.cs 项目: ded914/FillPipes
 public Level(int id, PipeGrid pipeGrid, WaterCell initCell)
 {
     Id            = id;
     Cells         = new List <WaterCell>();
     UpCells       = new List <WaterCell>();
     PipeGrid      = pipeGrid;
     UpCellsFilled = false;
     InitCell      = initCell;
 }