diff options
Diffstat (limited to 'pacman-c++/server.h')
| -rw-r--r-- | pacman-c++/server.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pacman-c++/server.h b/pacman-c++/server.h index 8d73d24..d791c15 100644 --- a/pacman-c++/server.h +++ b/pacman-c++/server.h | |||
| @@ -19,25 +19,24 @@ public: | |||
| 19 | protected slots: | 19 | protected slots: |
| 20 | void tick(); | 20 | void tick(); |
| 21 | 21 | ||
| 22 | // receive updates of client | 22 | /* receive updates of client */ |
| 23 | void keyPressUpdate(); | 23 | void keyPressUpdate(); |
| 24 | 24 | ||
| 25 | protected: | 25 | protected: |
| 26 | 26 | /* block until we have connections from all clients */ | |
| 27 | // block until we have connections from all clients | ||
| 28 | void waitForClientConnections(); | 27 | void waitForClientConnections(); |
| 29 | 28 | ||
| 30 | // calculate updates of current tick for sending to client | 29 | /* calculate updates of current tick for sending to client */ |
| 31 | Transmission::map_t calculateUpdates(); | 30 | Transmission::map_t calculateUpdates(); |
| 32 | 31 | ||
| 33 | QSharedPointer<ProtoBuf::MapUpdate> createUpdatePacket(Transmission::map_t); | 32 | QSharedPointer<ProtoBuf::MapUpdate> createUpdatePacket(Transmission::map_t); |
| 34 | 33 | ||
| 35 | // update client maps | 34 | /* update client maps */ |
| 36 | void sendUpdate(QSharedPointer<ProtoBuf::MapUpdate>); | 35 | void sendUpdate(QSharedPointer<ProtoBuf::MapUpdate>); |
| 37 | 36 | ||
| 38 | QMap<Color::Color, QTcpSocket *> m_clientConnections; | 37 | QMap<Color::Color, QTcpSocket *> m_clientConnections; |
| 39 | 38 | ||
| 40 | // current movements. required to make pacmans continue their movement. | 39 | /* current movements. required to make pacmans continue their movement */ |
| 41 | QMap<Color::Color, Actor::Movement> m_actorMovements; | 40 | QMap<Color::Color, Actor::Movement> m_actorMovements; |
| 42 | }; | 41 | }; |
| 43 | 42 | ||
