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: a new Tile at (r, c), with g amount of gold, and Type t.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Return the column of this Tile.
|
int |
getGold()
Return the amount of gold on this Tile.
|
int |
getOriginalGold()
Return the original amount of gold on this tile (even if picked up.)
|
int |
getRow()
Return the row of this Tile.
|
Tile.Type |
getType()
Returns the Type of this Tile.
|
int |
takeGold()
Set the gold on this Node to 0 and returns the amount "picked up".
|
public Tile(int r, int c, int g, Tile.Type t)
public int getGold()
public int getOriginalGold()
public int getRow()
public int getColumn()
public Tile.Type getType()
public int takeGold()