public Cell(Cell Cell_) { this.position = Cell_.position; this.type = Cell_.type; this.temperature = Cell_.temperature; this.color = Cell_.color; }
public Cell(_Point position, CellType type) { this.position = position; this.type = type; if (type == CellType.ColdSource) { temperature = Color_Mapper.minValue; } else if (type == CellType.HeatSource) { temperature = Color_Mapper.maxValue; } else if (type != CellType.Block) { temperature = (Color_Mapper.minValue + Color_Mapper.maxValue) / 2; } }