public bool PlaceTile(Tile tile, GridPoint point) { if (!CanTileBePlaced(tile, point)) { return(false); } for (int y = 0; y < tile.Height; y += 1) { for (int x = 0; x < tile.Width; x += 1) { int tileYPosition = y + point.Y; int tileXPosition = x + point.X; SetAt(tileXPosition, tileYPosition, 1); } } return(true); }
public void SetPlacedPoint(GridPoint coordinates) { IsPlaced = true; Coordinates = coordinates; }