本文整理汇总了C#中IGame.ChangeCityProductionProjectAt方法的典型用法代码示例。如果您正苦于以下问题:C# IGame.ChangeCityProductionProjectAt方法的具体用法?C# IGame.ChangeCityProductionProjectAt怎么用?C# IGame.ChangeCityProductionProjectAt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IGame
的用法示例。
在下文中一共展示了IGame.ChangeCityProductionProjectAt方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RedCityAt1x1_ProducesARedArcher_AfterTwoRounds
public void RedCityAt1x1_ProducesARedArcher_AfterTwoRounds(IGame game)
{
// :::: ARRANGE ::::
game.ChangeCityProductionProjectAt(RedCityTile, Archer);
// :::: ACT ::::
SkipRounds(game, 2);
// :::: ASSERT ::::
game.UnitAt(RedCityTile).Owner.Should().Be(Red);
game.UnitAt(RedCityTile).Type.Should().Be(Archer);
game.UnitAt(RedCityTile).RemainingMovement.Should().Be(1);
}
示例2: BlueCityAt4x1_ProducesABlueSettler_AfterFiveRounds
public void BlueCityAt4x1_ProducesABlueSettler_AfterFiveRounds(IGame game)
{
// :::: ARRANGE ::::
game.EndTurn();
game.ChangeCityProductionProjectAt(BlueCityTile, Settler);
// :::: ACT ::::
SkipRounds(game, 5);
// :::: ASSERT ::::
game.UnitAt(BlueCityTile).Owner.Should().Be(Blue);
game.UnitAt(BlueCityTile).Type.Should().Be(Settler);
game.UnitAt(BlueCityTile).RemainingMovement.Should().Be(1);
}
示例3: BlueChariotAt4x1_DoesNotFortify_WhenRedIsInTurn
public void BlueChariotAt4x1_DoesNotFortify_WhenRedIsInTurn(IGame game)
{
// :::: ARRANGE ::::
game.EndTurn();
game.ChangeCityProductionProjectAt(BlueCityTile, Chariot);
SkipRounds(game, 4);
game.EndTurn();
// :::: ACT ::::
game.PerformUnitActionAt(BlueCityTile);
// :::: ASSERT ::::
game.UnitAt(BlueCityTile).RemainingMovement.Should().Be(1);
}