Exemple #1
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[18];

                Result[0] = new PlayType(PlayType_D, "单式");
                Result[1] = new PlayType(PlayType_F, "复式");
                Result[2] = new PlayType(PlayType_ZH, "组合玩法");
                Result[3] = new PlayType(PlayType_DX, "猜大小");
                Result[4] = new PlayType(PlayType_5X_TXD, "五星通选单式");
                Result[5] = new PlayType(PlayType_5X_TXF, "五星通选复式");
                Result[6] = new PlayType(PlayType_2X_ZuD, "二星组选单式");
                Result[7] = new PlayType(PlayType_2X_ZuF, "二星组选复式");
                Result[8] = new PlayType(PlayType_2X_ZuFW, "二星组选分位");
                Result[9] = new PlayType(PlayType_2X_ZuB, "二星组选包点");
                Result[10] = new PlayType(PlayType_2X_ZuBD, "二星组选包胆");
                Result[11] = new PlayType(PlayType_2X_ZhiB, "二星直选包点");
                Result[12] = new PlayType(PlayType_3X_Zu3D, "三星组选三单式");
                Result[13] = new PlayType(PlayType_3X_Zu3F, "三星组选三复式");
                Result[14] = new PlayType(PlayType_3X_Zu6D, "三星组选六单式");
                Result[15] = new PlayType(PlayType_3X_Zu6F, "三星组选六复式");
                Result[16] = new PlayType(PlayType_RX1, "任选一");
                Result[17] = new PlayType(PlayType_RX2, "任选二");

                return Result;
            }
Exemple #2
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[22];

                Result[0] = new PlayType(PlayType_Mixed, "混合投注");
                Result[1] = new PlayType(PlayType_D, "单式");
                Result[2] = new PlayType(PlayType_F, "复式");
                Result[3] = new PlayType(PlayType_ZH, "组合玩法");
                Result[4] = new PlayType(PlayType_DX, "猜大小");
                Result[5] = new PlayType(PlayType_5X_TXD, "五星通选单式");
                Result[6] = new PlayType(PlayType_5X_TXF, "五星通选复式");
                Result[7] = new PlayType(PlayType_2X_ZuD, "二星组选单式");
                Result[8] = new PlayType(PlayType_2X_ZuF, "二星组选复式");
                Result[9] = new PlayType(PlayType_2X_ZuFW, "二星组选分位");
                Result[10] = new PlayType(PlayType_2X_ZuB, "二星组选包点");
                Result[11] = new PlayType(PlayType_2X_ZuBD, "二星组选包胆");
                Result[12] = new PlayType(PlayType_3X_B, "三星包点");
                Result[13] = new PlayType(PlayType_2X_QW, "趣味二星单式");
                Result[14] = new PlayType(PlayType_2X_QWF, "趣味二星复式");
                Result[15] = new PlayType(PlayType_3X_Zu3D, "三星组3单式");
                Result[16] = new PlayType(PlayType_3X_Zu3F, "三星组3复式");
                Result[17] = new PlayType(PlayType_3X_Zu6D, "三星组6单式");
                Result[18] = new PlayType(PlayType_3X_Zu6F, "三星组6复式");
                Result[19] = new PlayType(PlayType_3X_ZHFS, "三星直选组合复式");
                Result[20] = new PlayType(PlayType_3X_ZuB, "三星组选包胆");
                Result[21] = new PlayType(PlayType_3X_ZuBD, "三星组选包点");

                return Result;
            }
Exemple #3
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[13];

                Result[0] = new PlayType(PlayType_RX1, "任选一");
                Result[1] = new PlayType(PlayType_RX2, "任选二");
                Result[2] = new PlayType(PlayType_RX3, "任选三");

                Result[3] = new PlayType(PlayType_X4ZXD, "直选单式");
                Result[4] = new PlayType(PlayType_X4ZXF, "直选复式");

                Result[5] = new PlayType(PlayType_X4ZX24, "组选24单式");
                Result[6] = new PlayType(PlayType_X4ZX24_F, "组选24复式");

                Result[7] = new PlayType(PlayType_X4ZX12, "组选12单式");
                Result[8] = new PlayType(PlayType_X4ZX12_F, "组选12复式");

                Result[9] = new PlayType(PlayType_X4ZX6, "组选6单式");
                Result[10] = new PlayType(PlayType_X4ZX6_F, "组选6复式");

                Result[11] = new PlayType(PlayType_X4ZX4, "组选4单式");
                Result[12] = new PlayType(PlayType_X4ZX4_F, "组选4复式");

                return Result;
            }
Exemple #4
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[2];

                Result[0] = new PlayType(PlayType_D, "单式");
                Result[1] = new PlayType(PlayType_F, "复式");
                return Result;
            }
Exemple #5
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[1];

                Result[0] = new PlayType(PlayType_D, "代购");

                return Result;
            }
Exemple #6
0
 void Start()
 {
     length   = audioClip == null ? 0 : audioClip.length;
     playType = audioClip == null ? PlayType.None : playType;
     if (playType == PlayType.OnStart)
     {
         NGUITools.PlaySound(audioClip, volume, pitch);
     }
 }
Exemple #7
0
 public BoardGame(string name, int maxPlayers, GameType type, int minutes, int age, PlayType playtype)
 {
     Name                   = name;
     MaxPlayers             = maxPlayers;
     GameType               = type;
     AverageGameTimeMinutes = minutes;
     SuggestedMinimumAge    = age;
     PlayType               = playtype;
 }
Exemple #8
0
 public SoundGroup(string name, PlayType type, int count) : base(name)
 {
     this.type    = type;
     this._sounds = new List <SoundSchema>();
     for (var i = 0; i < count; ++i)
     {
         Add(new SoundSchema(i.ToString()));
     }
 }
 public PitcherFacedBatter(String id, String name, Int32 hitValue, Boolean isAtBat, Boolean isSacrificeFly, PlayType playType)
 {
     Id             = id;
     Name           = name;
     HitValue       = hitValue;
     IsAtBat        = isAtBat;
     IsSacrificeFly = isSacrificeFly;
     PlayType       = playType;
 }
Exemple #10
0
 public void Play(PlayType play)
 {
     //delayed event to notify of the move choosen by the player
     _dispatcher.Add <PlayMade>(new PlayMade(_player, play));
     if (play == PlayType.None)
     {
         _dispatcher.Publish <InvalidPlay>(new InvalidPlay(_player, play));
     }
 }
        public static bool IsTrump(this PlayType playType)
        {
            var isTrumpPlayType = playType == PlayType.TrumpDiamonds ||
                                  playType == PlayType.TrumpHearts ||
                                  playType == PlayType.TrumpClubs ||
                                  playType == PlayType.TrumpSpades;

            return(isTrumpPlayType);
        }
Exemple #12
0
        public void BroadcastSoundMessage(SceneMgr mgr, PlayType playType, String sound, float time)
        {
            NetOutgoingMessage message = mgr.CreateNetMessage();

            message = PrepareSoundMessage(message, playType, sound);
            message.Write(time);

            mgr.SendMessage(message);
        }
Exemple #13
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[2];

                Result[0] = new PlayType(PlayType_D, "单式");
                Result[1] = new PlayType(PlayType_F, "复式");

                return(Result);
            }
Exemple #14
0
        public void ResetValue()
        {
            Type       = TweenType.None;
            Identifier = "";

            FromFloat      = 0f;
            ToFloat        = 1f;
            FromVector2    = Vector2.zero;
            ToVector2      = Vector2.one;
            FromVector3    = Vector3.zero;
            ToVector3      = Vector3.one;
            FromVector4    = Vector4.zero;
            ToVector4      = Vector4.one;
            FromColor      = Color.black;
            ToColor        = Color.white;
            FromQuaternion = Quaternion.identity;
            ToQuaternion   = Quaternion.identity;
            FromRect       = Rect.zero;
            ToRect         = Rect.zero;
            FromTransform  = null;
            ToTransform    = null;

            QueueVector3.Clear();
            QueueColor.Clear();

            CurveMode   = CurveMode.Single;
            CurveTarget = CurveTargetType.Factor;
            Curve       = TweenSetting.Ins.DefaultCurve;
            CurveX      = TweenSetting.Ins.DefaultCurve;
            CurveY      = TweenSetting.Ins.DefaultCurve;
            CurveZ      = TweenSetting.Ins.DefaultCurve;
            CurveW      = TweenSetting.Ins.DefaultCurve;

            PlayType   = PlayType.Once;
            EaseType   = TweenSetting.Ins.DefaultEaseType;
            LoopCount  = 0;
            Duration   = 1f;
            Interval   = 0f;
            SpeedBased = false;
            StartDelay = 0f;
            AutoPlay   = TweenSetting.Ins.DefaultAutoPlayType;
            UpdateType = TweenSetting.Ins.DefaultUpdateType;
            TimeScale  = TweenSetting.Ins.DefaultTimeScale;
            TimeSmooth = TweenSetting.Ins.DefaultTimeSmooth;
            SelfScale  = 1f;
            AutoKill   = false;

            WorldSpace     = true;
            ColorLerpMode  = ColorLerpMode.RGB;
            ColorBlockType = ColorBlockType.NormalColor;
            PathMode       = PathMode.PointToPoint;
            ShakeArgs      = new TweenShakeArgs();

            ResourcesIndex = 0;
            ResourcesKey   = "";
        }
Exemple #15
0
 public GameSound()
 {
     type       = OpenMB.Sound.PlayType.Empty;
     soundList  = new List <SoundObject>();
     playThread = new BackgroundWorker();
     playThread.RunWorkerCompleted        += new RunWorkerCompletedEventHandler(playThread_RunWorkerCompleted);
     playThread.WorkerSupportsCancellation = true;
     disposing = null;
     rand      = new Random();
 }
Exemple #16
0
 public HitterWasAtBat(String id, String name, Int32 hitValue, Int32 rbiOnPlay, Boolean isAtBat, Boolean isSacrificeFly, PlayType playType)
 {
     Id             = id;
     Name           = name;
     HitValue       = hitValue;
     RbiOnPlay      = rbiOnPlay;
     IsAtBat        = isAtBat;
     IsSacrificeFly = isSacrificeFly;
     PlayType       = playType;
 }
 public void SetAnimPlayState(PlayType playState)
 {
     playType = playState;
     switch (playType)
     {
     case PlayType.STOP:
         animationFrameIndex = 0;
         break;
     }
 }
 public void StartPopup(string mes, int messageNo, PlayType type = PlayType.Long)
 {
     if (Message == null)
     {
         Message = GetComponentInChildren <UILabel>();
     }
     Message.text = mes;
     hideDelay    = ((type != 0) ? 1 : 0);
     StartCoroutine(StartPopupCor(messageNo));
 }
Exemple #19
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[4];

                Result[0] = new PlayType(PlayType_D, "单式");
                Result[1] = new PlayType(PlayType_F, "复式");
                Result[2] = new PlayType(PlayType_HYC2_D, "好运二单式");
                Result[3] = new PlayType(PlayType_HYC2_F, "好运二复式");

                return Result;
            }
Exemple #20
0
 public StickRound(
     PlayerGroupInfo playerGroupInfo,
     IDictionary <string, CardPile> playerHandDictionary,
     PlayerInfo initialPlayer,
     PlayType playType)
 {
     PlayerGroupInfo      = playerGroupInfo;
     PlayerHandDictionary = playerHandDictionary;
     CurrentPlayer        = initialPlayer;
     PlayType             = playType;
 }
Exemple #21
0
        private IList <PlayAction> GetValidPlayActions()
        {
            if (StickResult != null)
            {
                return(new List <PlayAction>());
            }
            var allHandPlayActionList = PlayerHandDictionary[CurrentPlayer.PlayerId].Cards
                                        .Select(c => new PlayAction
            {
                PlayerInfo = CurrentPlayer,
                Card       = c
            })
                                        .ToList();

            if (!StickSuit.HasValue)
            {
                //Case nothing played yet
                return(allHandPlayActionList);
            }
            var cardComparer      = GetCardComparer();
            var highestPlayedCard = PlayActionList
                                    .OrderByDescending(a => a.Card, cardComparer)
                                    .Select(a => a.Card)
                                    .First();
            var canUnderTrump = PlayType.IsTrump() &&
                                allHandPlayActionList
                                .All(a => a.Card.CardSuit == PlayType.GetTrumpSuit()) &&
                                allHandPlayActionList
                                .All(a => a.Card.CardRank == CardRank.Jack || cardComparer.Compare(a.Card, highestPlayedCard) < 0);
            var hasSameSuitCardBesidesTrumpJack = allHandPlayActionList
                                                  .Any(a => a.Card.CardSuit == StickSuit.Value &&
                                                       !(PlayType.IsTrump() && a.Card.CardSuit == PlayType.GetTrumpSuit() && a.Card.CardRank == CardRank.Jack));
            var validPlayActions = allHandPlayActionList
                                   .Where(a =>
            {
                var isTrump = PlayType.IsTrump() && a.Card.CardSuit == PlayType.GetTrumpSuit();
                var isHigherThenPlayedCard = cardComparer.Compare(a.Card, highestPlayedCard) > 0;

                //disjoint condition list
                var isSameSuit = a.Card.CardSuit == StickSuit.Value;
                var isHigherNonSuitTrumpCard      = !isSameSuit && isTrump && isHigherThenPlayedCard;
                var isLowerNonSuitUnderTrumpCard  = !isSameSuit && isTrump && !isHigherThenPlayedCard && canUnderTrump;
                var isPlayableNonSuitNonTrumpCard = !isSameSuit && !hasSameSuitCardBesidesTrumpJack;

                var isValid = isSameSuit ||
                              isHigherNonSuitTrumpCard ||
                              isLowerNonSuitUnderTrumpCard ||
                              isPlayableNonSuitNonTrumpCard;
                return(isValid);
            })
                                   .ToList();

            return(validPlayActions);
        }
Exemple #22
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[4];

                Result[0] = new PlayType(PlayType_ShuZi, "数字");
                Result[1] = new PlayType(PlayType_ShengXiao, "生肖");
                Result[2] = new PlayType(PlayType_SiJi, "四季");
                Result[3] = new PlayType(PlayType_FangWei, "方位");

                return Result;
            }
Exemple #23
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[4];

                Result[0] = new PlayType(PlayType_SF, "胜负");
                Result[1] = new PlayType(PlayType_RFSF, "让分胜负");
                Result[2] = new PlayType(PlayType_SFC, "胜分差");
                Result[3] = new PlayType(PlayType_DXF, "大小分");

                return Result;
            }
Exemple #24
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[3];

                Result[0] = new PlayType(PlayType_ZhiD, "直选单式");
                Result[1] = new PlayType(PlayType_ZhiF, "直选复式");
                Result[2] = new PlayType(PlayType_ZuD, "组选单复式");
               // Result[3] = new PlayType(PlayType_ZuF, "组选复式");
              
                return Result;
            }
Exemple #25
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[4];

                Result[0] = new PlayType(PlayType_SPF, "胜平负");
                Result[1] = new PlayType(PlayType_BF, "比分");
                Result[2] = new PlayType(PlayType_ZJQ, "总进球");
                Result[3] = new PlayType(PlayType_BQCSPF, "半全场胜平负");

                return(Result);
            }
Exemple #26
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[4];

                Result[0] = new PlayType(PlayType_D, "单式");
                Result[1] = new PlayType(PlayType_F, "复式");
                Result[2] = new PlayType(PlayType_D_3, "彩中3单式");
                Result[3] = new PlayType(PlayType_F_3, "彩中3复式");

                return Result;
            }
Exemple #27
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[4];

                Result[0] = new PlayType(PlayType_ShuZi, "数字");
                Result[1] = new PlayType(PlayType_ShengXiao, "生肖");
                Result[2] = new PlayType(PlayType_SiJi, "四季");
                Result[3] = new PlayType(PlayType_FangWei, "方位");

                return(Result);
            }
Exemple #28
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[4];

                Result[0] = new PlayType(PlayType_D, "单式");
                Result[1] = new PlayType(PlayType_F, "复式");
                Result[2] = new PlayType(PlayType_HYC2_D, "好运二单式");
                Result[3] = new PlayType(PlayType_HYC2_F, "好运二复式");

                return(Result);
            }
 public override void Reset()
 {
     tweenID = null;
     //	target = new FsmOwnerDefault();
     //	target.OwnerOption = OwnerDefaultOption.SpecifyGameObject;
     completed   = null;
     failed      = null;
     playType    = PlayType.play;
     onExit      = OnExitAction.Nothing;
     startAction = OnStartAction.Default;
 }
 private Play NewPlayFrom(Play _play, PlayType _playType, bool _sameTeam)
 {
     return(new Play
     {
         PlayType = _playType,
         Time = _play.Time,
         GameTime = _play.GameTime,
         Points = _play.Points != 0 ? _play.Points : 0,
         TeamB = _sameTeam ? _play.TeamB : !_play.TeamB
     });
 }
Exemple #31
0
 private void SavePlay(PlayMade domainEvent)
 {
     if (domainEvent.Player == PlayerType.Player1)
     {
         player1LastScore = domainEvent.Play;
     }
     else if (domainEvent.Player == PlayerType.Player2)
     {
         player2LastScore = domainEvent.Play;
     }
 }
Exemple #32
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[3];

                Result[0] = new PlayType(PlayType_ZhiD, "直选单式");
                Result[1] = new PlayType(PlayType_ZhiF, "直选复式");
                Result[2] = new PlayType(PlayType_ZuD, "组选单复式");
                // Result[3] = new PlayType(PlayType_ZuF, "组选复式");

                return(Result);
            }
        public int GetScore(PlayType type)
        {
            var matchingPlay = Plays.FirstOrDefault(x => x.Type == type);

            if (matchingPlay != null)
            {
                return(matchingPlay.PointValue);
            }

            return(0);
        }
Exemple #34
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[4];

                Result[0] = new PlayType(PlayType_D, "单式");
                Result[1] = new PlayType(PlayType_F, "复式");
                Result[2] = new PlayType(PlayType_D_3, "彩中3单式");
                Result[3] = new PlayType(PlayType_F_3, "彩中3复式");

                return(Result);
            }
Exemple #35
0
        private void lbFavorite_Click(object sender, EventArgs e)
        {
            string[] intr = { "O", "R", "S" };
            if (OnPlaySongTypeClickEvent != null)
            {
                playtype        = (PlayType)(((int)playtype + 1) % System.Enum.GetNames(playtype.GetType()).Length);
                lbFavorite.Text = intr[(int)playtype];

                OnPlaySongTypeClickEvent(playtype);
            }
        }
        public static void JoinBattleField(string battleFieldId, string robotId, PlayType playType)
        {
            BattleField battleField = GetBattleField(battleFieldId);

            battleField.RegisterRobot(robotId, playType);

            if (battleField.Robots.Count == 2)
            {
                battleField.StartBattle();
            }
        }
Exemple #37
0
 internal static string GetShortPlayTypeValue(PlayType playType)
 {
     switch (playType)
     {
         case PictureLink.GameLogic.PlayType.Link:
             return "L";
         case PictureLink.GameLogic.PlayType.NewGame:
             return "N";
         default:
             return string.Empty;
     }
 }
Exemple #38
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[5];

                Result[0] = new PlayType(PlayType_D, "单式");
                Result[1] = new PlayType(PlayType_F, "复式");
                Result[2] = new PlayType(PlayType_HY2, "好运2");
                Result[3] = new PlayType(PlayType_HY3, "好运3");
                Result[4] = new PlayType(PlayType_HY4, "好运4");

                return(Result);
            }
Exemple #39
0
        private void UniversalPlay(IPlaylist playlist, PlayType playType)
        {
            if (Song.IsPlaying)
            {
                WavePlayer.Pause();
                Song.IsPausing = false;
            }

            playlist.SelectedSong = GetNewSongPath(playlist, playType);

            PlayerHelper(playlist);
        }
Exemple #40
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[5];

                Result[0] = new PlayType(PlayType_SPF, "胜平负");
                Result[1] = new PlayType(PlayType_ZJQ, "总进球");
                Result[2] = new PlayType(PlayType_SXDS, "上下单双");
                Result[3] = new PlayType(PlayType_ZQBF, "正确比分");
                Result[4] = new PlayType(PlayType_BQCSPF, "半全场胜平负");

                return Result;
            }
 internal Tournament(string name, bool started, DateTime date, PlayType type, int tables, int finaleRounds, bool poolsReq)
     : base()
 {
     this.Name                  = name;
     this.Started               = started;
     this.Date                  = date;
     this.Type                  = type;
     this.AmountTables          = tables;
     this.MaxAmountFinaleRounds = finaleRounds;
     this.PoolsRequired         = poolsReq;
     this.PoolSizes             = new List <int>();
 }
Exemple #42
0
 public static string toString(PlayType type)
 {
     switch (type)
     {
         case PlayType.ACOUSTIC:
             return "Acoustic";
         case PlayType.ELECTRIC:
             return "Electric";
         default:
             return null;
     }
 }
 public static int GetRank(this Card card, PlayType playType)
 {
     if (playType.IsTrump() && card.CardSuit == playType.GetTrumpSuit())
     {
         return(10 + _trumpRankList.IndexOf(card.CardRank));
     }
     if (playType.IsTrump() || playType == PlayType.UpDown)
     {
         return(_upDownRankList.IndexOf(card.CardRank));
     }
     return(_downUpRankList.IndexOf(card.CardRank));
 }
Exemple #44
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[5];

                Result[0] = new PlayType(PlayType_D, "单式");
                Result[1] = new PlayType(PlayType_F, "复式");
                Result[2] = new PlayType(PlayType_HY2, "好运2");
                Result[3] = new PlayType(PlayType_HY3, "好运3");
                Result[4] = new PlayType(PlayType_HY4, "好运4");

                return Result;
            }
Exemple #45
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[6];

                Result[0] = new PlayType(PlayType_D, "单式");
                Result[1] = new PlayType(PlayType_F, "复式");
                Result[2] = new PlayType(PlayType_HC2_D, "好彩二单式");
                Result[3] = new PlayType(PlayType_HC2_F, "好彩二复式");
                Result[4] = new PlayType(PlayType_HC3_D, "好彩三单式");
                Result[5] = new PlayType(PlayType_HC3_F, "好彩三复式");

                return Result;
            }
Exemple #46
0
        public void Add(String pDan, String pTuo, PlayType pPlayType)
        {
            WelfareLottery lottery = new WelfareLottery();
            lottery.PlayType = pPlayType;
            lottery.Lottery.Add(NumericType.Dan, pDan);
            lottery.Lottery.Add(NumericType.Tuo, pTuo);

            Valid(lottery);

            lottery.BetCount = CalculateBet(lottery);
            mTotalBet += lottery.BetCount;
            mWelfareLotterys.Add(lottery);
        }
        private void CreatePlayTypes()
        {
            this.PlayTypes.Clear();

            PlayType pType = new PlayType(501, "单式");
            this.PlayTypes.Add(pType);

            pType = new PlayType(502, "复式");
            this.PlayTypes.Add(pType);

            pType = new PlayType(503, "胆拖");
            this.PlayTypes.Add(pType);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="playName">玩法名称</param>
        /// <param name="area">区域</param>
        /// <param name="gameName">玩法编号</param>
        /// <param name="lotteryType">彩票种类,如:上海福彩,重庆福彩,江西福彩,山东体彩</param>
        public PlayMethod(string playName, string area, string gameName, LotteryType lotteryType)
        {
            this.PlayName = playName;
            this.Area = area;
            this.GameName = gameName;
            this.LotteryType = lotteryType;

            this.PlayTypes.Clear();
            PlayType pType = null;
            switch (gameName.ToLower())
            {
                case "ssq"://双色球(ssq)
                case "601"://华东六省联销6+1(601)
                    pType = new PlayType("101", "单式投注", "");
                    this.PlayTypes.Add(pType);
                    pType = new PlayType("102", "复式投注", "");
                    this.PlayTypes.Add(pType);
                    break;
                case "307"://七乐彩(307)
                case "155"://15选5(155)
                    pType = new PlayType("101", "单式投注", "");
                    this.PlayTypes.Add(pType);
                    pType = new PlayType("102", "复式投注", "");
                    this.PlayTypes.Add(pType);
                    pType = new PlayType("103", "胆拖投注", "");
                    this.PlayTypes.Add(pType);
                    break;
                case "3d"://3D(3d)
                    pType = new PlayType("201", "直选投注", "");
                    this.PlayTypes.Add(pType);
                    pType = new PlayType("202", "组选投注", "");
                    this.PlayTypes.Add(pType);
                    pType = new PlayType("204", "直选和值", "");
                    this.PlayTypes.Add(pType);
                    pType = new PlayType("208", "直选按位包号", "");
                    this.PlayTypes.Add(pType);
                    break;
                case "4d"://天天彩4(4d)
                case "ssl"://时时乐(ssl)
                    pType = new PlayType("201", "直选投注", "");
                    this.PlayTypes.Add(pType);
                    pType = new PlayType("202", "组选投注", "");
                    this.PlayTypes.Add(pType);
                    pType = new PlayType("208", "直选按位包号", "");
                    this.PlayTypes.Add(pType);
                    pType = new PlayType("230", "组选按位包号", "");
                    this.PlayTypes.Add(pType);
                    break;
            }
        }
Exemple #49
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[7];

                Result[0] = new PlayType(PlayType_3_ZhiD, "排列3直选单式");
                Result[1] = new PlayType(PlayType_3_ZhiF, "排列3直选复式");
                Result[2] = new PlayType(PlayType_3_ZuD, "排列3组选单式");
                Result[3] = new PlayType(PlayType_3_Zu6F, "排列3组选6复式");
                Result[4] = new PlayType(PlayType_3_Zu3F, "排列3组选3复式");
                Result[5] = new PlayType(PlayType_3_ZhiH, "排列3直选和值");
                Result[6] = new PlayType(PlayType_3_ZuH, "排列3组选和值");

                return Result;
            }
Exemple #50
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[7];

                Result[0] = new PlayType(PlayType_ZhiD, "直选单式");
                Result[1] = new PlayType(PlayType_ZhiF, "直选复式");
                Result[2] = new PlayType(PlayType_ZuD, "组选单式");
                Result[3] = new PlayType(PlayType_Zu6F, "组选6复式");
                Result[4] = new PlayType(PlayType_Zu3F, "组选3复式");
                Result[5] = new PlayType(PlayType_ZhiB, "直选包点");
                Result[6] = new PlayType(PlayType_ZuB, "组选包点");

                return Result;
            }
Exemple #51
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[8];

                Result[0] = new PlayType(PlayType_D, "单式");
                Result[1] = new PlayType(PlayType_F, "复式");
                Result[2] = new PlayType(PlayType_ZJ_D, "追加单式");
                Result[3] = new PlayType(PlayType_ZJ_F, "追加复式");
                Result[4] = new PlayType(PlayType_2_D, "12选2单式");
                Result[5] = new PlayType(PlayType_2_F, "12选2复式");
                Result[6] = new PlayType(PlayType_DT, "胆托");
                Result[7] = new PlayType(PlayType_ZJ_DT, "追号胆托");

                return Result;
            }
Exemple #52
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[10];

                Result[0] = new PlayType(PlayType_D, "单式");
                Result[1] = new PlayType(PlayType_F, "复式");
                Result[2] = new PlayType(PlayType_HY1_D, "好运一单式");
                Result[3] = new PlayType(PlayType_HY1_F, "好运一复式");
                Result[4] = new PlayType(PlayType_HY2_D, "好运二单式");
                Result[5] = new PlayType(PlayType_HY2_F, "好运二复式");
                Result[6] = new PlayType(PlayType_HY3_D, "好运三单式");
                Result[7] = new PlayType(PlayType_HY3_F, "好运三复式");
                Result[8] = new PlayType(PlayType_HY4_D, "好运四单式");
                Result[9] = new PlayType(PlayType_HY4_F, "好运四复式");

                return Result;
            }
        public InterfaceBar(int max, int value, int width, int height, Vector2 position,TypeBar tb , PlayType pt)
            : base()
        {
            percent = 1;
            this.type = tb;
            this.max = max;
            this.value = value;
            this.width = width;
            this.initwidth = width;
            this.initheight = height;
            this.height = height;
            this.position = position;
            this.gametype = pt;
            area = new Rectangle(Convert.ToInt32(position.X), Convert.ToInt32(position.Y), width, height);

            actualise();
        }
Exemple #54
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[10];

                Result[0] = new PlayType(PlayType_D, "单式");
                Result[1] = new PlayType(PlayType_F, "复式");
                Result[2] = new PlayType(PlayType_ZH, "组合玩法");
                Result[3] = new PlayType(PlayType_DX, "猜大小");
                Result[4] = new PlayType(PlayType_5X_TXD, "五星通选单式");
                Result[5] = new PlayType(PlayType_5X_TXF, "五星通选复式");
                Result[6] = new PlayType(PlayType_2X_ZuD, "二星组选单式");
                Result[7] = new PlayType(PlayType_2X_ZuF, "二星组选复式");
                Result[8] = new PlayType(PlayType_2X_ZuB, "二星组选包点");
                Result[9] = new PlayType(PlayType_2X_ZuBD, "二星组选包胆");

                return Result;
            }
Exemple #55
0
        public override PlayType[] GetPlayTypeList()
        {
            PlayType[] Result = new PlayType[12];

            Result[0] = new PlayType(PlayType_HYT, "好运特");
            Result[1] = new PlayType(PlayType_HY1, "好运一");
            Result[2] = new PlayType(PlayType_HY2, "好运二");
            Result[3] = new PlayType(PlayType_Z_HY3, "好运三");
            Result[4] = new PlayType(PlayType_T_HY3, "通选好运三");
            Result[5] = new PlayType(PlayType_B_HY3, "包选好运三");
            Result[6] = new PlayType(PlayType_Z_HY4, "好运四");
            Result[7] = new PlayType(PlayType_T_HY4, "通选好运四");
            Result[8] = new PlayType(PlayType_B_HY4, "包选好运四");
            Result[9] = new PlayType(PlayType_Z_HY5, "好运五");
            Result[10] = new PlayType(PlayType_T_HY5, "通选好运五");
            Result[11] = new PlayType(PlayType_B_HY5, "包选好运五");

            return Result;
        }
Exemple #56
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[12];

                Result[0] = new PlayType(PlayType_RX1, "任选一");
                Result[1] = new PlayType(PlayType_RX2, "任选二");
                Result[2] = new PlayType(PlayType_RX3, "任选三");
                Result[3] = new PlayType(PlayType_RX4, "任选四");
                Result[4] = new PlayType(PlayType_RX5, "任选五");
                Result[5] = new PlayType(PlayType_RX6, "任选六");
                Result[6] = new PlayType(PlayType_RX7, "任选七");
                Result[7] = new PlayType(PlayType_RX8, "任选八");
                Result[8] = new PlayType(PlayType_ZhiQ2, "直选前二");
                Result[9] = new PlayType(PlayType_ZhiQ3, "直选前三");
                Result[10] = new PlayType(PlayType_ZuQ2, "组选前二");
                Result[11] = new PlayType(PlayType_ZuQ3, "组选前三");

                return Result;
            }
Exemple #57
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[13];

                Result[0] = new PlayType(PlayType_Mixed, "混合投注");
                Result[1] = new PlayType(PlayType_RX1_D, "任选一单式");
                Result[2] = new PlayType(PlayType_RX1_F, "任选一复式");
                Result[3] = new PlayType(PlayType_RX2_D, "任选二单式");
                Result[4] = new PlayType(PlayType_RX2_F, "任选二复式");
                Result[5] = new PlayType(PlayType_RX3_D, "任选三单式");
                Result[6] = new PlayType(PlayType_RX3_F, "任选三复式");
                Result[7] = new PlayType(PlayType_X4_Zu24, "选四组选24");
                Result[8] = new PlayType(PlayType_X4_Zu12, "选四组选12");
                Result[9] = new PlayType(PlayType_X4_Zu6, "选四组选6");
                Result[10] = new PlayType(PlayType_X4_Zu4, "选四组选4");
                Result[11] = new PlayType(PlayType_X4_ZhiD, "选四直选单式");
                Result[12] = new PlayType(PlayType_X4_ZhiF, "选四组选复式");

                return Result;
            }
Exemple #58
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[16];

                Result[0] = new PlayType(PlayType_Mixed, "混合投注");
                Result[1] = new PlayType(PlayType_ZhiD, "直选单式");
                Result[2] = new PlayType(PlayType_ZhiF, "直选复式");
                Result[3] = new PlayType(PlayType_ZuD, "组选单式");
                Result[4] = new PlayType(PlayType_Zu6F, "组选6复式");
                Result[5] = new PlayType(PlayType_Zu3F, "组选3复式");
                Result[6] = new PlayType(PlayType_ZhiH, "直选和值");
                Result[7] = new PlayType(PlayType_ZuH, "组选和值");
                Result[8] = new PlayType(PlayType_Q2D, "前2单式");
                Result[9] = new PlayType(PlayType_Q2F, "前2复式");
                Result[10] = new PlayType(PlayType_H2D, "后2单式");
                Result[11] = new PlayType(PlayType_H2F, "后2复式");
                Result[12] = new PlayType(PlayType_Q1D, "前1单式");
                Result[13] = new PlayType(PlayType_Q1F, "前1复式");
                Result[14] = new PlayType(PlayType_H1D, "后1单式");
                Result[15] = new PlayType(PlayType_H1F, "后1复式");

                return Result;
            }
Exemple #59
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[29];

                Result[0] = new PlayType(PlayType_ZhiD, "直选单式");
                Result[1] = new PlayType(PlayType_Zu3D, "组选3单式");
                Result[2] = new PlayType(PlayType_Zu6D, "组选6单式");
                Result[3] = new PlayType(PlayType_ZhiH, "直选和值");
                Result[4] = new PlayType(PlayType_Zu3H, "组选3和值");
                Result[5] = new PlayType(PlayType_Zu6H, "组选6和值");
                Result[6] = new PlayType(PlayType_ZuheH, "组合和值");
                Result[7] = new PlayType(PlayType_ZhiBW, "直选按位包号");
                Result[8] = new PlayType(PlayType_ZhiF, "直选复式");
                Result[9] = new PlayType(PlayType_Zu3F, "组选3复式");
                Result[10] = new PlayType(PlayType_Zu6F, "组选6复式");
                Result[11] = new PlayType(PlayType_ZuheF, "组合复式");
                Result[12] = new PlayType(PlayType_ZhiBC, "直选包串");
                Result[13] = new PlayType(PlayType_ZhiECH, "直选二重号");
                Result[14] = new PlayType(PlayType_ZhiDT, "直选胆拖");
                Result[15] = new PlayType(PlayType_ZuheDT, "组合胆拖");
                Result[16] = new PlayType(PlayType_ZhiKD, "直选跨度");
                Result[17] = new PlayType(PlayType_Zu3KD, "组选3跨度");
                Result[18] = new PlayType(PlayType_Zu6KD, "组选6跨度");
                Result[19] = new PlayType(PlayType_ZuheKD, "组合跨度");
                Result[20] = new PlayType(PlayType_ZuheHSW, "和数尾组合");
                Result[21] = new PlayType(PlayType_ZhiJO, "直选奇偶");
                Result[22] = new PlayType(PlayType_Zu3JO, "组选3奇偶");
                Result[23] = new PlayType(PlayType_Zu6JO, "组选6奇偶");
                Result[24] = new PlayType(PlayType_ZuheJO, "组合奇偶");
                Result[25] = new PlayType(PlayType_ZhiDX, "直选大小");
                Result[26] = new PlayType(PlayType_Zu3DX, "组选3大小");
                Result[27] = new PlayType(PlayType_Zu6DX, "组选6大小");
                Result[28] = new PlayType(PlayType_ZuheDX, "组合大小");

                return Result;
            }
Exemple #60
0
            public override PlayType[] GetPlayTypeList()
            {
                PlayType[] Result = new PlayType[17];

                Result[0] = new PlayType(PlayType_RX1, "任选一");
                Result[1] = new PlayType(PlayType_RX2, "任选二");
                Result[2] = new PlayType(PlayType_RX3, "任选三");
                Result[3] = new PlayType(PlayType_RX4, "任选四");
                Result[4] = new PlayType(PlayType_RX5, "任选五");
                Result[5] = new PlayType(PlayType_RX6, "任选六");
                Result[6] = new PlayType(PlayType_RX7, "任选七");
                Result[7] = new PlayType(PlayType_RX8, "任选八");
                Result[8] = new PlayType(PlayType_RX9, "任选九");
                Result[9] = new PlayType(PlayType_RX10, "任选十");
                Result[10] = new PlayType(PlayType_W1, "围一");
                Result[11] = new PlayType(PlayType_W2, "围二");
                Result[12] = new PlayType(PlayType_W3, "围三");
                Result[13] = new PlayType(PlayType_W4, "围四");
                Result[14] = new PlayType(PlayType_H1, "顺一");
                Result[15] = new PlayType(PlayType_H2, "顺二");
                Result[16] = new PlayType(PlayType_H3, "顺三");

                return Result;
            }