Example #1
0
        public DisplayManager2(ShortChat msg, MyGame psyGame)
        {
            this.msg     = msg;
            this.psyGame = psyGame;

            this.m_GFXTimer          = new Timer();
            this.m_GFXTimer.Elapsed += new ElapsedEventHandler(GFXTimer);
            this.m_GFXTimer.Interval = 50;
            this.m_GFXTimer.Start();
        }
Example #2
0
        public DisplayManager(ShortChat msg, MyGame psyGame, SSPlayerManager playerManager)
        {
            this.msg       = msg;
            this.psyGame   = psyGame;
            this.m_Players = playerManager;

            this.m_UpdateLimit = 250;

            this.m_PubDisplay_Old = new Dictionary <ushort, bool>();
            this.m_PubDisplay     = new Dictionary <ushort, bool>();
            this.m_ScoreBoards    = new Dictionary <string, ushort[]>();
            this.m_SingleImages   = new Dictionary <string, ushort>();

            // Timer to update displays
            this.m_DisplayTimer          = new Timer();
            this.m_DisplayTimer.Elapsed += new ElapsedEventHandler(displayTimer);
            this.m_DisplayTimer.Interval = 50;
            this.m_DisplayTimer.Start();
        }