blob: 3acdb6eb2b0a68038a91240161f9b22243ef14fc (
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
26
27
28
29
30
31
32
33
34
|
#ifndef ASTERISK_H
#define ASTERISK_H
#include "ofMain.h"
#include "ofxNetwork.h"
#define IDLE 0
#define WAITING 1
#define STARTING 2
#define PLAYING 3
class Asterisk
{
public:
Asterisk();
virtual ~Asterisk();
void startGame();
void endGame(string score);
int update();
void cmd(string s);
int state;
protected:
private:
int startTime;
FILE *file;
int filenum;
ofxUDPManager udpConnection;
string playerCode;
};
#endif // ASTERISK_H
|