/// <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); }
public GameManager() { gameState = new FirstMoveState(); scoreCard = new ScoreCard(); roller = new DiceRoller(); rollScores = new Dictionary <ScoringCategory, int>(scoreCard.Scores); }
public override bool AcceptScore(GameManager game, ScoreCard scoreCard, ScoringCategory category, Dictionary <ScoringCategory, int> scores) { return(false); }