コード例 #1
0
ファイル: blackjack.php プロジェクト: squaredcircle/GroupBot
 public function main()
 {
     if ($this->Message->Chat->type == ChatType::Individual) {
         $Move = new PlayerMove(PlayerMove::StartGame);
     } else {
         $Move = new PlayerMove(PlayerMove::JoinGame);
     }
     $bet = $this->isParam() ? $this->getAllParams() : 0;
     return Telegram::getResponse($this->db, $this->Message, $Move, $bet);
 }
コード例 #2
0
ファイル: stand.php プロジェクト: squaredcircle/GroupBot
 public function main()
 {
     $Move = new PlayerMove(PlayerMove::Stand);
     return Telegram::getResponse($this->db, $this->Message, $Move);
 }
コード例 #3
0
ファイル: bjstart.php プロジェクト: squaredcircle/GroupBot
 public function main()
 {
     $bet = $this->isParam() ? $this->getAllParams() : 0;
     $Move = new PlayerMove(PlayerMove::StartGame);
     return Telegram::getResponse($this->db, $this->Message, $Move, $bet);
 }