本文整理汇总了C#中model.StartNewRound方法的典型用法代码示例。如果您正苦于以下问题:C# model.StartNewRound方法的具体用法?C# model.StartNewRound怎么用?C# model.StartNewRound使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类model
的用法示例。
在下文中一共展示了model.StartNewRound方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PlayGame
public bool PlayGame(view.Console a_view, model.GameFacade a_game)
{
a_view.PresentInstructions();
a_view.DisplayHands(a_game.GetDealerHand(), a_game.GetDealerScore(), a_game.GetPlayerHand(), a_game.GetPlayerScore());
if (a_game.IsGameOver())
{
a_view.DisplayWinner(a_game.IsPlayerWinner());
}
view.Console.Event e;
e = a_view.GetEvent();
if (e == view.Console.Event.Quit)
{
return false;
}
if (e == view.Console.Event.Start)
{
a_game.StartNewRound();
}
if (e == view.Console.Event.Hit)
{
a_game.Hit();
}
if (e == view.Console.Event.Stand)
{
a_game.Stand();
}
return true;
}
示例2: PlayGame
public bool PlayGame(view.Console a_view, model.Dealer a_dealer, model.Player a_player)
{
a_view.PresentInstructions();
a_view.DisplayHands(a_dealer.GetHand(), a_player.GetHand());
view.Console.Event e;
e = a_view.GetEvent();
if (e == view.Console.Event.Quit)
{
return false;
}
if (e == view.Console.Event.Start)
{
a_dealer.StartNewRound(a_player);
}
return true;
}