CDistributedSmoothNodeBase

class CDistributedSmoothNodeBase

This class defines some basic methods of DistributedSmoothNodeBase which have been moved into C++ as a performance optimization.

Inheritance diagram

Inheritance diagram of CDistributedSmoothNodeBase

CDistributedSmoothNodeBase(void)
CDistributedSmoothNodeBase(CDistributedSmoothNodeBase const&) = default
void broadcast_pos_hpr_full(void)

Examines the complete pos/hpr information to see which of the six elements have changed, and broadcasts the appropriate messages.

void broadcast_pos_hpr_xy(void)

Examines only X and Y of the pos/hpr information, and broadcasts the appropriate messages.

void broadcast_pos_hpr_xyh(void)

Examines only X, Y, and H of the pos/hpr information, and broadcasts the appropriate messages.

void initialize(NodePath const &node_path, DCClass *dclass, CHANNEL_TYPE do_id)

Initializes the internal structures from some constructs that are normally stored only in Python. Also reads the current node’s pos & hpr values in preparation for transmitting them via one of the broadcast_pos_hpr_*() methods.

void print_curr_l(void)
void send_everything(void)

Broadcasts the current pos/hpr in its complete form.

void set_clock_delta(PyObject *clock_delta)

Tells the C++ instance definition about the global ClockDelta object.

void set_curr_l(uint64_t l)

Appends the timestamp and sends the update.

void set_repository(CConnectionRepository *repository, bool is_ai, CHANNEL_TYPE ai_id)

Tells the C++ instance definition about the AI or Client repository, used for sending datagrams.