Exemplo n.º 1
0
 public override void Wash()
 {
     this.treeA = null;
     this.treeB = null;
     this.name  = ColPair.Name.Not_Initialized;
     this.poSubject.PurgeAll();
     this.bMarkForDeath = false;
 }
Exemplo n.º 2
0
 //EDIT THE FOLLOWING METHODS---------------------
 public ColPair()
     : base()
 {
     this.treeA     = null;
     this.treeB     = null;
     this.name      = ColPair.Name.Blank;
     this.index     = 0;
     this.poSubject = new ColSubject();
 }
Exemplo n.º 3
0
        public void Set(ColPair.Name colpairName, GameObject pTreeRootA, GameObject pTreeRootB)
        {
            Debug.Assert(pTreeRootA != null);
            Debug.Assert(pTreeRootB != null);

            this.treeA = pTreeRootA;
            this.treeB = pTreeRootB;
            this.name  = colpairName;
        }
Exemplo n.º 4
0
        public ColPair()
            : base()
        {
            this.treeA = null;
            this.treeB = null;
            this.name  = ColPair.Name.Uninitialized;

            this.poSubject = new ColSubject();
            Debug.Assert(this.poSubject != null);
        }
Exemplo n.º 5
0
        public ColPair()
            : base()
        {
            this.treeA = null;
            this.treeB = null;
            this.name  = ColPair.Name.Not_Initialized;

            this.poSubject = new ColSubject(this);
            Debug.Assert(this.poSubject != null);
            this.bMarkForDeath = false;
        }
Exemplo n.º 6
0
        public static ColPair Find(ColPair.Name name, int index = 0)
        {
            //get the singleton
            ColPairManager pMan = ColPairManager.privGetInstance();

            // Compare functions only compares two Nodes
            pMan.pRefNode.SetName(name);

            ColPair pData = (ColPair)pMan.baseFindNode(pMan.pRefNode);

            return(pData);
        }
Exemplo n.º 7
0
        public void WashNodeData()
        {
            //wash name and data;
            this.treeA = null;
            this.treeB = null;
            this.name  = ColPair.Name.Blank;
            this.index = 0;


            Debug.Assert(this.poSubject != null);

            // Need more dev on Subjects... current number should be 0
        }
Exemplo n.º 8
0
        public static ColPair Find(ColPair.Name pairName)
        {
            ColPairMan pMan = ColPairMan.PrivGetInstance();

            Debug.Assert(pMan != null);


            pMan.poNodeCompare.SetName(pairName);

            ColPair pCPNode = (ColPair)pMan.BaseFind(pMan.poNodeCompare);

            return(pCPNode);
        }
Exemplo n.º 9
0
        //SetData here;
        public void Set(ColPair.Name colpairName, int index, GameObject pTreeRootA, GameObject pTreeRootB)
        {
            Debug.Assert(pTreeRootA != null);
            Debug.Assert(pTreeRootB != null);

            this.treeA = pTreeRootA;
            this.treeB = pTreeRootB;
            this.name  = colpairName;
            this.index = index;


            Debug.Assert(this.poSubject != null);
        }
Exemplo n.º 10
0
        public static ColPair Find(ColPair.Name name)
        {
            ColPairManager pMan = ColPairManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            pMan.poCompareNode.name = name;

            ColPair pData = (ColPair)pMan.BaseFind(pMan.poCompareNode);

            Debug.Assert(pData != null);

            return(pData);
        }
Exemplo n.º 11
0
        public static ColPair Add(ColPair.Name colpairName, GameObject treeRootA, GameObject treeRootB)
        {
            ColPairManager pMan = ColPairManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            ColPair pColPair = (ColPair)pMan.BaseAdd();

            Debug.Assert(pColPair != null);

            pColPair.Set(colpairName, treeRootA, treeRootB);

            return(pColPair);
        }
Exemplo n.º 12
0
        public static ColPair Add(ColPair.Name colpairName, int index, GameObject treeRootA, GameObject treeRootB)
        {
            // Get the instance
            ColPairManager pMan = ColPairManager.privGetInstance();

            // Go to Man, get a node from reserve, add to active, return it
            ColPair pColPair = (ColPair)pMan.baseAddToFront();

            Debug.Assert(pColPair != null);

            // Initialize Image
            pColPair.Set(colpairName, index, treeRootA, treeRootB);

            return(pColPair);
        }
Exemplo n.º 13
0
        public static ColPair Find(ColPair.Name name)
        {
            ColPairMan pMan = ColPairMan.privGetInstance();

            Debug.Assert(pMan != null);

            // Compare functions only compares two Nodes

            // So:  Use the Compare Node - as a reference
            //      use in the Compare() function
            pMan.poNodeCompare.SetName(name);

            ColPair pData = (ColPair)pMan.baseFind(pMan.poNodeCompare);

            return(pData);
        }
Exemplo n.º 14
0
        //----------------------------------------------------------------------
        // 4 Wrapper methods: baseAdd, baseFind, baseRemove, baseDump
        //----------------------------------------------------------------------

        public static ColPair Add(ColPair.Name colpairName, GameObject treeRootA, GameObject treeRootB)
        {
            return(ColPairManager.Add(colpairName, 0, treeRootA, treeRootB));
        }
Exemplo n.º 15
0
 public void Wash()
 {
     this.treeA = null;
     this.treeB = null;
     this.name  = ColPair.Name.Uninitialized;
 }
Exemplo n.º 16
0
 public void SetName(ColPair.Name inName)
 {
     this.name = inName;
 }
Exemplo n.º 17
0
 public void SetName(Name name)
 {
     this.name = name;
 }