public static void Remove(BoxSprite pBoxSprite) { //ensure call Create() first BoxSpriteMan pMan = BoxSpriteMan.GetInstance(); Debug.Assert(pMan != null); Debug.Assert(pBoxSprite != null); pMan.baseRemove(pBoxSprite); }
public static void Destory() { //ensure call Create() first BoxSpriteMan pMan = BoxSpriteMan.GetInstance(); Debug.Assert(pMan != null); pMan.baseDestory(); pMan.poNodeForCompare = null; BoxSpriteMan.pInstance = null; }
public static BoxSprite Find(BoxSprite.Name name) { //ensure call Create() first BoxSpriteMan pMan = BoxSpriteMan.GetInstance(); Debug.Assert(pMan != null); pMan.poNodeForCompare.setName(name); BoxSprite pData = (BoxSprite)pMan.baseFind(pMan.poNodeForCompare); return(pData); }
public static BoxSprite Add(BoxSprite.Name name, float x, float y, float width, float height, Azul.Color pColor = null) { //ensure call Create() first BoxSpriteMan pMan = BoxSpriteMan.GetInstance(); Debug.Assert(pMan != null); BoxSprite pBoxSprite = (BoxSprite)pMan.baseAdd(); Debug.Assert(pBoxSprite != null); pBoxSprite.set(name, x, y, width, height, pColor); return(pBoxSprite); }
public static void Reset() { //ensure call Create() first BoxSpriteMan pMan = BoxSpriteMan.GetInstance(); Debug.Assert(pMan != null); BoxSprite pBoxSprite = (BoxSprite)pMan.pActive; while (pBoxSprite != null) { pBoxSprite.deepClear(); pBoxSprite = (BoxSprite)pBoxSprite.pNext; } pMan.baseSetActiveHead(null); }