public SpriteBaseRef Attach(SpriteBox.Name name)
        {
            SpriteBaseRef pNode = (SpriteBaseRef)this.BaseAdd();

            Debug.Assert(pNode != null);

            // Initialize SpriteBase Node
            pNode.Set(name);

            return(pNode);
        }
Exemplo n.º 2
0
        public static SpriteBox Find(SpriteBox.Name name)
        {
            SpriteBoxManager pMan = SpriteBoxManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            // Use compare node to compare to search nodes
            pMan.pSpriteBoxCompare.SetName(name);

            SpriteBox pData = (SpriteBox)pMan.BaseFind(pMan.pSpriteBoxCompare);

            return(pData);
        }
Exemplo n.º 3
0
        public static SpriteBox Add(SpriteBox.Name name, float x, float y, float width, float height, Azul.Color color)
        {
            SpriteBoxManager pMan = SpriteBoxManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            SpriteBox pSpriteBox = (SpriteBox)pMan.BaseAdd();

            Debug.Assert(pSpriteBox != null);

            // Initialize the date
            pSpriteBox.Set(name, x, y, width, height, color);
            return(pSpriteBox);
        }
Exemplo n.º 4
0
 public void Set(SpriteBox.Name name)
 {
     this.pSpriteBase = SpriteBoxManager.Find(name);
     Debug.Assert(this.pSpriteBase != null);
 }
Exemplo n.º 5
0
        public SpriteBaseRef Attach(SpriteBox.Name name)
        {
            SpriteBaseRef pNode = this.pSBRefManager.Attach(name);

            return(pNode);
        }