Exemple #1
0
 /// <summary>
 /// </summary>
 /// <param name="game"> Reference to game manager. </param>
 /// <param name="scoreCard"> Reference to current game's score card. </param>
 /// <param name="category"> Score category to accept. </param>
 /// <param name="scores"> Reference to current turn's dice scores. </param>
 /// <returns></returns>
 public virtual bool AcceptScore(GameManager game, ScoreCard scoreCard,
                                 ScoringCategory category, Dictionary <ScoringCategory, int> scores)
 {
     scoreCard.AcceptScore(category, scores[category]);
     game.NextState(new FirstMoveState());
     return(true);
 }
Exemple #2
0
 public GameManager()
 {
     gameState  = new FirstMoveState();
     scoreCard  = new ScoreCard();
     roller     = new DiceRoller();
     rollScores = new Dictionary <ScoringCategory, int>(scoreCard.Scores);
 }
Exemple #3
0
 public override bool AcceptScore(GameManager game, ScoreCard scoreCard,
                                  ScoringCategory category, Dictionary <ScoringCategory, int> scores)
 {
     return(false);
 }