本文整理汇总了C#中IGame.PerformUnitActionAt方法的典型用法代码示例。如果您正苦于以下问题:C# IGame.PerformUnitActionAt方法的具体用法?C# IGame.PerformUnitActionAt怎么用?C# IGame.PerformUnitActionAt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IGame
的用法示例。
在下文中一共展示了IGame.PerformUnitActionAt方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RedSettlerAt4x3_DoesNotBuildACity_WhenBlueIsInTurn
public void RedSettlerAt4x3_DoesNotBuildACity_WhenBlueIsInTurn(IGame game)
{
// :::: ARRANGE ::::
game.EndTurn();
// :::: ACT ::::
game.PerformUnitActionAt(RedSettlerTile);
// :::: ASSERT ::::
game.UnitAt(RedSettlerTile).Should().NotBeNull();
game.CityAt(RedSettlerTile).Should().BeNull();
}
示例2: RedSettlerAt4x3_BuildsARedCity_WhenRedIsInTurn
public void RedSettlerAt4x3_BuildsARedCity_WhenRedIsInTurn(IGame game)
{
// :::: ACT ::::
game.PerformUnitActionAt(RedSettlerTile);
// :::: ASSERT ::::
game.UnitAt(RedSettlerTile).Should().BeNull();
game.CityAt(RedSettlerTile).Should().NotBeNull();
}
示例3: RedArcherAt2x0_DoesNotFortify_WhenBlueIsInTurn
public void RedArcherAt2x0_DoesNotFortify_WhenBlueIsInTurn(IGame game)
{
// :::: ARRANGE ::::
game.EndTurn();
// :::: ACT ::::
game.PerformUnitActionAt(RedArcherTile);
// :::: ASSERT ::::
game.UnitAt(RedArcherTile).RemainingMovement.Should().Be(1);
}
示例4: 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);
}
示例5: RedArcherAt2x0_Fortifies_WhenRedIsInTurn
public void RedArcherAt2x0_Fortifies_WhenRedIsInTurn(IGame game)
{
// :::: ACT ::::
game.PerformUnitActionAt(RedArcherTile);
// :::: ASSERT ::::
game.UnitAt(RedArcherTile).RemainingMovement.Should().Be(0);
}