Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.commands.AgainCommand Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.commands.AgainCommand:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.commands.AgainCommand:
Collaboration graph

Public Member Functions

 AgainCommand (@NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final CommandExecutor commandExecutor, @NotNull final CommandHistory commandHistory)
 
boolean allArguments ()
 
void execute (@NotNull final String args)
 
String getHelp ()
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand
String getCommandName ()
 
String toString ()
 

Private Attributes

final CommandExecutor commandExecutor
 
final CommandHistory commandHistory
 

Additional Inherited Members

- Protected Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand
 AbstractCommand (@NotNull final String commandName, @NotNull final CrossfireServerConnection crossfireServerConnection)
 
void drawInfo (@NotNull final String message)
 
void drawInfo (@NotNull final String message, final int color)
 
void drawInfoError (@NotNull final String message)
 

Detailed Description

Implements the "again" command. It repeats the previously executed command.

Author
Andreas Kirschbaum

Definition at line 34 of file AgainCommand.java.

Constructor & Destructor Documentation

◆ AgainCommand()

com.realtime.crossfire.jxclient.commands.AgainCommand.AgainCommand ( @NotNull final CrossfireServerConnection  crossfireServerConnection,
@NotNull final CommandExecutor  commandExecutor,
@NotNull final CommandHistory  commandHistory 
)

Creates a new instance.

Parameters
crossfireServerConnectionthe connection instance
commandExecutorthe command executor for executing the commands
commandHistorythe command history for determining the command to execute

Definition at line 55 of file AgainCommand.java.

References com.realtime.crossfire.jxclient.commands.AgainCommand.commandExecutor, com.realtime.crossfire.jxclient.commands.AgainCommand.commandHistory, and com.realtime.crossfire.jxclient.commands.AbstractCommand.crossfireServerConnection.

Member Function Documentation

◆ allArguments()

boolean com.realtime.crossfire.jxclient.commands.AgainCommand.allArguments ( )

Returns whether all remaining commands should be included as arguments.

Returns
whether all remaining commands should be included as arguments

Implements com.realtime.crossfire.jxclient.commands.Command.

Definition at line 62 of file AgainCommand.java.

◆ execute()

void com.realtime.crossfire.jxclient.commands.AgainCommand.execute ( @NotNull final String  args)

◆ getHelp()

String com.realtime.crossfire.jxclient.commands.AgainCommand.getHelp ( )

Returns the help text for this command.

Returns
the help text

Implements com.realtime.crossfire.jxclient.commands.Command.

Definition at line 92 of file AgainCommand.java.

Member Data Documentation

◆ commandExecutor

final CommandExecutor com.realtime.crossfire.jxclient.commands.AgainCommand.commandExecutor
private

◆ commandHistory

final CommandHistory com.realtime.crossfire.jxclient.commands.AgainCommand.commandHistory
private

The documentation for this class was generated from the following file: