12#ifndef MINESERVER_PLAYER_H
13#define MINESERVER_PLAYER_H
53 throw std::runtime_error(
"Cannot send message to player !");
62 static void loadLua(lua_State *state,
const char *namespaceName)
64 luabridge::getGlobalNamespace(state)
65 .beginNamespace(namespaceName)
66 .beginClass<
Player>(
"Player")
Minecraft Chat Message implementation.
Definition chatmessage.h:28
Interface Living Entity.
Definition entity.h:89
Sender Interface.
Definition commands.h:29
Player object.
Definition player.h:25
~Player() override=default
Destroy the Player object.
void sendMessage(const ChatMessage &message) override
Sends a message to a player.
Definition player.h:51
Player()=default
Construct a new Player object.
static void loadLua(lua_State *state, const char *namespaceName)
Loads the Player class to a Lua one.
Definition player.h:62
std::string name
Name of the player.
Definition player.h:43
The file handling commands logic.
The file having entities logic.