예제 #1
0
        public int popLevel()
        {
            sp--;
            cur = levels[levelStack[sp]];
            curLevNum = levelStack[sp];
            cur.prevKeyState = Keyboard.GetState();
            cur.keyState = Keyboard.GetState(); // fix legacy keystate issues

            return curLevNum;
        }
예제 #2
0
 public void setEmptyLevel()
 {
     cur = new EmptyLevel();
     curLevNum = -1; // hmm i guess empty level is now level -1
 }
예제 #3
0
 public void pushLevel(int levNum)
 {
     levelStack[sp] = curLevNum;
     cur = levels[levNum];
     curLevNum = levNum;
     sp++;
 }
예제 #4
0
 public void AddLevel(int levNum, UC_LevelParent lev)
 {
     levels[levNum] = lev;
 }
예제 #5
0
 public void setLevel(int levNum)
 {
     cur = levels[levNum];
     curLevNum = levNum;
     cur.prevKeyState = Keyboard.GetState();
     cur.keyState = Keyboard.GetState(); // fix legacy keystate issues
 }