diff --git a/osu.Game.Rulesets.Osu/Objects/Drawables/Connections/FollowPoint.cs b/osu.Game.Rulesets.Osu/Objects/Drawables/Connections/FollowPoint.cs
index 89ffddf4cb..db34ae1d87 100644
--- a/osu.Game.Rulesets.Osu/Objects/Drawables/Connections/FollowPoint.cs
+++ b/osu.Game.Rulesets.Osu/Objects/Drawables/Connections/FollowPoint.cs
@@ -12,6 +12,9 @@ using osu.Game.Skinning;
namespace osu.Game.Rulesets.Osu.Objects.Drawables.Connections
{
+ ///
+ /// A single follow point positioned between two adjacent s.
+ ///
public class FollowPoint : Container
{
private const float width = 8;
diff --git a/osu.Game.Rulesets.Osu/Objects/Drawables/Connections/FollowPointGroup.cs b/osu.Game.Rulesets.Osu/Objects/Drawables/Connections/FollowPointGroup.cs
index 9d651373ff..168d2b8532 100644
--- a/osu.Game.Rulesets.Osu/Objects/Drawables/Connections/FollowPointGroup.cs
+++ b/osu.Game.Rulesets.Osu/Objects/Drawables/Connections/FollowPointGroup.cs
@@ -11,12 +11,18 @@ using osuTK;
namespace osu.Game.Rulesets.Osu.Objects.Drawables.Connections
{
+ ///
+ /// Visualises the s between two s.
+ ///
public class FollowPointGroup : CompositeDrawable
{
// Todo: These shouldn't be constants
private const int spacing = 32;
private const double preempt = 800;
+ ///
+ /// The start time of .
+ ///
public readonly Bindable StartTime = new Bindable();
///
diff --git a/osu.Game.Rulesets.Osu/Objects/Drawables/Connections/FollowPointRenderer.cs b/osu.Game.Rulesets.Osu/Objects/Drawables/Connections/FollowPointRenderer.cs
index aa9ec8d96d..afd86e004d 100644
--- a/osu.Game.Rulesets.Osu/Objects/Drawables/Connections/FollowPointRenderer.cs
+++ b/osu.Game.Rulesets.Osu/Objects/Drawables/Connections/FollowPointRenderer.cs
@@ -9,8 +9,14 @@ using osu.Framework.Graphics.Containers;
namespace osu.Game.Rulesets.Osu.Objects.Drawables.Connections
{
+ ///
+ /// Visualises groups of s.
+ ///
public class FollowPointRenderer : CompositeDrawable
{
+ ///
+ /// All the s contained by this .
+ ///
internal IReadOnlyList Groups => groups;
private readonly List groups = new List();
@@ -46,21 +52,24 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Connections
if (index < groups.Count - 1)
{
- // Update the group's end point to the next hitobject
+ // Update the group's end point to the next group's start point
// h1 -> -> -> h2
- // hitObject nextGroup
+ // group nextGroup
FollowPointGroup nextGroup = groups[index + 1];
group.End = nextGroup.Start;
}
else
+ {
+ // The end point may be non-null during re-ordering
group.End = null;
+ }
if (index > 0)
{
- // Previous group's end point to the current group's start point
+ // Update the previous group's end point to the current group's start point
// h1 -> -> -> h2
- // prevGroup hitObject
+ // prevGroup group
FollowPointGroup previousGroup = groups[index - 1];
previousGroup.End = group.Start;
@@ -95,7 +104,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Connections
private void onStartTimeChanged(FollowPointGroup group)
{
- // Naive but can be improved if performance becomes problematic
+ // Naive but can be improved if performance becomes an issue
removeGroup(group);
addGroup(group);
}