public static void PushToMemento(ManagerMemento pMemento) { GameObjectManager pMan = GameObjectManager.PrivGetInstance(); Debug.Assert(pMan != null); pMan.BasePushToMemento(pMemento); }
public static void PullFromMemento(ManagerMemento pMemento) { ColPairManager pMan = ColPairManager.PrivGetInstance(); Debug.Assert(pMan != null); pMan.BasePullFromMemento(pMemento); }
protected void BasePullFromMemento(ManagerMemento pMemento) { this.pActive = pMemento.pActive; pMemento.pActive = null; this.mNumActive = pMemento.mNumActive; pMemento.mNumActive = 0; }
protected void BasePushToMemento(ManagerMemento pMemento) { pMemento.pActive = this.pActive; this.pActive = null; pMemento.mNumActive = this.mNumActive; this.mNumActive = 0; }
public PlayerArtifact(Name name) { this.name = name; this.lives = 3; this.score = 0; this.level = 1; this.pGrid = null; this.pShieldZone = null; this.pTimerMemento = new TimerMemento(); this.pGameObjectMemento = new ManagerMemento(); this.pColPairMemento = new ManagerMemento(); this.pSpritesSBNodeMemento = new ManagerMemento(); this.pSpriteBoxesSBNodeMemento = new ManagerMemento(); }
public void PullFromMemento(ManagerMemento pMemento) { BasePullFromMemento(pMemento); }
public void PushToMemento(ManagerMemento pMemento) { BasePushToMemento(pMemento); }