public class Tile
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Tile.Type
An enum representing the different types of Tiles that may appear in a
cavern.
|
Constructor and Description |
---|
Tile(int r,
int c,
int g,
Tile.Type t)
Constructor: an instance with row r, column c, gold g, and Type t.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Return the column of this Tile.
|
int |
getOriginalGold()
Return the original gold on this tile.
|
int |
getRow()
Return the row of this Tile.
|
Tile.Type |
getType()
Return the Type of this Tile.
|
int |
gold()
Return the amount of gold on this Tile.
|
int |
takeGold()
Set the gold on this Node to 0 and return the amount "taken"
|
public Tile(int r, int c, int g, Tile.Type t)
public int gold()
public int getOriginalGold()
public int getRow()
public int getColumn()
public Tile.Type getType()
public int takeGold()