Hello !
I have a few questions about the CommandQueue class (related to Command and KeyBinding), classes extracted from the SFML book.
What is the utility of this class ? I thought it was in order to execute the actions in the right order (using the network), is that right ?
Otherwise, why do this instead of just using events (ie when we press space or the jump key, we call the jump method of the player) ?
Finally in KeyBinding we can see RealtimeActions. Is that actions which are repeated when the key isnt released, such as moving to the right when the key is pressed, on the contrary to an action like a jump or an attack which is called only once when the corresponding key is pressed ?
Thanks !