Skip to content

Class InputQueue

ClassList > InputQueue

Public Functions

Type Name
void AddInput (GameInput & input)
void DiscardConfirmedFrames (int frame)
bool GetConfirmedInput (int frame, GameInput * input)
int GetFirstIncorrectFrame ()
bool GetInput (int frame, GameInput * input)
int GetLastConfirmedFrame ()
int GetLength ()
void Init (int id, int input_size)
InputQueue (int input_size=DEFAULT_INPUT_SIZE)
void ResetPrediction (int frame)
void SetFrameDelay (int delay)
~InputQueue ()

Protected Attributes

Type Name
bool _first_frame
int _first_incorrect_frame
int _frame_delay
int _head
int _id
GameInput _inputs
int _last_added_frame
int _last_frame_requested
int _last_user_added_frame
int _length
GameInput _prediction
int _tail

Protected Functions

Type Name
void AddDelayedInputToQueue (GameInput & input, int i)
int AdvanceQueueHead (int frame)
void Log (const char * fmt, ...)

Public Functions Documentation

function AddInput

void InputQueue::AddInput (
    GameInput & input
) 

function DiscardConfirmedFrames

void InputQueue::DiscardConfirmedFrames (
    int frame
) 

function GetConfirmedInput

bool InputQueue::GetConfirmedInput (
    int frame,
    GameInput * input
) 

function GetFirstIncorrectFrame

int InputQueue::GetFirstIncorrectFrame () 

function GetInput

bool InputQueue::GetInput (
    int frame,
    GameInput * input
) 

function GetLastConfirmedFrame

int InputQueue::GetLastConfirmedFrame () 

function GetLength

inline int InputQueue::GetLength () 

function Init

void InputQueue::Init (
    int id,
    int input_size
) 

function InputQueue

InputQueue::InputQueue (
    int input_size=DEFAULT_INPUT_SIZE
) 

function ResetPrediction

void InputQueue::ResetPrediction (
    int frame
) 

function SetFrameDelay

inline void InputQueue::SetFrameDelay (
    int delay
) 

function ~InputQueue

InputQueue::~InputQueue () 

Protected Attributes Documentation

variable _first_frame

bool InputQueue::_first_frame;

variable _first_incorrect_frame

int InputQueue::_first_incorrect_frame;

variable _frame_delay

int InputQueue::_frame_delay;

variable _head

int InputQueue::_head;

variable _id

int InputQueue::_id;

variable _inputs

GameInput InputQueue::_inputs[INPUT_QUEUE_LENGTH];

variable _last_added_frame

int InputQueue::_last_added_frame;

variable _last_frame_requested

int InputQueue::_last_frame_requested;

variable _last_user_added_frame

int InputQueue::_last_user_added_frame;

variable _length

int InputQueue::_length;

variable _prediction

GameInput InputQueue::_prediction;

variable _tail

int InputQueue::_tail;

Protected Functions Documentation

function AddDelayedInputToQueue

void InputQueue::AddDelayedInputToQueue (
    GameInput & input,
    int i
) 

function AdvanceQueueHead

int InputQueue::AdvanceQueueHead (
    int frame
) 

function Log

void InputQueue::Log (
    const char * fmt,
    ...
) 


The documentation for this class was generated from the following file C:/Users/wistf/Unreal Projects/NightSkyEngine/Plugins/NightSkyEngine/Source/GGPOUE4/Private/input_queue.h