case "resign":
     resign();
     break;
 case "nojoin":
     nojoin();
     show_menu();
     show_alliance();
     break;
 case "vote":
     vote();
     show_menu();
     show_alliance();
     break;
 case "changecolor":
     show_menu();
     changecolor();
     break;
 case "save_color":
     save_color();
     show_menu();
     show_alliance();
     break;
 case "dropInvitation":
     proc_dropInvitation();
     show_menu();
     show_alliance();
     break;
 case "show_diplomacy":
     show_diplomacy();
     break;
 case "change_diplomacy":
Esempio n. 2
0
function strobeII()
{
    $d = $GLOBALS['ini_array']['strobe']['delay'];
    echo "STROBE DELAY " . $d . "\n";
    $r = $GLOBALS['rl'];
    $g = $GLOBALS['gl'];
    $b = $GLOBALS['bl'];
    while (true) {
        changecolor($r, $g, $b);
        usleep($d / 2);
        changecolor(0, 0, 0);
        usleep($d / 2);
        //readcmdini($GLOBALS['cmdinifile']);
        checksock();
        if ($GLOBALS['stop']) {
            $GLOBALS['stop'] = false;
            return;
        }
        switch (strtolower($GLOBALS['cmdini_array']['command']['cmd'])) {
            case 'white':
                yardlight();
                break;
            case 'stop':
            case 'color':
                return;
                break;
        }
    }
}
Esempio n. 3
0
function printcompanyname($companyname)
{
    echo "<p>{$companyname}</p>";
    changecolor();
}