Skip to content
Permalink
Browse files

egit hates me

  • Loading branch information
jjv14001 committed Apr 23, 2017
1 parent c928038 commit d317043d89b78834d20da9369e17985fd24e7418
Showing with 28 additions and 2 deletions.
  1. +28 −2 src/view/TileButton.java
@@ -11,13 +11,14 @@

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);

@@ -28,5 +29,30 @@ public TileButton(String name, int TileOnBoard, GameBoard board) {
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.
You can’t perform that action at this time.