public override void Wash() { this.treeA = null; this.treeB = null; this.name = ColPair.Name.Not_Initialized; this.poSubject.PurgeAll(); this.bMarkForDeath = false; }
//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(); }
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; }
public ColPair() : base() { this.treeA = null; this.treeB = null; this.name = ColPair.Name.Uninitialized; this.poSubject = new ColSubject(); Debug.Assert(this.poSubject != null); }
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; }
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); }
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 }
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); }
//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); }
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); }
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); }
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); }
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); }
//---------------------------------------------------------------------- // 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)); }
public void Wash() { this.treeA = null; this.treeB = null; this.name = ColPair.Name.Uninitialized; }
public void SetName(ColPair.Name inName) { this.name = inName; }
public void SetName(Name name) { this.name = name; }