示例#1
0
 internal void loadProfile(string user)
 {
     _form.Hide();
     if (lp == null)
     {
         lp = new LobbyPresenter(this, user);
     }
     else
     {
         lp.Show();
     }
 }
示例#2
0
        public GamePresenter(LobbyPresenter _preview, String User, int numBot, String difficulty)
        {
            _user          = User;
            _numBot        = numBot;
            _diff          = difficulty;
            _prevPresenter = _preview;
            List <IPlayer> _players = PlayerFactory.getInstance(numBot, User, difficulty);

            _game = GameFactory.getGameInstance(_players);

            _game.OnGameEnd += new EventHandler(OnGameEnd);
            _game.Scoreboard.CombinationApplied += new EventHandler(OnCombinationApplied);
            _game.Dices.DicesRolled             += new EventHandler <RollEventArgs>(OnDiceRolled);
            _game.Dices.DiceKept += new EventHandler <KeepEventArgs>(OnDiceKept);
            _game.CurrentPlayerTurn.FinishedRolls += OnFinishedRolls;
            _game.PlayerTurnEnd     += OnPlayerTurnEnded;
            _game.PlayerTurnStarted += OnPlayerTurnStarted;
        }
示例#3
0
 public StatisticsPresenter(LobbyPresenter prevPresenter)
 {
     _prevPresenter = prevPresenter;
     sf             = new StatisticsForm(this);
     sf.Show();
 }