Changeset 37515

Show
Ignore:
Timestamp:
05/14/10 13:45:12 (5 years ago)
Author:
isaisstillalive
Message:
  • Feast実装
Location:
lang/csharp/DominionEngine
Files:
1 added
2 modified
1 moved

Legend:

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

    r37503 r37515  
    4949    <Compile Include="Chapel.cs" /> 
    5050    <Compile Include="CouncilRoom.cs" /> 
     51    <Compile Include="Feast.cs" /> 
    5152    <Compile Include="Festival.cs" /> 
    5253    <Compile Include="Gardens.cs" /> 
     
    5556    <Compile Include="NotImplemented\Adventurer.cs" /> 
    5657    <Compile Include="NotImplemented\Bureaucrat.cs" /> 
    57     <Compile Include="NotImplemented\Feast.cs" /> 
    5858    <Compile Include="NotImplemented\Library.cs" /> 
    5959    <Compile Include="NotImplemented\Militia.cs" /> 
  • lang/csharp/DominionEngine/DominionEngine.CardInfo.Base/Feast.cs

    r37473 r37515  
    1414        public void Action() 
    1515        { 
    16             //Trash(ThisCard); 
    17             //Player.Gain(Costing.UpTo(Worth.Coin * 5)); 
     16            ///Trash this card. 
     17            Trash(); 
    1818 
    19             //var supply = Choose.FromSupply(1, 1, false, cardinfo => (Worth.Coin * 5).IsAfford(cardinfo.Cost)).First(); 
    20             //Player.Gain(supply); 
     19            //Gain a card costing up to 5. 
     20            var gainCard = Player.Choose(CardPosition.Supply, 1, cardinfo => (Worth.Coin(5)).IsAfford(cardinfo.Cost)); 
     21            Player.Gain(gainCard); 
    2122        } 
    2223    } 
  • lang/csharp/DominionEngine/DominionEngine.CardInfo.Test/DominionEngine.CardInfo.Test.csproj

    r37514 r37515  
    5252    <Compile Include="Base\CellarTest.cs" /> 
    5353    <Compile Include="Base\WitchTest.cs" /> 
     54    <Compile Include="Base\FeastTest.cs" /> 
    5455    <Compile Include="DDL\CardTest.cs" /> 
    5556    <Compile Include="DDL\TurnPlayerTest.cs" />