#include <sync.h>
|
| | SyncSystem () |
| void | Init (u8 num_players, u32 input_size, u32 buffer_size=InputBuffer::DEFAULT_BUFF_SIZE) |
| void | AddLocalInput (Handle player, u8 *input) |
| void | AddRemoteInput (Handle player, u8 *input, Frame frame) |
| void | OverwriteInput (Handle player, u8 *input, Frame frame) |
| void | IncrementFrame () |
| bool | GetCurrentInputs (std::unique_ptr< u8[]> &inputs, Frame &frame) |
| void | SetRunaheadMode (bool running_ahead) |
| bool | GetSpectatorInputs (std::unique_ptr< u8[]> &inputs, Frame frame) |
| bool | GetLocalInput (Handle player, std::unique_ptr< u8[]> &input, Frame frame) |
| void | SetLocalDelay (Handle player, u8 delay) |
| u8 | GetLocalDelay (Handle player) |
| void | SetInputPredictionWindow (Handle player, u8 input_window) |
| Frame | GetCurrentFrame () const |
| void | SetCurrentFrame (Frame frame) |
| Frame | GetMinIncorrectFrame () |
| Frame | GetMinReceivedFrame () |
| Frame | GetLastReceivedFrom (Handle player) |
| void | SetLastReceivedFrame (Frame frame) |
| void | ClearIncorrectFramesUpTo (Frame clear_limit) |
Definition at line 10 of file sync.h.
◆ SyncSystem()
| Gekko::SyncSystem::SyncSystem |
( |
| ) |
|
◆ AddLocalInput()
| void Gekko::SyncSystem::AddLocalInput |
( |
Handle | player, |
|
|
u8 * | input ) |
◆ AddRemoteInput()
| void Gekko::SyncSystem::AddRemoteInput |
( |
Handle | player, |
|
|
u8 * | input, |
|
|
Frame | frame ) |
◆ ClearIncorrectFramesUpTo()
| void Gekko::SyncSystem::ClearIncorrectFramesUpTo |
( |
Frame | clear_limit | ) |
|
◆ GetCurrentFrame()
| Frame Gekko::SyncSystem::GetCurrentFrame |
( |
| ) |
const |
◆ GetCurrentInputs()
| bool Gekko::SyncSystem::GetCurrentInputs |
( |
std::unique_ptr< u8[]> & | inputs, |
|
|
Frame & | frame ) |
◆ GetLastReceivedFrom()
| Frame Gekko::SyncSystem::GetLastReceivedFrom |
( |
Handle | player | ) |
|
◆ GetLocalDelay()
| u8 Gekko::SyncSystem::GetLocalDelay |
( |
Handle | player | ) |
|
◆ GetLocalInput()
| bool Gekko::SyncSystem::GetLocalInput |
( |
Handle | player, |
|
|
std::unique_ptr< u8[]> & | input, |
|
|
Frame | frame ) |
◆ GetMinIncorrectFrame()
| Frame Gekko::SyncSystem::GetMinIncorrectFrame |
( |
| ) |
|
◆ GetMinReceivedFrame()
| Frame Gekko::SyncSystem::GetMinReceivedFrame |
( |
| ) |
|
◆ GetSpectatorInputs()
| bool Gekko::SyncSystem::GetSpectatorInputs |
( |
std::unique_ptr< u8[]> & | inputs, |
|
|
Frame | frame ) |
◆ IncrementFrame()
| void Gekko::SyncSystem::IncrementFrame |
( |
| ) |
|
◆ Init()
◆ OverwriteInput()
| void Gekko::SyncSystem::OverwriteInput |
( |
Handle | player, |
|
|
u8 * | input, |
|
|
Frame | frame ) |
◆ SetCurrentFrame()
| void Gekko::SyncSystem::SetCurrentFrame |
( |
Frame | frame | ) |
|
◆ SetInputPredictionWindow()
| void Gekko::SyncSystem::SetInputPredictionWindow |
( |
Handle | player, |
|
|
u8 | input_window ) |
◆ SetLastReceivedFrame()
| void Gekko::SyncSystem::SetLastReceivedFrame |
( |
Frame | frame | ) |
|
◆ SetLocalDelay()
| void Gekko::SyncSystem::SetLocalDelay |
( |
Handle | player, |
|
|
u8 | delay ) |
◆ SetRunaheadMode()
| void Gekko::SyncSystem::SetRunaheadMode |
( |
bool | running_ahead | ) |
|
◆ _current_frame
| Frame Gekko::SyncSystem::_current_frame |
|
private |
◆ _input_buffers
| std::unique_ptr<InputBuffer[]> Gekko::SyncSystem::_input_buffers |
|
private |
◆ _input_size
| u32 Gekko::SyncSystem::_input_size |
|
private |
◆ _num_players
| u8 Gekko::SyncSystem::_num_players |
|
private |
The documentation for this class was generated from the following files: