Exemple #1
0
 void Controller::updateHook(){
     //if(lastTXcleared()){
         if(getStateVector()){
             modStateVector();
             txDownStream.write(curMap);
             curMap = NULL;
         }
     //}
 }
CheckersGameWidget::CheckersGameWidget():QWidget(NULL)
					,computer(Players::oposite(player))
					,player(FirstPlayer)
					,white_player(FirstPlayer)
					,is_player_moving(false){
	board.init();
	//board.set(1, Figures::FirstKing);
	//board.set(2, Figures::SecondKing);
	std::vector<QtBoard::State> st = getStateVector();
	qt_board = new QtBoard(this,st);
	connect(qt_board, SIGNAL(boardPresed(int)), this, SLOT(figureSelected(int)));
	qt_board->show();	
	
	resize(320,320);
}
Exemple #3
0
 void DumbTrajectory::updateHook(){
     switch(simState){
         case CTRL_HALT:
         case CTRL_FAIL:
             break;
         case CTRL_STEP:
             //Fall through here is intentional
         case CTRL_RUN:
             if( getStateVector(true) ){
                 sendCtrl();
             }
             if(simState == CTRL_STEP){
                 simState = CTRL_HALT;
             }
             break;
         default:
             break;
     }
 }
void KinectV2Classifier::captureGesture()
{
    vector<float> currentState;
    getStateVector(currentState);
    poses.push_back(currentState);
}