001package squidpony.squidgrid.mapping.styled;
002
003/**
004 * Part of the JSON that defines a tileset.
005 * Created by Tommy Ettinger on 3/10/2015.
006 */
007public class Tile {
008
009    public int a_constraint, b_constraint, c_constraint, d_constraint, e_constraint, f_constraint, width, height;
010    public long[] data;
011
012    /**
013     * Probably not something you will construct manually. See DungeonBoneGen .
014     */
015    public Tile() {
016        a_constraint = 0;
017        b_constraint = 0;
018        c_constraint = 0;
019        d_constraint = 0;
020        e_constraint = 0;
021        f_constraint = 0;
022        width = 0;
023        height = 0;
024        data = new long[0];
025    }
026
027    /**
028     * Constructor used internally.
029     *
030     * @param a_constraint
031     * @param b_constraint
032     * @param c_constraint
033     * @param d_constraint
034     * @param e_constraint
035     * @param f_constraint
036     * @param data
037     */
038    public Tile(int a_constraint, int b_constraint, int c_constraint, int d_constraint, int e_constraint,
039                int f_constraint, int width, int height, long... data) {
040        this.a_constraint = a_constraint;
041        this.b_constraint = b_constraint;
042        this.c_constraint = c_constraint;
043        this.d_constraint = d_constraint;
044        this.e_constraint = e_constraint;
045        this.f_constraint = f_constraint;
046        this.width = width;
047        this.height = height;
048        this.data = data;
049    }
050}