#include "testApp.h" //-------------------------------------------------------------- void testApp::setup(){ queuecheck=0; } //-------------------------------------------------------------- void testApp::update(){ int ret=game.update(); if (ofGetElapsedTimeMillis()-queuecheck>5000) { game.requestStatus(); queuecheck=ofGetElapsedTimeMillis(); } } //-------------------------------------------------------------- void testApp::draw(){ ofClear(0,0,0); ofSetColor(255,255,255); ofDrawBitmapString(ofToString(game.queued), ofGetWidth()/2,ofGetHeight()/2); } //-------------------------------------------------------------- void testApp::keyPressed(int key){ switch (key) { case 's': game.startGame(); break; case 'e': game.endGame("GOOD"); break; } } //-------------------------------------------------------------- void testApp::keyReleased(int key){ } //-------------------------------------------------------------- void testApp::mouseMoved(int x, int y ){ } //-------------------------------------------------------------- void testApp::mouseDragged(int x, int y, int button){ } //-------------------------------------------------------------- void testApp::mousePressed(int x, int y, int button){ } //-------------------------------------------------------------- void testApp::mouseReleased(int x, int y, int button){ } //-------------------------------------------------------------- void testApp::windowResized(int w, int h){ } //-------------------------------------------------------------- void testApp::gotMessage(ofMessage msg){ } //-------------------------------------------------------------- void testApp::dragEvent(ofDragInfo dragInfo){ }