Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
Player Class Reference

Player object. More...

#include <player.h>

Inheritance diagram for Player:
ILiving ISender IEntity

Public Member Functions

 Player ()=default
 Construct a new Player object.
 
 ~Player () override=default
 Destroy the Player object.
 
void sendMessage (const ChatMessage &message) override
 Sends a message to a player.
 
- Public Member Functions inherited from ILiving
 ~ILiving () override=default
 Destroy the ILiving object.
 
- Public Member Functions inherited from IEntity
virtual ~IEntity ()=default
 Destroy the IEntity object.
 

Static Public Member Functions

static void loadLua (lua_State *state, const char *namespaceName)
 Loads the Player class to a Lua one.
 
- Static Public Member Functions inherited from ILiving
static void loadLua (lua_State *state, const char *namespaceName)
 Loads the ILiving class to a Lua one.
 
- Static Public Member Functions inherited from IEntity
static void loadLua (lua_State *state, const char *namespaceName)
 Loads the IEntity class to a Lua one.
 

Public Attributes

std::string name
 Name of the player.
 
- Public Attributes inherited from IEntity
Vecf position
 Position of the entity.
 
Angle yaw
 Yaw angle of the entity.
 
Angle pitch
 Pitch angle of the entity.
 
MinecraftUUID uuid
 MinecraftUUID of the entity.
 

Detailed Description

Player object.

Represents a player on the server, as a living entity.

Member Function Documentation

◆ loadLua()

static void Player::loadLua ( lua_State * state,
const char * namespaceName )
inlinestatic

Loads the Player class to a Lua one.

Parameters
statethe state to load to
namespaceNamethe namespace to load to

◆ sendMessage()

void Player::sendMessage ( const ChatMessage & message)
inlineoverridevirtual

Sends a message to a player.

Parameters
messagethe message to send
Todo
actually implement it

Implements ISender.

Member Data Documentation

◆ name

std::string Player::name

Name of the player.

Also called the username or tag


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