예제 #1
0
 private FrameState(IPinsDown pinsDown, int score, int pinsIndex, IScoreStrategy scoreStrategy)
 {
     _pinsDown      = pinsDown;
     _score         = score;
     _pinsIndex     = pinsIndex;
     _scoreStrategy = scoreStrategy;
 }
예제 #2
0
 private SpareStrategy(IScoreStrategy next, IFrameType frameType)
 {
     _next      = next;
     _frameType = frameType;
 }
예제 #3
0
 public SpareStrategy(IScoreStrategy next) : this(next, new IsSpare())
 {
 }
예제 #4
0
 public StrikeStrategy(IScoreStrategy next) : this(next, new IsStrike())
 {
 }
예제 #5
0
 private ScoreStrategy(IScoreStrategy scoreStrategy) => _scoreStrategy = scoreStrategy;