コード例 #1
0
ファイル: main.c プロジェクト: akerenyi/ess
void timerstep() {
	static unsigned long long counter = 0;
	counter++;
	int thistime = counter % 4;
	setL0(thistime == 0);
	setL1(thistime == 1);
	setL2(thistime == 2);
	setL3(thistime == 3);
}
コード例 #2
0
Comparison::Comparison (
           const QString &l1,
           const QString &l2,
           const QString &l3
          )
{
   setL1 (l1);
   setL2 (l2);
   setL3 (l3);
}
コード例 #3
0
ファイル: GameWindow.cpp プロジェクト: wwong412/pic10c
void GameWindow::newGame(int level, int difficulty){
    newGame();
    if(difficulty==3)
        setDif3();
    else if(difficulty==2)
        setDif2();
    else
        setDif1();

    if(level==1){
        setL1();
        show();
    }
    else if(level==2){
        setL2();
        show();
    }
    else{
        setL3();
        show();
    }
   }