Split out CatcherArea nested classes and reorder methods

This commit is contained in:
Dean Herbert
2020-03-13 12:59:30 +09:00
parent 8fb41e4c67
commit 1733519c3a
10 changed files with 605 additions and 572 deletions

View File

@ -227,7 +227,7 @@ namespace osu.Game.Rulesets.Catch.Beatmaps
int thisDirection = nextObject.X > currentObject.X ? 1 : -1;
double timeToNext = nextObject.StartTime - currentObject.StartTime - 1000f / 60f / 4; // 1/4th of a frame of grace time, taken from osu-stable
double distanceToNext = Math.Abs(nextObject.X - currentObject.X) - (lastDirection == thisDirection ? lastExcess : halfCatcherWidth);
float distanceToHyper = (float)(timeToNext * CatcherArea.Catcher.BASE_SPEED - distanceToNext);
float distanceToHyper = (float)(timeToNext * Catcher.BASE_SPEED - distanceToNext);
if (distanceToHyper < 0)
{