- 10 Mar, 2013 40 commits
-
-
louiz’ authored
-
louiz’ authored
-
louiz’ authored
-
louiz’ authored
The InterfaceRemoteClient can then be derivated in an other client: GameRemoteClient, and avoid code duplication.
-
louiz’ authored
-
louiz’ authored
-
louiz’ authored
-
louiz’ authored
-
louiz’ authored
And set the version to 0.1. Because why not.
-
louiz’ authored
-
louiz’ authored
-
dionisos authored
-
dionisos authored
-
HypeR authored
-
HypeR authored
-
louiz’ authored
-
louiz’ authored
-
louiz’ authored
-
louiz’ authored
-
louiz’ authored
-
louiz’ authored
-
louiz’ authored
Since doing more than one simultaneous async_write on one single socket is NOT safe, we use a deque<Command*> to keep the list of all the command to send, and we send them properly one by one.
-
louiz’ authored
-
louiz’ authored
This makes the data easier to track and free after they were sent. And it makes sure the buffer stays valid for all the async_write() process. It’s also easier to send data without having to bother with creating a string, parsing everything, etc.
-
louiz’ authored
-
louiz’ authored
-
louiz’ authored
-
louiz’ authored
-
HypeR authored
-
HypeR authored
-
HypeR authored
-
HypeR authored
-
louiz’ authored
-
louiz’ authored
-
louiz’ authored
A fade-in/fade-out color change of the button is implemented to show how to use them to do any kind of effect.
-
louiz’ authored
-
HypeR authored
-
HypeR authored
-
HypeR authored
-
louiz’ authored
-