|
R-Type
Distributed multiplayer game engine in C++
|
Lists all players and spectators in the current room. More...
#include <ListCommand.hpp>


Public Member Functions | |
| ListCommand ()=default | |
| ~ListCommand () override=default | |
| std::string | execute (const std::vector< std::string > &args, const CommandContext &context) override |
| Execute the command. | |
| std::string | getName () const override |
| Get command name. | |
| std::string | getDescription () const override |
| Get command description. | |
| std::string | getUsage () const override |
| Get command usage. | |
Public Member Functions inherited from server::ICommand | |
| virtual | ~ICommand ()=default |
Lists all players and spectators in the current room.
Usage: /list Displays:
Definition at line 26 of file ListCommand.hpp.
|
default |
|
overridedefault |
|
overridevirtual |
Execute the command.
| args | Command arguments (without the command name) |
| context | Execution context with player and room information |
Implements server::ICommand.
Definition at line 15 of file ListCommand.cpp.
References Server::getLobby(), server::LobbyPlayer::playerName, server::CommandContext::room, and server::CommandContext::server.

|
inlineoverridevirtual |
Get command description.
Implements server::ICommand.
Definition at line 33 of file ListCommand.hpp.
|
inlineoverridevirtual |
Get command name.
Implements server::ICommand.
Definition at line 32 of file ListCommand.hpp.
|
inlineoverridevirtual |
Get command usage.
Implements server::ICommand.
Definition at line 34 of file ListCommand.hpp.