diff options
Diffstat (limited to 'pacman-c++/server.h')
| -rw-r--r-- | pacman-c++/server.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pacman-c++/server.h b/pacman-c++/server.h index 4be0cd8..006b104 100644 --- a/pacman-c++/server.h +++ b/pacman-c++/server.h | |||
| @@ -2,7 +2,9 @@ | |||
| 2 | #define SERVER_H | 2 | #define SERVER_H |
| 3 | 3 | ||
| 4 | #include "sceneholder.h" | 4 | #include "sceneholder.h" |
| 5 | |||
| 5 | #include <QtGui> | 6 | #include <QtGui> |
| 7 | #include "actor.h" | ||
| 6 | 8 | ||
| 7 | class Server | 9 | class Server |
| 8 | : public SceneHolder | 10 | : public SceneHolder |
| @@ -10,6 +12,14 @@ class Server | |||
| 10 | Q_OBJECT | 12 | Q_OBJECT |
| 11 | public: | 13 | public: |
| 12 | Server(QWidget *parent = 0); | 14 | Server(QWidget *parent = 0); |
| 15 | |||
| 16 | protected: | ||
| 17 | // returns packets read from network until now | ||
| 18 | // for clients not sending a direction, no change is assumed | ||
| 19 | QMap<Color::Color, Actor::Movement> getActorDirections(); | ||
| 20 | |||
| 21 | // calculate updates of current tick for sending to client | ||
| 22 | Transmission::map_t calculateUpdates(); | ||
| 13 | }; | 23 | }; |
| 14 | 24 | ||
| 15 | #endif // SERVER_H | 25 | #endif // SERVER_H |
