public Cell(Cell copy) : this() { IsBlocking = copy.IsBlocking; BBoundingBoxes = new List<BBoundingBox>(); EBoundingBoxes = new List<EBoundingBox>(); foreach (KeyValuePair<UInt32, Tile> tLayer in copy.TileLayers) TileLayers.Add(tLayer.Key, new Tile(tLayer.Value)); Position = copy.Position; }
public void SetCell(Int32 x, Int32 y, Cell cell) { cell.Position = new Vector2f( GameData.TILE_SIZE * x, GameData.TILE_SIZE * y); CellSet[y, x] = cell; }