Photon Quantum 3.0.0

Public Member Functions | List of all members
Photon.Deterministic.IDeterministicInputProvider Interface Reference

The interface encapsulates managing the Quantum input. More...

Inheritance diagram for Photon.Deterministic.IDeterministicInputProvider:
Photon.Deterministic.IDeterministicReplayProvider Photon.Deterministic.IDeterministicStreamReplayInputProvider Quantum.InputProvider Quantum.RingBufferInputProvider Quantum.BitStreamReplayInputProvider Quantum.StreamReplayInputProvider

Public Member Functions

bool CanSimulate (int frame)
 Is all input for this frame available. More...
 
DeterministicFrameInputTemp GetInput (int frame, int playerSlot)
 Get the input for the given frame and player. More...
 

Detailed Description

The interface encapsulates managing the Quantum input.

Member Function Documentation

◆ CanSimulate()

bool Photon.Deterministic.IDeterministicInputProvider.CanSimulate ( int  frame)

Is all input for this frame available.

Parameters
frameFrame number
Returns
true if all input is available and the simulation can progress

Implemented in Quantum.InputProvider, Quantum.StreamReplayInputProvider, Quantum.BitStreamReplayInputProvider, and Quantum.RingBufferInputProvider.

◆ GetInput()

DeterministicFrameInputTemp Photon.Deterministic.IDeterministicInputProvider.GetInput ( int  frame,
int  playerSlot 
)

Get the input for the given frame and player.

Parameters
frameFrame number
playerSlotLocal player slot
Returns
The input struct for that player that can be inserted into the simulation

Implemented in Quantum.InputProvider, Quantum.RingBufferInputProvider, Quantum.StreamReplayInputProvider, and Quantum.BitStreamReplayInputProvider.