|
R-Type
Distributed multiplayer game engine in C++
|
Kicks a player from the current room. More...
#include <KickCommand.hpp>


Public Member Functions | |
| KickCommand ()=default | |
| ~KickCommand () 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 |
Kicks a player from the current room.
Usage: /kick <player_id> Only the room host can kick players. Spectators cannot be kicked. Works both in waiting room and during game.
Definition at line 25 of file KickCommand.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 KickCommand.cpp.
References Server::kickPlayer(), LOG_INFO, server::CommandContext::playerId, server::CommandContext::playerName, server::CommandContext::room, and server::CommandContext::server.

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