예제 #1
0
        private void addStrongHitJudgement(bool kiai)
        {
            HitResult hitResult = RNG.Next(2) == 0 ? HitResult.Good : HitResult.Great;

            var cpi = new ControlPointInfo();

            cpi.Add(0, new EffectControlPoint {
                KiaiMode = kiai
            });

            Hit hit = new Hit();

            hit.ApplyDefaults(cpi, new BeatmapDifficulty());

            var h = new DrawableTestHit(hit)
            {
                X = RNG.NextSingle(hitResult == HitResult.Good ? -0.1f : -0.05f, hitResult == HitResult.Good ? 0.1f : 0.05f)
            };

            ((TaikoPlayfield)drawableRuleset.Playfield).OnNewResult(h, new JudgementResult(new HitObject(), new TaikoJudgement())
            {
                Type = hitResult
            });
            ((TaikoPlayfield)drawableRuleset.Playfield).OnNewResult(new TestStrongNestedHit(h), new JudgementResult(new HitObject(), new TaikoStrongJudgement())
            {
                Type = HitResult.Great
            });
        }
예제 #2
0
        private void addStrongHitJudgement(bool kiai)
        {
            HitResult hitResult = RNG.Next(2) == 0 ? HitResult.Ok : HitResult.Great;

            Hit hit = new Hit
            {
                StartTime = DrawableRuleset.Playfield.Time.Current,
                IsStrong  = true,
                Samples   = createSamples(strong: true)
            };
            var h = new DrawableTestHit(hit, kiai: kiai)
            {
                X = RNG.NextSingle(hitResult == HitResult.Ok ? -0.1f : -0.05f, hitResult == HitResult.Ok ? 0.1f : 0.05f)
            };

            DrawableRuleset.Playfield.Add(h);

            ((TaikoPlayfield)DrawableRuleset.Playfield).OnNewResult(h, new JudgementResult(hit, new TaikoJudgement())
            {
                Type = hitResult
            });
            ((TaikoPlayfield)DrawableRuleset.Playfield).OnNewResult(h.NestedHitObjects.Single(), new JudgementResult(hit.NestedHitObjects.Single(), new TaikoStrongJudgement())
            {
                Type = HitResult.Great
            });
        }
예제 #3
0
        private void addHitJudgement(bool kiai)
        {
            HitResult hitResult = RNG.Next(2) == 0 ? HitResult.Good : HitResult.Great;

            var cpi = new ControlPointInfo();

            cpi.EffectPoints.Add(new EffectControlPoint
            {
                KiaiMode = kiai
            });

            Hit hit = new Hit();

            hit.ApplyDefaults(cpi, new BeatmapDifficulty());

            var h = new DrawableTestHit(hit)
            {
                X = RNG.NextSingle(hitResult == HitResult.Good ? -0.1f : -0.05f, hitResult == HitResult.Good ? 0.1f : 0.05f)
            };

            ((TaikoPlayfield)rulesetContainer.Playfield).OnJudgement(h, new TaikoJudgement {
                Result = hitResult
            });

            if (RNG.Next(10) == 0)
            {
                ((TaikoPlayfield)rulesetContainer.Playfield).OnJudgement(h, new TaikoJudgement {
                    Result = hitResult
                });
                ((TaikoPlayfield)rulesetContainer.Playfield).OnJudgement(h, new TaikoStrongHitJudgement());
            }
        }
예제 #4
0
        private void addMissJudgement()
        {
            DrawableTestHit h;

            DrawableRuleset.Playfield.Add(h = new DrawableTestHit(new Hit(), HitResult.Miss));
            ((TaikoPlayfield)DrawableRuleset.Playfield).OnNewResult(h, new JudgementResult(new HitObject(), new TaikoJudgement())
            {
                Type = HitResult.Miss
            });
        }
예제 #5
0
        private void addMissJudgement()
        {
            DrawableTestHit h;

            DrawableRuleset.Playfield.Add(h = new DrawableTestHit(new Hit {
                StartTime = DrawableRuleset.Playfield.Time.Current
            }, HitResult.Miss)
            {
                Alpha = 0
            });
            ((TaikoPlayfield)DrawableRuleset.Playfield).OnNewResult(h, new JudgementResult(h.HitObject, new TaikoJudgement())
            {
                Type = HitResult.Miss
            });
        }
예제 #6
0
        private void addHitJudgement(bool kiai)
        {
            HitResult hitResult = RNG.Next(2) == 0 ? HitResult.Ok : HitResult.Great;

            Hit hit = new Hit();
            var h   = new DrawableTestHit(hit, kiai: kiai)
            {
                X = RNG.NextSingle(hitResult == HitResult.Ok ? -0.1f : -0.05f, hitResult == HitResult.Ok ? 0.1f : 0.05f)
            };

            DrawableRuleset.Playfield.Add(h);

            ((TaikoPlayfield)DrawableRuleset.Playfield).OnNewResult(h, new JudgementResult(new HitObject(), new TaikoJudgement())
            {
                Type = hitResult
            });
        }