コード例 #1
0
ファイル: controller.cpp プロジェクト: bob2827/conductor
 void Controller::updateHook(){
     //if(lastTXcleared()){
         if(getStateVector()){
             modStateVector();
             txDownStream.write(curMap);
             curMap = NULL;
         }
     //}
 }
コード例 #2
0
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);
}
コード例 #3
0
ファイル: controller.cpp プロジェクト: bob2827/conductor
 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;
     }
 }
コード例 #4
0
void KinectV2Classifier::captureGesture()
{
    vector<float> currentState;
    getStateVector(currentState);
    poses.push_back(currentState);
}