public static void printList() { ProxySpriteManager spriteBoxMInstance = ProxySpriteManager.getSingletonInstance(); Debug.Assert(proxyMInstance != null); Debug.WriteLine(""); Debug.WriteLine("------ Active List: ---------------------------\n"); MLink pNode = proxyMInstance.activeList; int i = 0; while (pNode != null) { Debug.WriteLine("{0}: -------------", i); pNode.print(); i++; pNode = pNode.pNext; } Debug.WriteLine(""); Debug.WriteLine("------ Reserve List: ---------------------------\n"); pNode = proxyMInstance.reserveList; i = 0; while (pNode != null) { Debug.WriteLine("{0}: -------------", i); pNode.print(); i++; pNode = pNode.pNext; } }
public static void remove(ProxySprite targetNode) { ProxySpriteManager spriteBoxMInstance = ProxySpriteManager.getSingletonInstance(); Debug.Assert(proxyMInstance != null); Debug.Assert(targetNode != null); proxyMInstance.genericRemove(targetNode); }
public static ProxySprite add(Sprite.SpriteName mSpriteName) { ProxySpriteManager spriteBoxMInstance = ProxySpriteManager.getSingletonInstance(); Debug.Assert(proxyMInstance != null); ProxySprite nodeAdded = (ProxySprite)proxyMInstance.genericAdd(); Debug.Assert(nodeAdded != null); //set the attributes of the proxy sprite node nodeAdded.setAll(mSpriteName); return(nodeAdded); }
public static ProxySprite find(ProxySprite.ProxySpriteName mProxySpriteName) { ProxySpriteManager spriteBoxMInstance = ProxySpriteManager.getSingletonInstance(); Debug.Assert(proxyMInstance != null); ProxySprite pseudoProxy = cProxyRef; Debug.Assert(pseudoProxy != null); pseudoProxy.setCProxySpriteName(mProxySpriteName); ProxySprite targetProxy = (ProxySprite)proxyMInstance.genericFind(pseudoProxy); return(targetProxy); }