2016-08-31 03:33:01 +00:00
|
|
|
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2016-11-28 06:31:54 +00:00
|
|
|
|
using osu.Game.Beatmaps;
|
2016-08-31 03:33:01 +00:00
|
|
|
|
using osu.Game.Beatmaps.Samples;
|
2016-11-02 09:08:08 +00:00
|
|
|
|
using OpenTK.Graphics;
|
2017-01-09 22:18:47 +00:00
|
|
|
|
using osu.Game.Graphics;
|
2016-08-31 03:33:01 +00:00
|
|
|
|
|
2016-11-14 09:03:20 +00:00
|
|
|
|
namespace osu.Game.Modes.Objects
|
2016-08-31 03:33:01 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A hitobject describes a point in a beatmap
|
|
|
|
|
/// </summary>
|
2016-09-26 06:07:29 +00:00
|
|
|
|
public abstract class HitObject
|
2016-08-31 03:33:01 +00:00
|
|
|
|
{
|
|
|
|
|
public double StartTime;
|
2016-10-19 10:44:03 +00:00
|
|
|
|
public virtual double EndTime => StartTime;
|
2016-08-31 03:33:01 +00:00
|
|
|
|
|
2016-11-02 09:08:08 +00:00
|
|
|
|
public bool NewCombo { get; set; }
|
|
|
|
|
|
2017-01-12 21:38:27 +00:00
|
|
|
|
public Color4 Colour = new Color4(17, 136, 170, 255);
|
2016-11-02 09:08:08 +00:00
|
|
|
|
|
2016-10-19 10:44:03 +00:00
|
|
|
|
public double Duration => EndTime - StartTime;
|
2016-09-02 09:31:32 +00:00
|
|
|
|
|
2016-08-31 04:51:00 +00:00
|
|
|
|
public HitSampleInfo Sample;
|
2016-11-28 09:45:50 +00:00
|
|
|
|
|
|
|
|
|
public virtual void SetDefaultsFromBeatmap(Beatmap beatmap) { }
|
2016-08-31 03:33:01 +00:00
|
|
|
|
}
|
|
|
|
|
}
|