public class Animal extends Creature
Constructor and Description |
---|
Animal(java.lang.String n,
java.lang.String d) |
Modifier and Type | Method and Description |
---|---|
void |
checkRoom()
Check to see if the room is suitable for the Animal to live in and then
clean the room if it doesn't like it
|
void |
clean()
Clean the room
|
void |
dirty()
Dirty the room
|
void |
expressDiscontent()
Decrease the players respect
|
void |
expressGladness()
increase the players respect
|
void |
notifyCreature()
Do a whole heap of things, commented inline
|
allRoomsFull, compareTo, compareTo, drillThroughRoof, getRoom, getState, moveDirection, moveRoom, name, setDescription, setName, setRoom, setRoomState, setState, toString
public void expressGladness()
expressGladness
in class Creature
public void expressDiscontent()
expressDiscontent
in class Creature
public void notifyCreature()
notifyCreature
in class Creature
Harry Scells 2015 CSC241