コード例 #1
0
 public Game()
 {
     players                  = new Players();
     currentPlayer            = new CurrentPlayer(players);
     names                    = new PlayerNames(currentPlayer);
     places                   = new Places(currentPlayer, names);
     purses                   = new Purses(currentPlayer, names);
     penaltyBox               = new PenaltyBox(currentPlayer, names);
     categories               = new Categories(places);
     questions                = new QuestionsByCategory(categories);
     isGettingOutOfPenaltyBox = new bool[1];
 }
コード例 #2
0
 public Add(Players players, CurrentPlayer currentPlayer, PlayerNames names, Places places, Purses purses, PenaltyBox penaltyBox, Categories categories, QuestionsByCategory questions, bool[] isGettingOutOfPenaltyBox, String playerName)
     : base(currentPlayer, names, places, purses, penaltyBox, categories, questions, isGettingOutOfPenaltyBox)
 {
     this.players    = players;
     this.playerName = playerName;
 }
コード例 #3
0
 public Correct(CurrentPlayer currentPlayer, PlayerNames names, Places places, Purses purses, PenaltyBox penaltyBox, Categories categories, QuestionsByCategory questions, bool[] isGettingOutOfPenaltyBox)
     : base(currentPlayer, names, places, purses, penaltyBox, categories, questions, isGettingOutOfPenaltyBox)
 {
 }
コード例 #4
0
 public GettingOutRoll(CurrentPlayer currentPlayer, PlayerNames names, Places places, Purses purses, PenaltyBox penaltyBox, Categories categories, QuestionsByCategory questions, bool[] isGettingOutOfPenaltyBox, int roll)
     : base(currentPlayer, names, places, purses, penaltyBox, categories, questions, isGettingOutOfPenaltyBox)
 {
     this.roll = roll;
 }