Changeset 37473
- Timestamp:
- 05/13/10 08:16:20 (3 years ago)
- Location:
- lang/csharp/DominionEngine
- Files:
-
- 14 added
- 4 modified
-
DominionEngine.CardInfo.Base/DominionEngine.CardInfo.Base.csproj (modified) (1 diff)
-
DominionEngine.CardInfo.Base/NotImplemented/Adventurer.cs (added)
-
DominionEngine.CardInfo.Base/NotImplemented/Bureaucrat.cs (added)
-
DominionEngine.CardInfo.Base/NotImplemented/Cellar.cs (added)
-
DominionEngine.CardInfo.Base/NotImplemented/Chapel.cs (added)
-
DominionEngine.CardInfo.Base/NotImplemented/Feast.cs (added)
-
DominionEngine.CardInfo.Base/NotImplemented/Library.cs (added)
-
DominionEngine.CardInfo.Base/NotImplemented/Militia.cs (modified) (1 diff)
-
DominionEngine.CardInfo.Base/NotImplemented/Mine.cs (added)
-
DominionEngine.CardInfo.Base/NotImplemented/Moneylender.cs (added)
-
DominionEngine.CardInfo.Base/NotImplemented/Remodel.cs (added)
-
DominionEngine.CardInfo.Base/NotImplemented/Spy.cs (added)
-
DominionEngine.CardInfo.Base/NotImplemented/Thief.cs (added)
-
DominionEngine.CardInfo.Base/NotImplemented/ThroneRoom.cs (added)
-
DominionEngine.CardInfo.Base/NotImplemented/Witch.cs (added)
-
DominionEngine.CardInfo.Base/NotImplemented/Workshop.cs (added)
-
DominionEngine.CardInfo.suo (modified) (previous)
-
DominionEngine.CardInfo/DDL/AnyPlayer.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/csharp/DominionEngine/DominionEngine.CardInfo.Base/DominionEngine.CardInfo.Base.csproj
r37471 r37473 51 51 <Compile Include="Laboratory.cs" /> 52 52 <Compile Include="Market.cs" /> 53 <Compile Include="NotImplemented\Adventurer.cs" /> 54 <Compile Include="NotImplemented\Bureaucrat.cs" /> 55 <Compile Include="NotImplemented\Cellar.cs" /> 56 <Compile Include="NotImplemented\Chapel.cs" /> 57 <Compile Include="NotImplemented\Feast.cs" /> 58 <Compile Include="NotImplemented\Library.cs" /> 53 59 <Compile Include="NotImplemented\Militia.cs" /> 60 <Compile Include="NotImplemented\Mine.cs" /> 54 61 <Compile Include="NotImplemented\Moat.cs" /> 62 <Compile Include="NotImplemented\Moneylender.cs" /> 63 <Compile Include="NotImplemented\Remodel.cs" /> 64 <Compile Include="NotImplemented\Spy.cs" /> 65 <Compile Include="NotImplemented\Thief.cs" /> 66 <Compile Include="NotImplemented\ThroneRoom.cs" /> 67 <Compile Include="NotImplemented\Witch.cs" /> 68 <Compile Include="NotImplemented\Workshop.cs" /> 55 69 <Compile Include="Properties\AssemblyInfo.cs" /> 56 70 <Compile Include="Smithy.cs" /> -
lang/csharp/DominionEngine/DominionEngine.CardInfo.Base/NotImplemented/Militia.cs
r37465 r37473 14 14 public void Action() 15 15 { 16 //Player.Coin += 2;16 Player.Coin += 2; 17 17 18 18 //Each other player discards down to 3 cards in his hand. 19 foreach (var otherPlayer in Each.Other.Player) 20 { 21 int discardCardQuantity = otherPlayer.Hand.Count - 3; 22 if (discardCardQuantity <= 0) continue; 23 24 var discardCards = otherPlayer.Choose(CardPosition.Hand, discardCardQuantity, discardCardQuantity); 25 foreach (var discardCard in discardCards) 26 { 27 //discardCard.Discard(); 28 } 29 } 19 30 } 20 31 } -
lang/csharp/DominionEngine/DominionEngine.CardInfo/DDL/AnyPlayer.cs
r37472 r37473 132 132 133 133 /// <summary> 134 /// カード選択 135 /// </summary> 136 /// <param name="from"></param> 137 /// <param name="minQuantity"></param> 138 /// <param name="maxQuantity"></param> 139 /// <returns></returns> 140 public IList<Card> Choose(CardPosition from, int minQuantity, int maxQuantity) 141 { 142 return Choose(from, minQuantity, maxQuantity, cardinfo => true); 143 } 144 145 /// <summary> 134 146 /// カード選択イベント 135 147 /// </summary>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)