2017-02-07 12:59:30 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2016-09-02 19:30:27 +08:00
|
|
|
|
|
2017-08-09 10:50:34 +08:00
|
|
|
|
using osu.Framework.Input;
|
2017-03-10 14:08:53 +08:00
|
|
|
|
using osu.Game.Beatmaps;
|
2017-04-18 15:05:58 +08:00
|
|
|
|
using osu.Game.Rulesets.Beatmaps;
|
|
|
|
|
using osu.Game.Rulesets.Catch.Beatmaps;
|
|
|
|
|
using osu.Game.Rulesets.Catch.Judgements;
|
|
|
|
|
using osu.Game.Rulesets.Catch.Objects;
|
2017-08-02 18:37:20 +08:00
|
|
|
|
using osu.Game.Rulesets.Catch.Objects.Drawable;
|
2017-04-18 15:05:58 +08:00
|
|
|
|
using osu.Game.Rulesets.Catch.Scoring;
|
|
|
|
|
using osu.Game.Rulesets.Objects.Drawables;
|
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
|
using osu.Game.Rulesets.UI;
|
2016-09-02 19:30:27 +08:00
|
|
|
|
|
2017-04-18 15:05:58 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Catch.UI
|
2016-09-02 19:30:27 +08:00
|
|
|
|
{
|
2017-08-09 12:28:29 +08:00
|
|
|
|
public class CatchRulesetContainer : ScrollingRulesetContainer<CatchPlayfield, CatchBaseHit, CatchJudgement>
|
2016-09-02 19:30:27 +08:00
|
|
|
|
{
|
2017-08-09 12:28:29 +08:00
|
|
|
|
public CatchRulesetContainer(Ruleset ruleset, WorkingBeatmap beatmap, bool isForCurrentRuleset)
|
2017-08-09 12:04:11 +08:00
|
|
|
|
: base(ruleset, beatmap, isForCurrentRuleset)
|
2017-03-10 14:08:53 +08:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2017-03-16 11:40:35 +08:00
|
|
|
|
public override ScoreProcessor CreateScoreProcessor() => new CatchScoreProcessor(this);
|
|
|
|
|
|
2017-04-18 08:38:52 +08:00
|
|
|
|
protected override BeatmapConverter<CatchBaseHit> CreateBeatmapConverter() => new CatchBeatmapConverter();
|
2017-03-12 01:26:10 +08:00
|
|
|
|
|
2017-03-23 18:00:18 +08:00
|
|
|
|
protected override Playfield<CatchBaseHit, CatchJudgement> CreatePlayfield() => new CatchPlayfield();
|
2016-09-02 19:30:27 +08:00
|
|
|
|
|
2017-08-21 11:31:21 +08:00
|
|
|
|
public override PassThroughInputManager CreateInputManager() => new CatchInputManager(Ruleset.RulesetInfo);
|
2017-08-09 10:50:34 +08:00
|
|
|
|
|
2017-08-02 18:37:20 +08:00
|
|
|
|
protected override DrawableHitObject<CatchBaseHit, CatchJudgement> GetVisualRepresentation(CatchBaseHit h)
|
|
|
|
|
{
|
|
|
|
|
if (h is Fruit)
|
|
|
|
|
return new DrawableFruit(h);
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2016-09-02 19:30:27 +08:00
|
|
|
|
}
|
|
|
|
|
}
|