Exemplo n.º 1
0
 public function __construct($tid, $uids)
 {
     $this->tableId = $tid;
     $this->uids = $uids;
     $cardInfos = CardUtil::sendCards($uids);
     $this->playerCards = $cardInfos['playerCards'];
     $this->threeCards = $cardInfos['threeCards'];
     $this->tableStatus = Constants::TABLE_INIT;
     $this->multiple = 1;
     $this->currOpUid = $uids[array_rand($uids)];
     $this->recordTime = time();
     $this->initPlayAddCd = 3;
     $this->lastCardNos = array();
     $this->initTime = time();
     $this->blinkTimeOut = Timer::add(Constants::TABLE_INIT_CHECK_TIME, array($this, 'checkTime'));
 }