[4c8adfd] Client ungroup command and client update improvements
Client now has inputs for ungrouping (ESC) and for stopping (SPACE)
Client reliable and unreliable updates are now passed to the game
state with player_id attached instead of client_id. This is so that the
non networking code doesn't need to deal with conversions from client_id
to player_id. Ideally it wouldn't even know what a client_id is.
[a719a04] Reassign groups based on players' ungroup property
Players can now ungroup by pressing ESC.
For now players are moved to a group at the (0,0) location. This will
change to a location near their original group probably.
Apparently pressing ESC doesn't guarantee that you are ungrouped. I
suspect this is because of the way we send reliable updates. I will
attempt to fix this in a follow up change. Currently pressing ESC once
will flash your new group due to interpolation but it is reflected
only on the server if you're lucky. Spamming ESC eventually ungroups
lol.
Create a new TypeDef header file
[123b7d4] Add minor todo
[2eb5490] Send reliable update toggles instead of values
Only apply player inputs once in an update. Before we were applying it
every step (there can be multiple steps in an update). This was
problematic because if there were two steps in an update then an ungroup
toggle would apply twice and not have any effect.
Display ungroup status in group for debugging purposes.
Only set reliable update if any of the toggles are true.
Move handle events into ClientGameController from client/main.cpp
[a975ab1] Add utility functions to ClientReliableUpdate
[6ad39e1] Minor improvements
Groups now spawn near eachother when they ungroup. Unfortunately this causes collision (#105)
Fixes #4
[355e16d] Rename game_state to StateDef
[4c8adfd] Client ungroup command and client update improvements
[a719a04] Reassign groups based on players' ungroup property
[123b7d4] Add minor todo
[2eb5490] Send reliable update toggles instead of values
[a975ab1] Add utility functions to ClientReliableUpdate
[6ad39e1] Minor improvements