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
{
/// <summary>
/// A component that is displayed at the hit position in the taiko playfield.
/// </summary>
internal class HitTarget : Container
{
/// <summary>
/// Diameter of normal hit object circles.
/// </summary>
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;
/// <summary>
/// The 1px inner border of the taiko playfield.
/// </summary>
private const float border_offset = 1;
public HitTarget()

View File

@ -15,6 +15,9 @@ using System.Collections.Generic;
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
{
public InputDrum()
@ -25,6 +28,8 @@ namespace osu.Game.Modes.Taiko.UI
{
new TaikoHalfDrum(false)
{
Name = "Left Half",
Anchor = Anchor.Centre,
Origin = Anchor.CentreRight,
@ -34,6 +39,8 @@ namespace osu.Game.Modes.Taiko.UI
},
new TaikoHalfDrum(true)
{
Name = "Right Half",
Anchor = Anchor.Centre,
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
{
/// <summary>
/// Keys[0] -> Inner key
/// Keys[0] -> Outer key
/// A list of keys which this half-drum accepts.
/// <para>
/// [0] => Inner key, [1] => Outer key
/// </para>
/// </summary>
public List<Key> Keys = new List<Key>();

View File

@ -14,8 +14,14 @@ using osu.Game.Graphics;
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
{
/// <summary>
/// The Judgement to display.
/// </summary>
public TaikoJudgementInfo Judgement;
private Container textContainer;

View File

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