/*
 * This file is a part of the SteamWar software.
 *
 * Copyright (C) 2020  SteamWar.de-Serverteam
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

package de.steamwar.bausystem.world.regions;

import de.steamwar.bausystem.world.Color;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public class PasteOptions {

    /**
     * Used in 1.12 and 1.15
     */
    private boolean rotate = false;

    /**
     * Used in 1.12 and 1.15
     */
    private boolean ignoreAir = false;

    /**
     * Used in 1.15
     */
    private Color color = Color.YELLOW;

    /**
     * Used in 1.15
     */
    private boolean reset = false;

    /**
     * Used in 1.15
     */
    private Point minPoint = null;

    /**
     * Used in 1.15
     */
    private Point maxPoint = null;

    /**
     * Used in 1.15
     */
    private int waterLevel = 0;

    public PasteOptions(boolean rotate) {
        this.rotate = rotate;
    }

    public PasteOptions(boolean rotate, Color color) {
        this.rotate = rotate;
        this.color = color;
    }

    public PasteOptions(boolean rotate, boolean ignoreAir) {
        this.rotate = rotate;
        this.ignoreAir = ignoreAir;
    }

    public PasteOptions(boolean rotate, boolean ignoreAir, boolean reset) {
        this.rotate = rotate;
        this.ignoreAir = ignoreAir;
        this.reset = reset;
    }

    public PasteOptions(boolean rotate, Color color, boolean reset) {
        this.rotate = rotate;
        this.color = color;
        this.reset = reset;
    }

    public PasteOptions(boolean rotate, boolean ignoreAir, Color color) {
        this.rotate = rotate;
        this.ignoreAir = ignoreAir;
        this.color = color;
    }

}
