1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 09:42:57 +08:00

Add comments.

This commit is contained in:
smoogipooo 2017-03-21 18:16:14 +09:00
parent 7cb237798a
commit e2b510f3f0
4 changed files with 40 additions and 2 deletions

View File

@ -10,10 +10,24 @@ using osu.Game.Modes.Taiko.Objects;
namespace osu.Game.Modes.Taiko.UI namespace osu.Game.Modes.Taiko.UI
{ {
/// <summary>
/// A component that is displayed at the hit position in the taiko playfield.
/// </summary>
internal class HitTarget : Container internal class HitTarget : Container
{ {
/// <summary>
/// Diameter of normal hit object circles.
/// </summary>
private const float normal_diameter = TaikoHitObject.CIRCLE_RADIUS * 2 * TaikoPlayfield.PLAYFIELD_SCALE; private const float normal_diameter = TaikoHitObject.CIRCLE_RADIUS * 2 * TaikoPlayfield.PLAYFIELD_SCALE;
/// <summary>
/// Diameter of finisher hit object circles.
/// </summary>
private const float finisher_diameter = normal_diameter * 1.5f; private const float finisher_diameter = normal_diameter * 1.5f;
/// <summary>
/// The 1px inner border of the taiko playfield.
/// </summary>
private const float border_offset = 1; private const float border_offset = 1;
public HitTarget() public HitTarget()

View File

@ -15,6 +15,9 @@ using System.Collections.Generic;
namespace osu.Game.Modes.Taiko.UI namespace osu.Game.Modes.Taiko.UI
{ {
/// <summary>
/// A component of the playfield that captures input and displays input as a drum.
/// </summary>
internal class InputDrum : Container internal class InputDrum : Container
{ {
public InputDrum() public InputDrum()
@ -25,6 +28,8 @@ namespace osu.Game.Modes.Taiko.UI
{ {
new TaikoHalfDrum(false) new TaikoHalfDrum(false)
{ {
Name = "Left Half",
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.CentreRight, Origin = Anchor.CentreRight,
@ -34,6 +39,8 @@ namespace osu.Game.Modes.Taiko.UI
}, },
new TaikoHalfDrum(true) new TaikoHalfDrum(true)
{ {
Name = "Right Half",
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.CentreLeft, Origin = Anchor.CentreLeft,
@ -46,11 +53,16 @@ namespace osu.Game.Modes.Taiko.UI
}; };
} }
/// <summary>
/// A half-drum. Contains one centre and one rim hit.
/// </summary>
private class TaikoHalfDrum : Container private class TaikoHalfDrum : Container
{ {
/// <summary> /// <summary>
/// Keys[0] -> Inner key /// A list of keys which this half-drum accepts.
/// Keys[0] -> Outer key /// <para>
/// [0] => Inner key, [1] => Outer key
/// </para>
/// </summary> /// </summary>
public List<Key> Keys = new List<Key>(); public List<Key> Keys = new List<Key>();

View File

@ -14,8 +14,14 @@ using osu.Game.Graphics;
namespace osu.Game.Modes.Taiko.UI namespace osu.Game.Modes.Taiko.UI
{ {
/// <summary>
/// Text that is shown as judgement when a hit object is hit or missed.
/// </summary>
public class JudgementText : Container public class JudgementText : Container
{ {
/// <summary>
/// The Judgement to display.
/// </summary>
public TaikoJudgementInfo Judgement; public TaikoJudgementInfo Judgement;
private Container textContainer; private Container textContainer;

View File

@ -14,8 +14,14 @@ using osu.Game.Modes.Taiko.Objects;
namespace osu.Game.Modes.Taiko.UI namespace osu.Game.Modes.Taiko.UI
{ {
/// <summary>
/// A ring that explodes to indicate a judgement has occurred.
/// </summary>
internal class RingExplosion : CircularContainer internal class RingExplosion : CircularContainer
{ {
/// <summary>
/// The Judgement to display.
/// </summary>
public TaikoJudgementInfo Judgement; public TaikoJudgementInfo Judgement;
private Box innerFill; private Box innerFill;