Minetest  5.4.0
LagPool Class Reference

#include <player_sao.h>

Public Member Functions

 LagPool ()=default
 
void setMax (float new_max)
 
void add (float dtime)
 
void empty ()
 
bool grab (float dtime)
 

Private Attributes

float m_pool = 15.0f
 
float m_max = 15.0f
 

Constructor & Destructor Documentation

◆ LagPool()

LagPool::LagPool ( )
default

Member Function Documentation

◆ add()

void LagPool::add ( float  dtime)
inline

References m_pool.

Referenced by PlayerSAO::step().

+ Here is the caller graph for this function:

◆ empty()

void LagPool::empty ( )
inline

References m_max, and m_pool.

Referenced by PlayerSAO::moveTo(), and PlayerSAO::setPos().

+ Here is the caller graph for this function:

◆ grab()

bool LagPool::grab ( float  dtime)
inline

References m_max, and m_pool.

Referenced by PlayerSAO::checkMovementCheat(), and Server::handleCommand_Interact().

+ Here is the caller graph for this function:

◆ setMax()

void LagPool::setMax ( float  new_max)
inline

References m_max, and m_pool.

Referenced by PlayerSAO::step().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_max

float LagPool::m_max = 15.0f
private

Referenced by empty(), grab(), and setMax().

◆ m_pool

float LagPool::m_pool = 15.0f
private

Referenced by add(), empty(), grab(), and setMax().


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