Callback called when the simulation queries local input. More...
Public Member Functions | |
void | SetInput (Input input, DeterministicInputFlags flags) |
Set the polled input result. More... | |
void | SetInput (QTuple< Input, DeterministicInputFlags > input) |
Set the polled input result. More... | |
Public Member Functions inherited from Quantum.QuantumGame.CallbackBase | |
CallbackBase (int id, QuantumGame game) | |
Constructor. More... | |
Public Member Functions inherited from Quantum.CallbackBase | |
CallbackBase (int id) | |
Create the callback with an id. More... | |
CallbackBase (int id, IDeterministicGame game) | |
Creates a callback with an id and a game. More... | |
Public Attributes | |
Int32 | Frame |
The frame number the input is polled for. More... | |
Int32 | PlayerSlot |
The local player slot the input is polled for (this is not the global player number). More... | |
Public Attributes inherited from Quantum.CallbackBase | |
readonly int | ID |
The callback id. More... | |
Static Public Attributes | |
const new Int32 | ID = (int)CallbackId.PollInput |
The const CallbackPollInput id. More... | |
Properties | |
DeterministicInputFlags | Flags [get] |
Access the input flags. Use SetInput(Input, DeterministicInputFlags) to set. More... | |
Input | Input [get] |
Access the set input. Use SetInput(Input, DeterministicInputFlags) to set. More... | |
bool | IsFirstInThisUpdate [get] |
Is set to true if this is first time ever that input is pulled in this simulation. More... | |
bool | IsInputSet [get] |
Will be marked as set after SetInput(Input, DeterministicInputFlags) has been called. More... | |
Int32 | Player [get, set] |
Obsolete, renamed to PlayerSlot. More... | |
Properties inherited from Quantum.QuantumGame.CallbackBase | |
new QuantumGame | Game [get, set] |
The assigned game. More... | |
Properties inherited from Quantum.CallbackBase | |
IDeterministicGame | Game [get, set] |
The game that the callback is dispatched to. More... | |
Properties inherited from Quantum.IDispatchable | |
IDeterministicGame | Game [get] |
The game that the callback or event is dispatched to. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Quantum.QuantumGame.CallbackBase | |
static Type | GetCallbackType (CallbackId id) |
Maps the const callback id CallbackId to a callback system type. More... | |
Callback called when the simulation queries local input.
|
inline |
Set the polled input result.
input | Input object |
flags | Flags |
|
inline |
Set the polled input result.
input | Input tuple |
|
static |
The const CallbackPollInput id.
Int32 Quantum.CallbackPollInput.Frame |
The frame number the input is polled for.
Int32 Quantum.CallbackPollInput.PlayerSlot |
The local player slot the input is polled for (this is not the global player number).
|
getset |
Obsolete, renamed to PlayerSlot.
|
get |
Is set to true if this is first time ever that input is pulled in this simulation.
|
get |
Will be marked as set after SetInput(Input, DeterministicInputFlags) has been called.
|
get |
Access the set input. Use SetInput(Input, DeterministicInputFlags) to set.
|
get |
Access the input flags. Use SetInput(Input, DeterministicInputFlags) to set.