예제 #1
0
        protected override IMove GetMove(HtmlNodeCollection cells, WebCharacter character)
        {
            var move = default(IMove);

            if (!string.IsNullOrEmpty(cells[0].InnerText) && cells.Count > 1)
            {
                string name    = GetStatName(cells[0]);
                string faf     = cells[2].InnerText;
                string angle   = cells[4].InnerText;
                string bkbwbkb = cells[5].InnerText;
                string kbg     = cells[6].InnerText;

                string landingLag = cells[7].InnerText;

                var autocancel = new CommonAutocancelParameterResolver().Resolve(cells[8]);

                move = ScrapingServices.CreateMove();

                move = new CommonMoveParameterResolver(character.Game).Resolve(cells, move);

                move.Name  = name;
                move.Angle = angle;
                move.BaseKnockBackSetKnockback = bkbwbkb;
                move.FirstActionableFrame      = faf;
                move.KnockbackGrowth           = kbg;
                move.LandingLag = landingLag;
                move.AutoCancel = autocancel;
                move.MoveType   = MoveType.Aerial.GetEnumDescription();
                move.Owner      = character.Name;
                move.OwnerId    = character.OwnerId;
            }

            return(move);
        }
예제 #2
0
        protected override IMove GetMove(HtmlNodeCollection cells, WebCharacter character)
        {
            var move = default(IMove);

            if (!string.IsNullOrEmpty(cells[0].InnerText) && cells.Count > 1)
            {
                string name = GetStatName(cells[0]);
                //string hitboxActive = cells[1].InnerText;
                string faf = cells[2].InnerText;

                //string basedmg = cells[3].InnerText;

                string angle   = cells[4].InnerText;
                string bkbwbkb = cells[5].InnerText;
                string kbg     = cells[6].InnerText;

                move = ScrapingServices.CreateMove();

                move = new CommonMoveParameterResolver(character.Game).Resolve(cells, move);

                move.Name  = name;
                move.Angle = angle;
                //move.BaseDamage = basedmg;
                move.BaseKnockBackSetKnockback = bkbwbkb;
                move.FirstActionableFrame      = faf;
                //move.HitboxActive = hitboxActive;
                move.KnockbackGrowth = kbg;
                move.MoveType        = MoveType.Special.GetEnumDescription();
                move.Owner           = character.Name;
                move.OwnerId         = character.OwnerId;
                //move.Game = character.SourceUrl.Contains("Ultimate") ? Games.Ultimate : Games.Smash4;
            }

            return(move);
        }
예제 #3
0
        protected override IMove GetMove(HtmlNodeCollection cells, WebCharacter character)
        {
            var move = default(IMove);

            string name = GetStatName(cells[0]);

            //a throw move is not a ground move
            if (name.IndexOf(ScrapingConstants.CommonMoveNames.Throw, StringComparison.OrdinalIgnoreCase) >= 0)
            {
                return(default(IMove));
            }

            if (!string.IsNullOrEmpty(cells[0].InnerText) && cells.Count > 1)
            {
                move = ScrapingServices.CreateMove();
                move = new CommonMoveParameterResolver(character.Game).Resolve(cells, move);

                string faf = cells[2].InnerText;

                string angle   = cells[4].InnerText;
                string bkbwbkb = cells[5].InnerText;
                string kbg     = cells[6].InnerText;

                move.Name = name;

                move.Angle = angle;
                move.BaseKnockBackSetKnockback = bkbwbkb;
                move.FirstActionableFrame      = faf;
                move.KnockbackGrowth           = kbg;
                move.MoveType = MoveType.Ground.GetEnumDescription();
                move.Owner    = character.Name;
                move.OwnerId  = character.OwnerId;
            }

            return(move);
        }