| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name |
private World |
w |
private int |
x |
private int |
y |
| Constructor and Description |
|---|
Tiger(java.lang.String name,
int x,
int y) |
| Modifier and Type | Method and Description |
|---|---|
void |
check() |
private void |
checkAjacent() |
private void |
moveRandom() |
void |
run() |
java.lang.String |
toString() |
int |
type() |
public Tiger(java.lang.String name, int x, int y) throws SpaceOccupiedException
SpaceOccupiedExceptionpublic java.lang.String toString()
toString in class java.lang.Objectprivate void checkAjacent()
private void moveRandom()