5 Struct N_USER
gullradriel edited this page 2026-10-09 00:55:18 +02:00

N_USER

Module: NETWORK USERS: server side network oriented user handling

USER management cell.

#include "n_user.h"

Public Attributes

Name
int state
State of the current user.
VECTOR3D position
actual position
int only_last_pos
1 => keep only_last_position in waitlist , 0 => send all the positions, default: 1
LIST * netw_waitlist
N_STR *messages waiting to be sent.
NETWORK * netw
Associated NETWORK.
int nb_rec_pos
Number of saved positions , default: 10.
char[1024] name
User Name.
VECTOR3D * last_positions
Last nb_rec_pos position messages, for a better dead reckoning / lag simulation.
int id
Unique world ident.

Public Attributes Documentation

variable state

int state;

State of the current user.

variable position

VECTOR3D position;

actual position

variable only_last_pos

int only_last_pos;

1 => keep only_last_position in waitlist , 0 => send all the positions, default: 1

variable netw_waitlist

LIST * netw_waitlist;

N_STR *messages waiting to be sent.

variable netw

NETWORK * netw;

Associated NETWORK.

variable nb_rec_pos

int nb_rec_pos;

Number of saved positions , default: 10.

variable name

char[1024] name;

User Name.

variable last_positions

VECTOR3D * last_positions;

Last nb_rec_pos position messages, for a better dead reckoning / lag simulation.

variable id

int id;

Unique world ident.