Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
player.h File Reference
#include "irrlichttypes_bloated.h"
#include "inventory.h"
#include "util/basic_macros.h"
#include <string>
#include <string_view>
+ Include dependency graph for player.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PlayerFovSpec
 
struct  PlayerControl
 
struct  PlayerPhysicsOverride
 
class  Player
 

Macros

#define PLAYERNAME_SIZE   20
 
#define PLAYERNAME_ALLOWED_CHARS   "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"
 
#define PLAYERNAME_ALLOWED_CHARS_USER_EXPL   "'a' to 'z', 'A' to 'Z', '0' to '9', '-', '_'"
 

Enumerations

enum  CameraMode : int { CAMERA_MODE_ANY = 0 , CAMERA_MODE_FIRST , CAMERA_MODE_THIRD , CAMERA_MODE_THIRD_FRONT }
 

Functions

bool is_valid_player_name (std::string_view name)
 

Variables

const struct EnumString es_CameraMode []
 

Macro Definition Documentation

◆ PLAYERNAME_ALLOWED_CHARS

#define PLAYERNAME_ALLOWED_CHARS   "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"

◆ PLAYERNAME_ALLOWED_CHARS_USER_EXPL

#define PLAYERNAME_ALLOWED_CHARS_USER_EXPL   "'a' to 'z', 'A' to 'Z', '0' to '9', '-', '_'"

Referenced by run_dedicated_server().

◆ PLAYERNAME_SIZE

#define PLAYERNAME_SIZE   20

Enumeration Type Documentation

◆ CameraMode

enum CameraMode : int
Note
numeric values are part of network protocol
Enumerator
CAMERA_MODE_ANY 
CAMERA_MODE_FIRST 
CAMERA_MODE_THIRD 
CAMERA_MODE_THIRD_FRONT 

Function Documentation

◆ is_valid_player_name()

bool is_valid_player_name ( std::string_view name)

References PLAYERNAME_ALLOWED_CHARS, PLAYERNAME_SIZE, and string_allowed().

Referenced by ModApiUtil::Initialize(), ModApiUtil::l_is_valid_player_name(), ObjectRef::l_set_observers(), and run_dedicated_server().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ es_CameraMode

const struct EnumString es_CameraMode[]
extern