void GraphicalReporter::reportGame(const Quackle::Game &game, Quackle::ComputerPlayer *computerPlayer) { reportHeader(game); for (Quackle::PositionList::const_iterator it = game.history().begin(); it != game.history().end(); ++it) { reportPosition(*it, computerPlayer); } }
/** * Report connection established */ void reportConnect(void* callbackObj, NodeId nodeId){ char buf[255]; sprintf(buf, "reportConnect(%d)", nodeId); ndbout << buf << endl; tReg->setPerformState(nodeId, PerformIO); if(!isStarted){ isStarted = true; startTime = NdbTick_CurrentMillisecond(); if(isClient){ reportHeader(); allPhases[0].startTime = startTime; } } else{ // Resend signals that were lost when connection failed TestPhase * current = &allPhases[currentPhase]; current->noOfSignalSent = current->noOfSignalReceived; } }