Update() public method

public Update ( ) : void
return void
Ejemplo n.º 1
0
        /* ******************************************** */

        public void UpdateGame()
        {
            oGame.Update();
            CFG.getInstance().setTime(CFG.getInstance().getCurrentTime());

            if (CFG.getInstance().getTime() - 1000 >= lFPSTimer)
            {
                lFPSTimer = CFG.getInstance().getCurrentTime();
                iNumOfFPS = nNumOfFPS;
                nNumOfFPS = 0;
            }
            else
            {
                ++nNumOfFPS;
            }
        }
Ejemplo n.º 2
0
        /* ******************************************** */

        public void UpdateGame()
        {
            oGame.Update();

            /*CFG.getInstance().setTime(CFG.getInstance().getCurrentTime());
             *
             * if (CFG.getInstance().getTime() - 1000 >= lFPSTimer)
             * {
             *  lFPSTimer = CFG.getInstance().getCurrentTime();
             *  iNumOfFPS = nNumOfFPS;
             *  nNumOfFPS = 0;
             * }
             * else
             * {
             ++nNumOfFPS;
             * }*/
        }