Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
egit hates me
  • Loading branch information
jjv14001 committed Apr 23, 2017
1 parent c928038 commit d317043
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions src/view/TileButton.java
Expand Up @@ -11,13 +11,14 @@ public class TileButton extends JButton {

private static final long serialVersionUID = 1L;
private Tile tile;
private int tileNumber;

public TileButton(String name, int TileOnBoard, GameBoard board) {
super(name);

tile = board.getTile(TileOnBoard);
// this.setOpaque(false);

this.setContentAreaFilled(false);
setTileNumber(TileOnBoard);
// this.setBorderPainted(false);
this.setVisible(true);

Expand All @@ -28,5 +29,30 @@ public class TileButton extends JButton {
public void paint(Graphics g) { // Do nothing here }

}




public Tile getTile() {
return tile;
}



public void setTile(Tile tile) {
this.tile = tile;
}



public int getTileNumber() {
return tileNumber;
}



public void setTileNumber(int tileNumber) {
this.tileNumber = tileNumber;
}

}

0 comments on commit d317043

Please sign in to comment.