Exemple #1
0
        private IEnumerator BeginGameEffect()
        {
            if (RelicCollection == null)
            {
                RelicCollection = new RelicCollection();
            }
            else
            {
                RelicCollection.Reset();
            }

            if (StatisticManager == null)
            {
                StatisticManager = new StatisticManager();
            }
            else
            {
                StatisticManager.Reset();
            }

            // Fire a game begun event.
            OnGameBegun(EventArgs.Empty);

            yield return(Coroutines.Pause(TimingHelper.GetFrameCount(2.5f)));

            // Kick off the game with a coalsced phase. This should always be the Calm phase and we do want the player to be notified of this.
            PhaseManager.CoalescePlane();

            // Add a coroutine to handle updating remaining game time.
            CoroutineManager.Add(UpdateRemainingGameTimeKey, UpdateGameTimer());
        }
Exemple #2
0
        /// <summary>
        /// Initializes the game.
        /// </summary>
        public override void Initialize()
        {
            if (StatisticManager == null)
            {
                StatisticManager = new StatisticManager();
            }
            else
            {
                StatisticManager.Reset();
            }

            ShaderManager.ClearActiveShaders();

            // Reset current dimension.
            CurrentDimension = Dimension.Normal;

            // Reset scoring.
            CurrentDifficulty = 1;
            //previousPhaseDepth = 0;
            //previousPhaseRift = 0;
            CurrentDepth = 0;

            DrawingManager.AmbientLightValue = 0.05f;
            DrawingManager.AmbientLightColor = UniverseConstants.AmbientColor;

            // Pulse ambient light.
            //CoroutineManager.Remove("GameManager_LightPulse");
            //CoroutineManager.Add("GameManager_LightPulse", AmbientLightPulse());
        }
Exemple #3
0
 public BusinessDisplay( IDisplay display,
     IStatisticManager blStat,
     IWordsManager blWord,
     ISetupsManager blSetup,
     IUsersManager blUser)
 {
     this.Display = display;
     this.BlStat = blStat;
     this.BlWord = blWord;
     this.BlSetup = blSetup;
     this.BlUser = blUser;
 }
Exemple #4
0
 public DataAccess(
     IAgentManager inDALAgent,
     IClientManager inDALClient,
     IItemManager inDALItem,
     IOrderManager inDALOrder,
     ISecurityManager inDALSecurity,
     IStatisticManager inDALStatistic,
     IReferentialManager inDALReferential,
     INotificationManager inDALNotification,
     IChatRoomManager inDALChatRoom
     )
 {
     this.DALAgent        = inDALAgent;
     this.DALClient       = inDALClient;
     this.DALOrder        = inDALOrder;
     this.DALItem         = inDALItem;
     this.DALStatistic    = inDALStatistic;
     this.DALReferential  = inDALReferential;
     this.DALSecurity     = inDALSecurity;
     this.DALNotification = inDALNotification;
     this.DALChatRoom     = inDALChatRoom;
 }
Exemple #5
0
        public BusinessLogic(
            IAgentManager inBlAgent,
            IClientManager inBlClient,
            IItemManager inBlItem,
            IOrderManager inBlCommande,
            ISecurityManager inBlSecurity,
            IStatisticManager inBlStatisitc,
            IReferentialManager inBlReferential,
            INotificationManager inBlNotification,
            IChatRoomManager inBlChatRoom)

        {
            this.BlAgent        = inBlAgent;
            this.BlClient       = inBlClient;
            this.BlOrder        = inBlCommande;
            this.BlItem         = inBlItem;
            this.BlReferential  = inBlReferential;
            this.BlSecurity     = inBlSecurity;
            this.BlStatisitc    = inBlStatisitc;
            this.BlNotification = inBlNotification;
            this.BlChatRoom     = inBlChatRoom;
        }
 private void Awake()
 {
     this.manager = XboxLive.Instance.StatsManager;
 }
Exemple #7
0
        public void GetInstance()
        {
            IStatisticManager sm = XboxLive.Instance.StatsManager;

            Assert.IsNotNull(sm);
        }