Commits

Anonymous committed f070f54

added copy constructor for Tile

Comments (0)

Files changed (1)

src/main/java/net/fishbulb/jcod/display/Tile.java

     public Tile(Drawable glyph, Color fgColor, Color bgColor) {
         this(glyph, fgColor.toIntBits(), bgColor.toIntBits());
     }
+
+    public Tile(Tile that) {
+        this(that.glyph, that.fg, that.bg);
+    }
 }