Exemple #1
0
        public override void Join(GameType type)
        {
            if (!inPrivateRoom)
            {
                int typeNum = 2;

                if (type.HasFlag(GameType.Match_EastSouth))
                {
                    typeNum += 1;
                }

                if (type.HasFlag(GameType.Level_Phoenix))
                {
                    typeNum += 9;
                }
                else if (type.HasFlag(GameType.Level_VeryHigh))
                {
                    typeNum += 6;
                }
                else if (type.HasFlag(GameType.Level_High))
                {
                    typeNum += 3;
                }

                Send(ws, ".lq.Lobby.matchGame", new { match_mode = typeNum }).Wait();
            }
            else
            {
                Send(ws, ".lq.Lobby.readyPlay", new { ready = true }).Wait();
            }
        }
Exemple #2
0
        public override void Join(GameType type)
        {
            if (!inPrivateRoom)
            {
                int typeNum = 2;

                if (type.HasFlag(GameType.Match_EastSouth))
                {
                    typeNum += 1;
                }

                if (type.HasFlag(GameType.Level_Throne))
                {
                    typeNum += 12;
                }
                else if (type.HasFlag(GameType.Level_Jade))
                {
                    typeNum += 9;
                }
                else if (type.HasFlag(GameType.Level_Gold))
                {
                    typeNum += 6;
                }
                else if (type.HasFlag(GameType.Level_Silver))
                {
                    typeNum += 3;
                }

                Send(ws, ".lq.Lobby.matchGame", new { match_mode = typeNum }).Wait();

                expectMessage(".lq.FastTest.authGame", timeout: 60000, timeoutMessage: "Game matching timed out.");
            }
            else
            {
                Send(ws, ".lq.Lobby.readyPlay", new { ready = true }).Wait();
            }
        }
Exemple #3
0
 public bool isAllLast(GameType gameType)
 {
     return(!gameType.HasFlag(GameType.Match_EastSouth) && (seq == 4 || direction == Direction.S) ||
            (direction == Direction.S && seq == 4 || direction == Direction.W));
 }