//---------------------------------------------------------------------------------- // Constructor //---------------------------------------------------------------------------------- public CollPair() : base() { this.treeA = null; this.treeB = null; this.name = CollPair.Name.UnInitialized; this.poSubject = new CollSubject(); Debug.Assert(this.poSubject != null); }
//---------------------------------------------------------------------------------- // Set Methods //---------------------------------------------------------------------------------- public void Set(CollPair.Name theName, GameObject pTreeRootA, GameObject pTreeRootB) { Debug.Assert(pTreeRootA != null); Debug.Assert(pTreeRootA != null); this.name = theName; this.treeA = pTreeRootA; this.treeB = pTreeRootB; }
public static CollPair Add(CollPair.Name collpairName, GameObject treeRootA, GameObject treeRootB) { CollPairManager pManager = CollPairManager.privGetInstance(); Debug.Assert(pManager != null); // Grab off the reserve CollPair pCollPair = (CollPair)pManager.baseAdd(); Debug.Assert(pCollPair != null); pCollPair.Set(collpairName, treeRootA, treeRootB); return(pCollPair); }
public static CollPair Find(CollPair.Name theName) { CollPairManager pManager = CollPairManager.privGetInstance(); Debug.Assert(pManager != null); // set common compare node, static object ref pManager.poNodeCompare.SetName(theName); //find and return ref CollPair pNode = (CollPair)pManager.baseFind(pManager.poNodeCompare); Debug.Assert(pNode != null); return(pNode); }
public void Wash() { this.treeA = null; this.treeB = null; this.name = CollPair.Name.UnInitialized; }
public void SetName(CollPair.Name theName) { this.name = theName; }