Exemple #1
0
        public GameSession(ITranslations translations)
        {
            Translations = translations;
            id           = 0;
            game_manager = new GameManager();
            play_list    = new GameSessionPlayList(game_manager);
            game_time    = TimeSpan.Zero;

            timer          = new System.Timers.Timer();
            timer.Elapsed += TimerUpdater;
            timer.Interval = (1 * 1000);             // 1 second

            controler      = new ViewsControler(translations, this);
            Status         = SessionStatus.NotPlaying;
            player_history = new PlayerHistory();
            history        = new GameSessionHistoryExtended();
        }
Exemple #2
0
        public GameSession(ITranslations translations)
        {
            Translations = translations;
            id = 0;
            game_manager = new GameManager ();
            play_list = new GameSessionPlayList (game_manager);
            game_time = TimeSpan.Zero;

            timer = new System.Timers.Timer ();
            timer.Elapsed += TimerUpdater;
            timer.Interval = (1 * 1000); // 1 second

            controler = new ViewsControler (translations, this);
            Status = SessionStatus.NotPlaying;
            player_history = new PlayerHistory ();
            history = new GameSessionHistoryExtended ();
        }