public Tile(Tile oldTile, GraphicsItem symbol, RLColor fg, RLColor bg, bool?walkable = null, bool?transparent = null, int?food = null, int?production = null, int?movementRequired = null, Resource?resource = null) { X = oldTile.X; Y = oldTile.Y; Walkable = walkable ?? oldTile.Walkable; Transparent = transparent ?? oldTile.Transparent; Food = food ?? oldTile.Food; Production = production ?? oldTile.Production; MovementRequired = movementRequired ?? oldTile.MovementRequired; Resource = resource ?? oldTile.Resource; Symbol = symbol; ForegroundColor = fg; BackgroundColor = bg; WasUpdated = true; }
public Tile(int x, int y, bool walkable, bool transparent, int food, int production, int movementRequired, Resource?resource, GraphicsItem symbol, RLColor fg, RLColor bg, ICell cell) { X = x; Y = y; Walkable = walkable; Transparent = transparent; Food = food; Production = production; MovementRequired = movementRequired; Resource = resource; ForegroundColor = fg; BackgroundColor = bg; Symbol = symbol; Cell = cell; }