Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.commands.Commands Class Reference

Parses and executes client-side commands. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.commands.Commands:

Public Member Functions

void addCommand (@NotNull final Command command)
 Adds an executable Command. More...
 
Command findCommand (@NotNull final String commandName)
 Returns a Command by name. More...
 

Private Attributes

final Map< String, Commandcommands = new HashMap<>()
 Maps command name to Command instance. More...
 

Detailed Description

Parses and executes client-side commands.

Author
Andreas Kirschbaum

Definition at line 33 of file Commands.java.

Member Function Documentation

◆ addCommand()

◆ findCommand()

Command com.realtime.crossfire.jxclient.commands.Commands.findCommand ( @NotNull final String  commandName)

Returns a Command by name.

Parameters
commandNamethe command name to search
Returns
the command or
null
if
commandName
is undefined

Definition at line 57 of file Commands.java.

Member Data Documentation

◆ commands

final Map<String, Command> com.realtime.crossfire.jxclient.commands.Commands.commands = new HashMap<>()
private

Maps command name to Command instance.

Definition at line 39 of file Commands.java.


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