コード例 #1
0
 public Game()
 {
     frames = new Frames[10];
     Frame = 0;
     Total = 0;
     strikeFrame = 0;
     EndGame = false;
     strikeBonus = 0;
     isThirdRoll = false;
     InicializeFrames();
 }
コード例 #2
0
 private void InicializeFrames()
 {
     for (int i = 0; i < 10; i++)
     {
         Frames f = new Frames();
         f.rollI = -1;
         f.rollII = -1;
         f.rollIII = -1;
         f.framePosition = i;
         frames[i] = f;
     }
 }