A C D E G I L M N P Q R S T W

A

allMonstersDead() - Method in class Map
 
askYesNoQuestion(String) - Static method in class Parser
This method asks the question passed as a parameter, and keeps asking it until a yes or no answer is obtained.
ATTACK - Static variable in class Parser
The value that Parser.parse() returns if the user enters 'attack' to attack the creature in the room.

C

calcHitDamage() - Method in class Creature
Calculates how much damage the creature did on a successful attack.
connectAllRooms() - Method in class Map
 
connectRooms(Room, Room) - Static method in class Map
 
constructHitString(Creature) - Method in class Creature
Returns a String stating that the creature successfully hit the passed opponent.
constructMissString(Creature) - Method in class Creature
Returns a String stating that the creature successfully missed the passed opponent.
Creature - Class in <Unnamed>
This class represents a Creature within our game.
Creature() - Constructor for class Creature
Creates a default creature.
Creature(int, int, int, int, String, String, String) - Constructor for class Creature
Creates a creature with the attributes set to the passed values.

D

Descriptions - Class in <Unnamed>
This class allows for the random generation of words for the game: room adjectives ('stinky', 'carpeted', etc.), room types ('hallway', 'attic', etc.), monster names ('troll', 'dragon', etc.), and weapon names ('katana', 'sai', etc.).
Descriptions() - Constructor for class Descriptions
The default constructor, it creates a Descriptions object.
DO_NOT_UNDERSTAND - Static variable in class Parser
The value that Parser.parse() returns if it did not understand what the user entered.

E

EAST - Static variable in class Parser
The value that Parser.parse() returns if the user enters 'east' to move to the room to the east.
enterRoom(Creature) - Method in class Room
The main method for doing an action within a room.

G

Game - Class in <Unnamed>
This class contains the main() method used to run the game.
generateMaze() - Method in class Map
 
GET - Static variable in class Parser
The value that Parser.parse() returns if the user enters 'get' to pick up the weapon in the room.
getAngry() - Method in class Creature
Returns whether the creature is angry or not
getArmorClass() - Method in class Creature
Gets the creature's armor class
getCol() - Method in class Room
Returns the column where this Room object is located within the 2-dimensional array in the Map
getCurrentRoom() - Static method in class Game
This method is used (by the Game.main(String[]) to get the current room that the player is in.
getDamageModifier() - Method in class Weapon
Returns the damage modifier for this weapon
getDescription() - Method in class Room
Returns the String description of this Room
getFullName() - Method in class Weapon
Returns the full name (including adjective) for this weapon.
getHeight() - Method in class Map
 
getHitPoints() - Method in class Creature
Gets the creature's hit points
getHitVerb() - Method in class Weapon
Returns the hit verb for this weapon (i.e., 'hits', 'whacks', etc.)
getItem() - Method in class Room
Returns the weapon (if any) in this Room;
getMaxMonsterArmorClass() - Method in class Map
 
getMaxMonsterHitPoints() - Method in class Map
 
getMaxMonsterSkill() - Method in class Map
 
getMaxMonsterStrength() - Method in class Map
 
getMaxWeaponDamageMod() - Method in class Map
 
getMissVerb() - Method in class Weapon
Returns the miss verb for this weapon (i.e., 'misses', 'whiffs', etc.)
getMonster() - Method in class Room
Returns the creature (if any) in this Room;
getName() - Method in class Creature
Gets the creature's name (i.e., 'Frodo')
getName() - Method in class Weapon
Returns the base name for this weapon (i.e., 'katana', 'sai', etc.).
getNextMonsterName() - Method in class Descriptions
Returns a random moster type ('troll', 'dragon', etc.)
getNextRoomAdjective() - Method in class Descriptions
Returns random room adjective ('stinky', 'carpeted', etc.).
getNextRoomType() - Method in class Descriptions
Returns a random room type ('hallway', 'attic', etc.).
getNextWeaponName() - Method in class Descriptions
Returns a random weapon type ('katana', 'sai', etc.).
getPronoun() - Method in class Creature
Gets the creature's pronoun (i.e., 'his', her', 'its', etc.)
getRoom(int, int) - Method in class Map
 
getRoomToEast() - Method in class Room
Gets the Room through the east door of this Room
getRoomToNorth() - Method in class Room
Gets the Room through the north door of this Room
getRoomToSouth() - Method in class Room
Gets the Room through the south door of this Room
getRoomToWest() - Method in class Room
Gets the Room through the west door of this Room
getRow() - Method in class Room
Returns the row where this Room object is located within the 2-dimensional array in the Map
getSkill() - Method in class Creature
Gets the creature's skill level
getStrength() - Method in class Creature
Gets the creature's strength
getType() - Method in class Creature
Gets the creature's type (i.e., 'hobbit')
getUnvisitedNeighbors(Room) - Method in class Map
 
getWeapon() - Method in class Creature
Gets the creature's weapon
getWidth() - Method in class Map
 

I

isAlive() - Method in class Creature
Returns whether the creature is still alive or not.
isValidRoom(int, int) - Method in class Map
 

L

LOOK - Static variable in class Parser
The value that Parser.parse() returns if the user enters 'look' to see the room description again.

M

main(String[]) - Static method in class Game
The main() method used to run the game.
main(String[]) - Static method in class Map
 
Map - Class in <Unnamed>
Note that this documentation does NOT include the private fields that you need to include in your Map class (rooms, visited, height, width, maxMonsterStrength, maxMonsterSkill, maxMonsterHitPoints, maxMonsterArmorClass, maxWeaponDamageMod, desc, and rand).
Map(int, int, int) - Constructor for class Map
 
Map(int, int) - Constructor for class Map
 
MapPrinter - Class in <Unnamed>
This class is used to print out the map to the screen.

N

NORTH - Static variable in class Parser
The value that Parser.parse() returns if the user enters 'north' to move to the room to the north.

P

parse() - Static method in class Parser
This method reads in the user's input from the keyboard, and returns a value corresponding to what the user entered.
Parser - Class in <Unnamed>
This class is used to get user input from the keyboard.
populate(int, int) - Method in class Map
 
printCommands() - Static method in class Parser
This method prints the available command to the screen.
printDescription() - Method in class Room
Prints the description of the room to standard output.
printMap(Map, Room) - Static method in class MapPrinter
Prints out a better map.
printSimpleMap(Map, Room) - Static method in class MapPrinter
Prints out a simple map; printMap() should be used instead.

Q

QUIT - Static variable in class Parser
The value that Parser.parse() returns if the user enters 'quit' to quit the game.

R

Room - Class in <Unnamed>
This class represents a Room within our game.
Room() - Constructor for class Room
Creates a default Room object, with the description "A nondescript room"
Room(String) - Constructor for class Room
Creates a Room object with the passed String as the description
Room(String, Creature, Weapon) - Constructor for class Room
Creates a Room object with the passed parameters

S

setAngry() - Method in class Creature
Sets the creature to be angry.
setAngry(boolean) - Method in class Creature
Sets the creature to be angry.
setArmorClass(int) - Method in class Creature
Sets the creature's armor class
setColRow(int, int) - Method in class Room
Sets the column and row where this Room object is located within the 2-dimensional array in the Map
setCurrentRoom(Room) - Static method in class Game
This method is used (by the Game.main(String[]) to set the current room that the player is in.
setDamageModifier(int) - Method in class Weapon
Sets the damage modifier for this weapon to the passed value
setDescription(String) - Method in class Room
Sets the String description of this Room
setHitPoints(int) - Method in class Creature
Sets the creature's hit points
setHitVerb(String) - Method in class Weapon
Sets the hit verb for this weapon to the passed value
setItem(Weapon) - Method in class Room
Sets the weapon (if any) in this Room;
setMaxMonsterArmorClass(int) - Method in class Map
 
setMaxMonsterHitPoints(int) - Method in class Map
 
setMaxMonsterSkill(int) - Method in class Map
 
setMaxMonsterStrength(int) - Method in class Map
 
setMaxWeaponDamageMod(int) - Method in class Map
 
setMissVerb(String) - Method in class Weapon
Sets the miss verb for this weapon to the passed value
setMonster(Creature) - Method in class Room
Sets the creature (if any) to put in this Room;
setName(String) - Method in class Creature
Sets the creature's name (i.e., 'Frodo')
setName(String) - Method in class Weapon
Sets the name for this weapon to the passed value
setPronoun(String) - Method in class Creature
Sets the creature's pronoun (i.e., 'his', her', 'its', etc.)
setRoomToEast(Room) - Method in class Room
Sets the Room through the east door of this Room
setRoomToNorth(Room) - Method in class Room
Sets the Room through the north door of this Room
setRoomToSouth(Room) - Method in class Room
Sets the Room through the south door of this Room
setRoomToWest(Room) - Method in class Room
Sets the Room through the west door of this Room
setSkill(int) - Method in class Creature
Sets the creature's skill
setStrength(int) - Method in class Creature
Sets the creature's strength
setType(String) - Method in class Creature
Sets the creature's type (i.e, 'hobbit')
setWeapon(Weapon) - Method in class Creature
Sets the creature's weapon
SOUTH - Static variable in class Parser
The value that Parser.parse() returns if the user enters 'south' to move to the room to the south.

T

takeDamage(int) - Method in class Creature
Causes the creature to take the passed amount of damage.
toString() - Method in class Room
Generates a String representation of this Room object.
tryToAttack(int) - Method in class Creature
Returns whether the creature successfully managed to attack a target with the passed armor class.

W

Weapon - Class in <Unnamed>
This class represents a Weapon within our game.
Weapon() - Constructor for class Weapon
The default constructor, it creates a default weapon.
Weapon(int, String, String, String) - Constructor for class Weapon
The specific constructor, it creates a weapon according to the passed values.
WEST - Static variable in class Parser
The value that Parser.parse() returns if the user enters 'west' to move to the room to the west.

A C D E G I L M N P Q R S T W