blob: 006b10494e610aed9a9486f18899132fe69269a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef SERVER_H
#define SERVER_H
#include "sceneholder.h"
#include <QtGui>
#include "actor.h"
class Server
: public SceneHolder
{
Q_OBJECT
public:
Server(QWidget *parent = 0);
protected:
// returns packets read from network until now
// for clients not sending a direction, no change is assumed
QMap<Color::Color, Actor::Movement> getActorDirections();
// calculate updates of current tick for sending to client
Transmission::map_t calculateUpdates();
};
#endif // SERVER_H
|