#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(); void setup(string passcode="1111"); virtual ~Asterisk(); void startGame(); void endGame(string score); int update(); void requestStatus(); int state; bool isPlaying; int queued; protected: void cmd(string s); private: int startTime; FILE *file; int filenum; ofxUDPManager udpConnection; string playerCode; }; #endif // ASTERISK_H