simulator
Class NameClientCommand

java.lang.Object
  |
  +--simulator.ClientCommand
        |
        +--simulator.NameClientCommand

class NameClientCommand
extends ClientCommand

Implements the client command that rename your actual name


Fields inherited from class simulator.ClientCommand
command, description, name
 
Constructor Summary
NameClientCommand()
          Initialize object for NAME command
 
Method Summary
 boolean runCommand(java.util.StringTokenizer ST, Connection connection)
          Change actual client name with new name
 
Methods inherited from class simulator.ClientCommand
getDescription, getName, getText
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

NameClientCommand

public NameClientCommand()
Initialize object for NAME command
Method Detail

runCommand

public boolean runCommand(java.util.StringTokenizer ST,
                          Connection connection)
Change actual client name with new name
Parameters:
ST - first token is used for new name
connection - a copy of Connection istance to permit you to use it's variables
Returns:
false becouse we must not exit
Overrides:
runCommand in class ClientCommand