예제 #1
0
 function start()
 {
     if (self::$played) {
         return false;
     }
     self::$RGameClient = new TRGameClient();
     $ip = c('Index->editIPBox')->text;
     $port = c('Index->editPortBox')->text;
     self::$RGameClient->bind($ip, $port);
     self::$played = true;
     self::showLobby(false);
     self::$RGameClient->Name = trim(c('Index->editMyName')->text);
     self::$RGameClient->RGWorld->GameOptions['BGImgSize'] = self::$Options['bgimgsize'];
     self::$RGameClient->RGWorld->GameOptions['BGImgSave'] = self::$Options['bgimgsave'];
     self::$RGameClient->start();
     self::onStopGame();
 }