コード例 #1
0
ファイル: Ball.cs プロジェクト: Banane9/Swing
 /// <summary>
 /// Gets executed when the <see cref="Ball"/> is dropped on another <see cref="Ball"/>.
 /// <para/>
 /// Doesn't do anything by default.
 /// </summary>
 /// <param name="ball">The <see cref="Ball"/> this <see cref="Ball"/> is dropped onto.</param>
 public virtual void DropsOn(Ball ball)
 {
 }
コード例 #2
0
ファイル: Ball.cs プロジェクト: Banane9/Swing
 /// <summary>
 /// Checks whether this <see cref="Ball"/> would form a match with the other one.
 /// <para/>
 /// Returns <code>false</code> by default.
 /// </summary>
 /// <param name="other">The other <see cref="Ball"/>.</param>
 /// <returns>Whether this <see cref="Ball"/> would form a match with the other one.</returns>
 public virtual bool Matches(Ball other)
 {
     return false;
 }
コード例 #3
0
ファイル: Ball.cs プロジェクト: Banane9/Swing
 /// <summary>
 /// Gets executed when another <see cref="Ball"/> gets dropped on it.
 /// <para/>
 /// Doesn't do anything by default.
 /// </summary>
 /// <param name="ball">The <see cref="Ball"/> that is dropped onto this <see cref="Ball"/>.</param>
 public virtual void DroppedOnBy(Ball ball)
 {
 }