Example #1
0
 public GridFloodAction(GridLayer gridLayer, int cellX, int cellY, bool setTo)
     : base(gridLayer)
 {
     CellX = cellX;
     CellY = cellY;
     SetTo = setTo;
 }
Example #2
0
 public GridDrawAction(GridLayer gridLayer, Point at, bool setTo)
     : base(gridLayer)
 {
     draw = new List<Point>();
     draw.Add(at);
     this.setTo = setTo;
 }
Example #3
0
        public GridSelection(GridLayer layer, Rectangle area)
        {
            Layer = layer;
            Area = area;

            Under = new bool[Area.Width, Area.Height];
        }
Example #4
0
        public GridSelection(GridLayer layer, Rectangle area)
        {
            Layer = layer;
            Area  = area;

            Under = new bool[Area.Width, Area.Height];
        }
        public GridPasteSelectionAction(GridLayer gridLayer, Rectangle area, bool[,] bits)
            : base(gridLayer)
        {
            newBits = bits;
            this.area = area;

            this.area.X = Math.Min(area.X, gridLayer.GridCellsX - area.Width);
            this.area.Y = Math.Min(area.Y, gridLayer.GridCellsY - area.Height);
        }
 public GridRectangleAction(GridLayer gridLayer, int cellX, int cellY, int width, int height, bool setTo)
     : base(gridLayer)
 {
     CellX = cellX;
     CellY = cellY;
     Width = width;
     Height = height;
     SetTo = setTo;
 }
Example #7
0
        public GridClipboardItem(Rectangle area, GridLayer layer)
            : base()
        {
            Area = area;

            Bits = new bool[Area.Width, Area.Height];
            for (int i = 0; i < Area.Width; i++)
                for (int j = 0; j < Area.Height; j++)
                    Bits[i, j] = layer.Grid[i + Area.X, j + Area.Y];
        }
 public GridClearSelectionAction(GridLayer gridLayer)
     : base(gridLayer)
 {
 }
 public GridMoveSelectionAction(GridLayer gridLayer, Point move)
     : base(gridLayer)
 {
     this.move = move;
 }
 public GridDeleteSelectionAction(GridLayer gridLayer)
     : base(gridLayer)
 {
 }
Example #11
0
 public GridAction(GridLayer gridLayer)
 {
     GridLayer = gridLayer;
 }
Example #12
0
 public GridLayerEditor(LevelEditor levelEditor, GridLayer layer)
     : base(levelEditor, layer)
 {
     Layer = layer;
 }
 public GridRectangleAction(GridLayer gridLayer, Rectangle rect, bool setTo)
     : this(gridLayer, rect.X, rect.Y, rect.Width, rect.Height, setTo)
 {
 }
Example #14
0
 public GridSelectAction(GridLayer gridLayer, Rectangle selectArea)
     : base(gridLayer)
 {
     this.selectArea = selectArea;
 }