|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.fdi.hysteria.console.command.Command
es.ucm.fdi.hysteria.console.command.TalkCommand
public class TalkCommand
Field Summary | |
---|---|
protected boolean |
_generic
The movement direction |
protected boolean |
_isNumber
|
protected int |
_numberTopic
|
protected java.lang.String |
_stringTopic
|
Fields inherited from class es.ucm.fdi.hysteria.console.command.Command |
---|
_config, _executed, _game, _parsed, _result, _successful |
Constructor Summary | |
---|---|
TalkCommand(Game theGame)
MoveCommand constructor. |
|
TalkCommand(Game theGame,
java.util.Properties config)
MoveCommand constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a clone of this command. |
boolean |
execute()
Executes the command. |
java.lang.String |
getHelp()
Creates a string with the information about the command. |
boolean |
parse(java.lang.String line)
Tries to configure the command with the information contained in a string. |
java.lang.String |
toString()
|
Methods inherited from class es.ucm.fdi.hysteria.console.command.Command |
---|
getResult, hasResult, setConfig, setGame |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean _generic
protected boolean _isNumber
protected int _numberTopic
protected java.lang.String _stringTopic
Constructor Detail |
---|
public TalkCommand(Game theGame) throws java.lang.IllegalArgumentException
theGame
- Reference to main Game
java.lang.IllegalArgumentException
public TalkCommand(Game theGame, java.util.Properties config) throws java.lang.IllegalArgumentException
theGame
- Reference to main Game
java.lang.IllegalArgumentException
Method Detail |
---|
public boolean execute() throws UnparsedCommandException
Command
execute
in class Command
UnparsedCommandException
public java.lang.String getHelp()
Command
getHelp
in class Command
public boolean parse(java.lang.String line)
Command
parse
in class Command
line
- Order to parse
public java.lang.String toString()
toString
in class Command
public java.lang.Object clone()
Command
clone
in class Command
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |