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; }
public void setEmptyLevel() { cur = new EmptyLevel(); curLevNum = -1; // hmm i guess empty level is now level -1 }
public void pushLevel(int levNum) { levelStack[sp] = curLevNum; cur = levels[levNum]; curLevNum = levNum; sp++; }
public void AddLevel(int levNum, UC_LevelParent lev) { levels[levNum] = lev; }
public void setLevel(int levNum) { cur = levels[levNum]; curLevNum = levNum; cur.prevKeyState = Keyboard.GetState(); cur.keyState = Keyboard.GetState(); // fix legacy keystate issues }