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

Public Member Functions

boolean allArguments ()
 
void execute (@NotNull final String args)
 
String getHelp ()
 
 SetCommand (@NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final OptionManager optionManager)
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand
String getCommandName ()
 
String toString ()
 

Private Attributes

final OptionManager optionManager
 

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 command "set". It changes settings options.

Author
Andreas Kirschbaum

Definition at line 37 of file SetCommand.java.

Constructor & Destructor Documentation

◆ SetCommand()

com.realtime.crossfire.jxclient.commands.SetCommand.SetCommand ( @NotNull final CrossfireServerConnection  crossfireServerConnection,
@NotNull final OptionManager  optionManager 
)

Creates a new instance.

Parameters
crossfireServerConnectionthe connection instance
optionManagerthe option manager to use

Definition at line 50 of file SetCommand.java.

References com.realtime.crossfire.jxclient.commands.AbstractCommand.crossfireServerConnection, and com.realtime.crossfire.jxclient.commands.SetCommand.optionManager.

Member Function Documentation

◆ allArguments()

boolean com.realtime.crossfire.jxclient.commands.SetCommand.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 56 of file SetCommand.java.

◆ execute()

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

◆ getHelp()

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

Returns the help text for this command.

Returns
the help text

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

Definition at line 98 of file SetCommand.java.

References com.realtime.crossfire.jxclient.settings.options.OptionManager.getOptions(), and com.realtime.crossfire.jxclient.commands.SetCommand.optionManager.

Here is the call graph for this function:

Member Data Documentation

◆ optionManager

final OptionManager com.realtime.crossfire.jxclient.commands.SetCommand.optionManager
private

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