A C D E G H I L M N O P R S T X 

A

addCreature(Creature) - Method in class Room
Adds a creature to the Room
addRoom(Room, int) - Method in class Room
Adds a room to the Room
allRoomsFull() - Method in class Creature
Determine if all of the adjacent rooms are full or not
Animal - Class in <Unnamed>
 
Animal(String, String) - Constructor for class Animal
 
append(E) - Method in class LinkedList
Append a node containing a creature to the linked list

C

checkRoom() - Method in class Animal
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
checkRoom() - Method in class Creature
 
checkRoom() - Method in class NPC
Checks to see if the room is suitable for the NPC
checkRoom() - Method in class PC
 
clean() - Method in class Animal
Clean the room
clean() - Method in class Creature
 
clean() - Method in class NPC
Clean the room
clean() - Method in class PC
 
clean() - Method in class Room
clean the room by one state
coerceDirection(int) - Method in class Room
represent the numerical direction as a string
compareTo(Creature) - Method in class Creature
Compare one creature to another creature
compareTo(String) - Method in class Creature
Compare one creature to a string
copy() - Method in class LinkedList
Make a copy of the data structure
Creature - Class in <Unnamed>
 
Creature(String, String) - Constructor for class Creature
 
creatures - Variable in class Room
 
current - Variable in class LinkedList.LinkedListIterator
 
current_room - Variable in class XMLHandler
 

D

decreaseRespect() - Method in class PC
Decrease the players respect
description - Variable in class Creature
 
description - Variable in class Room
 
determineOutcome() - Method in class PC
Check and see if the game is over or not
dirty() - Method in class Animal
Dirty the room
dirty() - Method in class Creature
 
dirty() - Method in class NPC
Dirty the room
dirty() - Method in class PC
 
dirty() - Method in class Room
dirty the room by one state
drillThroughRoof() - Method in class Creature
Force the Creature to leave the house and remove all references of it

E

endGame(int) - Method in class PC
Shuts the game down
exists(E) - Method in class LinkedList
Checks to see if the object o is inside the list
expressDiscontent() - Method in class Animal
Decrease the players respect
expressDiscontent() - Method in class Creature
 
expressDiscontent() - Method in class NPC
Decrease the players respect
expressDiscontent() - Method in class PC
 
expressGladness() - Method in class Animal
increase the players respect
expressGladness() - Method in class Creature
 
expressGladness() - Method in class NPC
increase the players respect
expressGladness() - Method in class PC
 

G

get() - Method in class LinkedList.Node
 
getCreatures() - Method in class Room
Get the array of creatures
getDescription() - Method in class Room
Get the description of the room
getIndexOfObject(E) - Method in class LinkedList
Gets the object at given index
getNodeAtIndex(int) - Method in class LinkedList
Gets the node at given index
getNumberOfCreatures() - Method in class Room
return the total number of creatures currently in the room
getObjectAtIndex(int) - Method in class LinkedList
Gets the object at given index
getPlayer() - Method in class Room
Gets the player within the room
getPlayer() - Method in class XMLHandler
 
getRespect() - Method in class PC
Gets the respect value for the PC
getRoom() - Method in class Creature
Gets the room the animal is in
getRoom(int) - Method in class Room
Gets a room from a direction
getRooms() - Method in class XMLHandler
 
getState() - Method in class Creature
Gets the state of the room
getState() - Method in class Room
Gets the state of the Room

H

handleDirection(String, int) - Method in class XMLHandler
Refactor of previously messy code to handle direction attributes for rooms
hasNext() - Method in class LinkedList.LinkedListIterator
 
head - Variable in class LinkedList
 

I

increaseRespect() - Method in class PC
Increase the players respect
insertAt(int, E) - Method in class LinkedList
Insert an object o into the linked list at position index.
isEmpty() - Method in class LinkedList
 
iterator() - Method in class LinkedList
Allow the linked list to be iterable

L

l - Variable in class LinkedList.LinkedListIterator
 
length - Variable in class LinkedList
 
length() - Method in class LinkedList
The total number of nodes in the list
LinkedList<E> - Class in <Unnamed>
Linked List implementation which stores the reference to the creatures in each of the rooms.
LinkedList() - Constructor for class LinkedList
 
LinkedList(E) - Constructor for class LinkedList
 
LinkedList.LinkedListIterator<E> - Class in <Unnamed>
Iterator class for better loop iteration
LinkedList.LinkedListIterator(LinkedList<E>) - Constructor for class LinkedList.LinkedListIterator
 
LinkedList.Node<T> - Class in <Unnamed>
Node data structure which the linked list refers to
LinkedList.Node() - Constructor for class LinkedList.Node
 
LinkedList.Node(T) - Constructor for class LinkedList.Node
 
LinkedList.Node(T, LinkedList<E>.Node<T>) - Constructor for class LinkedList.Node
 
LinkedList.Node(T, LinkedList<E>.Node<T>, LinkedList<E>.Node<T>) - Constructor for class LinkedList.Node
 
LinkedListException - Exception in <Unnamed>
Give some super duper cool custom exception handelers to the LinkedList class
LinkedListException(String) - Constructor for exception LinkedListException
 

M

Main - Class in <Unnamed>
 
Main() - Constructor for class Main
 
main(String[]) - Static method in class Main
 
moveDirection(int) - Method in class Creature
Move the creature in a specified direction, based on the same movement mechanic used in room
moveRoom(Room) - Method in class Creature
moves creature from one room to another
moveRoom(Room) - Method in class PC
moves creature from one room to another

N

name - Variable in class Creature
 
name() - Method in class Creature
Gets only the name of the Creature
name - Variable in class Room
 
name() - Method in class Room
name
next() - Method in class LinkedList.LinkedListIterator
 
next - Variable in class LinkedList.Node
 
next(LinkedList<E>.Node<T>) - Method in class LinkedList.Node
 
next() - Method in class LinkedList.Node
 
notifyCreature() - Method in class Animal
Do a whole heap of things, commented inline
notifyCreature() - Method in class Creature
 
notifyCreature() - Method in class NPC
Do a whole heap of things, commented inline (in Animal)
notifyCreature() - Method in class PC
 
notifyCreatures() - Method in class Room
Notify all animals in the room of a state change
NPC - Class in <Unnamed>
 
NPC(String, String) - Constructor for class NPC
 

O

object - Variable in class LinkedList.Node
 

P

PC - Class in <Unnamed>
 
PC(String, String) - Constructor for class PC
 
play(Scanner) - Method in class PC
The main play method, which implements the commands present
player - Variable in class Room
 
player - Variable in class XMLHandler
 
prepend(E) - Method in class LinkedList
Prepend a node containing a creature to the linked list
prev - Variable in class LinkedList.Node
 
prev(LinkedList<E>.Node<T>) - Method in class LinkedList.Node
 
prev() - Method in class LinkedList.Node
 

R

remove() - Method in class LinkedList.LinkedListIterator
 
remove(E) - Method in class LinkedList
 
removeAt(int) - Method in class LinkedList
 
removeCreature(Creature) - Method in class Room
Remove creature from Room
respect - Variable in class PC
 
room - Variable in class Creature
 
Room - Class in <Unnamed>
 
Room(String, String) - Constructor for class Room
 
Room() - Constructor for class Room
 
rooms - Variable in class Room
 
rooms - Variable in class XMLHandler
 

S

searchCreature(String, LinkedList<Creature>, int, int) - Method in class Room
Deprecated.
searchCreature(String) - Method in class Room
 
serialVersionUID - Static variable in exception LinkedListException
 
set(T) - Method in class LinkedList.Node
 
setDescription(String) - Method in class Creature
Sets the description of the creature
setDescription(String) - Method in class Room
Sets the description of the room
setName(String) - Method in class Creature
Sets the name of the creature
setPlayer(PC) - Method in class Room
Sets the player in the room or not
setResepect(int) - Method in class PC
Sets the respect value for the PC
setRoom(Room) - Method in class Creature
Sets the current Room
setRoomState(String) - Method in class Creature
Sets the state of the room
setState(String) - Method in class Creature
Sets the state of the room
setState(String) - Method in class Room
Sets the state of the Room
shallowCopy() - Method in class LinkedList
Make a shallow copy of the data structure, only copying the reference to each rather than create a deep copy of each
sortRoom(LinkedList<Creature>, int, int) - Method in class Room
Deprecated.
sortRoom() - Method in class Room
Deprecated.
startElement(String, String, String, Attributes) - Method in class XMLHandler
 
state - Variable in class Creature
 
state - Variable in class Room
 
swap(int, int) - Method in class LinkedList
Not enough time to implement this method

T

tail - Variable in class LinkedList
 
toString() - Method in class Creature
 
toString() - Method in class LinkedList.Node
 
toString() - Method in class Room
Override method to print out the room name and animals in it
tryToMove(int) - Method in class PC
Try to attempt to move to another room

X

XMLHandler - Class in <Unnamed>
This class handles the XML parsing in what I think is the most efficient way.
XMLHandler() - Constructor for class XMLHandler
 
A C D E G H I L M N O P R S T X 

Harry Scells 2015 CSC241