Changeset 37512
- Timestamp:
- 05/14/10 13:20:04 (3 years ago)
- Location:
- lang/csharp/DominionEngine
- Files:
-
- 1 added
- 2 modified
-
DominionEngine.CardInfo.Test/DDL/CardInfoTest.cs (added)
-
DominionEngine.CardInfo/DDL/Card.cs (modified) (1 diff)
-
DominionEngine.CardInfo/DDL/CardInfo.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/csharp/DominionEngine/DominionEngine.CardInfo/DDL/Card.cs
r37508 r37512 54 54 /// </summary> 55 55 /// <typeparam name="T">カードの種類</typeparam> 56 /// <param name="from">カードの位置</param> 56 57 /// <returns></returns> 57 58 public static Card Select<T>(CardPosition from) 58 59 where T : ICardInfo, new() 59 60 { 60 SelectingEventArgs args = new SelectingEventArgs(Card<T>.cardInfo, from); 61 return Select(Card<T>.cardInfo, from); 62 } 63 64 /// <summary> 65 /// カード選択 66 /// </summary> 67 /// <param name="cardInfo">カードの種類</param> 68 /// <param name="from">カードの位置</param> 69 /// <returns></returns> 70 internal static Card Select(ICardInfo cardInfo, CardPosition from) 71 { 72 SelectingEventArgs args = new SelectingEventArgs(cardInfo, from); 61 73 Selecting(null, args); 62 74 -
lang/csharp/DominionEngine/DominionEngine.CardInfo/DDL/CardInfo.cs
r37470 r37512 20 20 21 21 public EachClass Each { get; internal set; } 22 23 /// <summary> 24 /// このカードを破棄する 25 /// </summary> 26 protected void Trash() 27 { 28 Card card = Card.Select(this, CardPosition.Hand(Game.TurnPlayer)); 29 card.Move(CardPosition.Trash); 30 } 22 31 } 23 32 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)