|
R-Type
Distributed multiplayer game engine in C++
|
Context information for command execution. More...
#include <CommandContext.hpp>

Public Member Functions | |
| CommandContext (uint32_t pId, const std::string &pName, std::shared_ptr< Room > r, ::Server *srv) | |
Public Attributes | |
| uint32_t | playerId |
| ID of the player executing the command. | |
| std::string | playerName |
| Name of the player executing the command. | |
| std::shared_ptr< Room > | room |
| Room where the command is executed. | |
| ::Server * | server |
| Server instance for operations (global namespace) | |
Context information for command execution.
Contains all necessary information for a command to execute properly:
Definition at line 28 of file CommandContext.hpp.
|
inline |
Definition at line 34 of file CommandContext.hpp.
| uint32_t server::CommandContext::playerId |
ID of the player executing the command.
Definition at line 29 of file CommandContext.hpp.
Referenced by server::KickCommand::execute(), and server::CommandHandler::handleCommand().
| std::string server::CommandContext::playerName |
Name of the player executing the command.
Definition at line 30 of file CommandContext.hpp.
Referenced by server::KickCommand::execute().
| std::shared_ptr<Room> server::CommandContext::room |
Room where the command is executed.
Definition at line 31 of file CommandContext.hpp.
Referenced by server::KickCommand::execute(), and server::ListCommand::execute().
| ::Server* server::CommandContext::server |
Server instance for operations (global namespace)
Definition at line 32 of file CommandContext.hpp.
Referenced by server::KickCommand::execute(), and server::ListCommand::execute().