// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Objects.Drawables; using osu.Game.Rulesets.Scoring; using osu.Game.Rulesets.UI; namespace osu.Game.Rulesets.Osu.UI { public interface IHitPolicy { /// /// The containing the s which this applies to. /// IHitObjectContainer HitObjectContainer { set; } /// /// Determines whether a can be hit at a point in time. /// /// The to check. /// The time to check. /// The result that the object would be judged with if hit. /// Whether can be hit at the given . ClickAction CheckHittable(DrawableHitObject hitObject, double time, HitResult result); /// /// Handles a being hit. /// /// The that was hit. void HandleHit(DrawableHitObject hitObject); } }