|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Descriptions
public class Descriptions
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.). For full details of the Descriptions class, see Lab 10.
Constructor Summary | |
---|---|
Descriptions()
The default constructor, it creates a Descriptions object. |
Method Summary | |
---|---|
java.lang.String |
getNextMonsterName()
Returns a random moster type ('troll', 'dragon', etc.) |
java.lang.String |
getNextRoomAdjective()
Returns random room adjective ('stinky', 'carpeted', etc.). |
java.lang.String |
getNextRoomType()
Returns a random room type ('hallway', 'attic', etc.). |
java.lang.String |
getNextWeaponName()
Returns a random weapon type ('katana', 'sai', etc.). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Descriptions()
Method Detail |
---|
public java.lang.String getNextRoomAdjective()
public java.lang.String getNextRoomType()
public java.lang.String getNextMonsterName()
public java.lang.String getNextWeaponName()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |