Circle -> HitCircle.

This commit is contained in:
Dean Herbert 2016-11-16 16:16:45 +09:00
parent 37edbd355e
commit da1f6eeab5
8 changed files with 9 additions and 9 deletions

View File

@ -43,7 +43,7 @@ namespace osu.Desktop.VisualTests.Tests
int time = 500;
for (int i = 0; i < 100; i++)
{
objects.Add(new Circle()
objects.Add(new HitCircle()
{
StartTime = time,
Position = new Vector2(RNG.Next(0, 512), RNG.Next(0, 384))

View File

@ -38,7 +38,7 @@ namespace osu.Desktop.VisualTests.Tests
for (int i = 0; i < count; i++)
{
var h = new Circle
var h = new HitCircle
{
StartTime = ourClock.CurrentTime + 1000 + i * 80,
Position = new Vector2((i - count / 2) * 14),

View File

@ -38,7 +38,7 @@ namespace osu.Desktop.VisualTests.Tests
int time = 1500;
for (int i = 0; i < 50; i++)
{
objects.Add(new Circle()
objects.Add(new HitCircle()
{
StartTime = time,
Position = new Vector2(RNG.Next(0, 512), RNG.Next(0, 384)),

View File

@ -28,7 +28,7 @@ namespace osu.Game.Modes.Osu.Objects.Drawables
private GlowLayer glow;
private OsuBaseHit h;
public DrawableCircle(Circle h) : base(h)
public DrawableCircle(HitCircle h) : base(h)
{
this.h = h;

View File

@ -3,7 +3,7 @@
namespace osu.Game.Modes.Osu.Objects
{
public class Circle : OsuBaseHit
public class HitCircle : OsuBaseHit
{
}
}

View File

@ -22,7 +22,7 @@ namespace osu.Game.Modes.Osu.Objects
switch (type)
{
case OsuBaseHit.HitObjectType.Circle:
result = new Circle();
result = new HitCircle();
break;
case OsuBaseHit.HitObjectType.Slider:
result = new Slider();

View File

@ -3,8 +3,8 @@
using osu.Game.Modes.Objects;
using osu.Game.Modes.Objects.Drawables;
using osu.Game.Modes.Osu.Objects;
using osu.Game.Modes.UI;
using Circle = osu.Game.Modes.Osu.Objects.Circle;
using DrawableCircle = osu.Game.Modes.Osu.Objects.Drawables.DrawableCircle;
using OsuBaseHit = osu.Game.Modes.Osu.Objects.OsuBaseHit;
using OsuConverter = osu.Game.Modes.Osu.Objects.OsuConverter;
@ -18,6 +18,6 @@ namespace osu.Game.Modes.Osu.UI
protected override Playfield CreatePlayfield() => new OsuPlayfield();
protected override DrawableHitObject GetVisualRepresentation(OsuBaseHit h)
=> h is Circle ? new DrawableCircle(h as Circle) : null;
=> h is HitCircle ? new DrawableCircle(h as HitCircle) : null;
}
}

View File

@ -136,7 +136,7 @@ namespace osu.Game.Tests.Beatmaps.Formats
Assert.AreEqual(new Vector2(192, 168), slider.Position);
Assert.AreEqual(956, slider.StartTime);
Assert.AreEqual(SampleType.None, slider.Sample.Type);
var circle = beatmap.HitObjects[1] as Circle;
var circle = beatmap.HitObjects[1] as HitCircle;
Assert.IsNotNull(circle);
Assert.AreEqual(new Vector2(304, 56), circle.Position);
Assert.AreEqual(1285, circle.StartTime);