Пример #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);
 }