Beispiel #1
0
 public void WaitPlayerDrawingAction(PokerEngine.Player player, PokerEngine.Engine.PlayerDrawingAction action)
 {
     helper.WaitPlayerDrawingAction(player, action);
     if (action.DrawnCards.Count == 1)
     {
         Speak("All I need is just one card...");
     }
     else if (action.DrawnCards.Count == 0)
     {
         Speak("You might as well fold. I don't need any card!");
     }
 }
Beispiel #2
0
 /// <summary>
 /// Called by the client to get the player drawing response.
 /// </summary>
 /// <param name="player">The player which draws the cards</param>
 /// <param name="action">The action which should be modified according to the player actions</param>
 public void WaitPlayerDrawingAction(Player player, PlayerDrawingAction action)
 {
     helper.WaitPlayerDrawingAction(player, action);
 }
Beispiel #3
0
 /// <summary>
 /// A method which is used to get the player drawing action. Derived classes must override this method to perform the action.
 /// </summary>
 /// <param name="player">The player which may draw new cards</param>
 /// <param name="action">The drawing action which must be updated with the player drawing selection</param>
 public PlayerDrawingAction WaitPlayerDrawingAction(Player player, PlayerDrawingAction action)
 {
     checkDrawingStarted();
     fiveCardConcreteClient.WaitPlayerDrawingAction(player, action);
     return(action);
 }