예제 #1
0
        public static void PushToMemento(ManagerMemento pMemento)
        {
            GameObjectManager pMan = GameObjectManager.PrivGetInstance();

            Debug.Assert(pMan != null);
            pMan.BasePushToMemento(pMemento);
        }
예제 #2
0
        public static void PullFromMemento(ManagerMemento pMemento)
        {
            ColPairManager pMan = ColPairManager.PrivGetInstance();

            Debug.Assert(pMan != null);
            pMan.BasePullFromMemento(pMemento);
        }
예제 #3
0
        protected void BasePullFromMemento(ManagerMemento pMemento)
        {
            this.pActive     = pMemento.pActive;
            pMemento.pActive = null;

            this.mNumActive     = pMemento.mNumActive;
            pMemento.mNumActive = 0;
        }
예제 #4
0
        protected void BasePushToMemento(ManagerMemento pMemento)
        {
            pMemento.pActive = this.pActive;
            this.pActive     = null;

            pMemento.mNumActive = this.mNumActive;
            this.mNumActive     = 0;
        }
예제 #5
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();
        }
예제 #6
0
 public void PullFromMemento(ManagerMemento pMemento)
 {
     BasePullFromMemento(pMemento);
 }
예제 #7
0
 public void PushToMemento(ManagerMemento pMemento)
 {
     BasePushToMemento(pMemento);
 }