|
Java Universal Role Playing Engine Version 0.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjurpe.system.commands.DungeonCommand
public class DungeonCommand
A dungeon command is a group of commands issued by a player in the dungeon. It encapsulate a "feedback" string to communicate to the user the results of the command and an "option" so that the command can have a parameter.
| Constructor Summary | |
|---|---|
DungeonCommand(PlayerCommand cmd)
Constructor |
|
DungeonCommand(PlayerCommand cmd,
java.lang.String feedback)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Equality conditions |
PlayerCommand |
getCommand()
Get command ID |
java.lang.String |
getFeedback()
Get feedback of this command |
java.lang.String |
getOption()
Get command option |
int |
hashCode()
Direction hash code. |
void |
setFeedback(java.lang.String f)
Set the feedback for when the user selects this command |
void |
setOption(java.lang.String o)
Set an option for this command |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DungeonCommand(PlayerCommand cmd)
cmd - PlayerCommand Issued command
public DungeonCommand(PlayerCommand cmd,
java.lang.String feedback)
cmd - CommandID (see static fields)feedback - Feedback when the user selects this command| Method Detail |
|---|
public PlayerCommand getCommand()
public void setFeedback(java.lang.String f)
f - Feedback when the user selects this commandpublic java.lang.String getFeedback()
public void setOption(java.lang.String o)
o - Option for this command (ie> monster to attack)public java.lang.String getOption()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - Object to compare
|
Java Universal Role Playing Engine Version 0.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||