Changeset 37473

Show
Ignore:
Timestamp:
05/13/10 08:16:20 (5 years ago)
Author:
isaisstillalive
Message:
  • 基本セットのカードを追加(未実装)
Location:
lang/csharp/DominionEngine
Files:
14 added
4 modified

Legend:

Unmodified
Added
Removed
  • lang/csharp/DominionEngine/DominionEngine.CardInfo.Base/DominionEngine.CardInfo.Base.csproj

    r37471 r37473  
    5151    <Compile Include="Laboratory.cs" /> 
    5252    <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" /> 
    5359    <Compile Include="NotImplemented\Militia.cs" /> 
     60    <Compile Include="NotImplemented\Mine.cs" /> 
    5461    <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" /> 
    5569    <Compile Include="Properties\AssemblyInfo.cs" /> 
    5670    <Compile Include="Smithy.cs" /> 
  • lang/csharp/DominionEngine/DominionEngine.CardInfo.Base/NotImplemented/Militia.cs

    r37465 r37473  
    1414        public void Action() 
    1515        { 
    16             //Player.Coin += 2; 
     16            Player.Coin += 2; 
    1717 
    1818            //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            } 
    1930        } 
    2031    } 
  • lang/csharp/DominionEngine/DominionEngine.CardInfo/DDL/AnyPlayer.cs

    r37472 r37473  
    132132 
    133133        /// <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> 
    134146        /// カード選択イベント 
    135147        /// </summary>