Beispiel #1
0
 public SlackGameManager(string redPlayerId, string redPlayerDm, string bluePlayerId, string bluePlayerDm, bool debug = false, string debugChannel = null)
 {
     game                      = new Game.Game(redPlayerId, bluePlayerId);
     RedPlayerDm               = redPlayerDm;
     BluePlayerDm              = bluePlayerDm;
     this.debug                = debug;
     this.debugChannel         = debugChannel;
     WaitingForDieResponse     = true;
     PlayersHaveDie            = false;
     currentDieRoll            = 0;
     WaitingForDieRollResponse = false;
     WaitingForRoundResponse   = false;
     partOfRound               = HalfOfRound.FirstHalf;
     sectionOfRound            = SectionOfRound.Settlements;
     GameIsOver                = false;
     game.TeamTurn             = Constants.Teams.Red;
 }
Beispiel #2
0
 public TwilioGameManager(PhoneNumberResource redPlayerNumber, PhoneNumberResource bluePlayerNumber, bool debug = false)
 {
     game                      = new Game.Game(redPlayerNumber.PhoneNumber.ToString(), bluePlayerNumber.PhoneNumber.ToString());
     RedPlayerNumber           = redPlayerNumber.PhoneNumber.ToString();
     RedPlayerDisplayNumber    = redPlayerNumber.NationalFormat.ToString();
     BluePlayerNumber          = bluePlayerNumber.PhoneNumber.ToString();
     BluePlayerDisplayNumber   = bluePlayerNumber.NationalFormat.ToString();
     this.debug                = debug;
     WaitingForDieResponse     = true;
     PlayersHaveDie            = false;
     currentDieRoll            = 0;
     WaitingForDieRollResponse = false;
     WaitingForRoundResponse   = false;
     partOfRound               = HalfOfRound.FirstHalf;
     sectionOfRound            = SectionOfRound.Settlements;
     GameIsOver                = false;
     game.TeamTurn             = Game.Constants.Teams.Red;
 }