Exemplo n.º 1
0
        public static BoxSprite Add(BoxSprite.Name theName, float x, float y, float width, float height, Azul.Color pColor = null)
        {
            BoxSpriteManager pBoxMan = BoxSpriteManager.privGetInstance();

            Debug.Assert(pBoxMan != null);

            BoxSprite pNode = (BoxSprite)pBoxMan.baseAdd();

            Debug.Assert(pNode != null);

            pNode.Set(theName, x, y, width, height, pColor);
            return(pNode);
        }
Exemplo n.º 2
0
        public static BoxSprite Add(BoxSprite.Name name, float x, float y, float width, float height, Azul.Color pColor = null)
        {
            BoxSpriteMan pBSMan = BoxSpriteMan.PrivGetInstance();

            Debug.Assert(pBSMan != null);

            BoxSprite pBSnode = (BoxSprite)pBSMan.BaseAdd();

            Debug.Assert(pBSnode != null);

            pBSnode.Set(name, x, y, width, height, pColor);
            return(pBSnode);
        }
Exemplo n.º 3
0
        public static BoxSprite Add(BoxSprite.Name name, Azul.Color pColor = null)
        {
            BoxSpriteManager pMan = BoxSpriteManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            BoxSprite pNode = (BoxSprite)pMan.BaseAdd();

            Debug.Assert(pNode != null);

            pNode.Set(name, pColor);

            return(pNode);
        }
Exemplo n.º 4
0
        public static BoxSprite Add(BoxSprite.Name name, Azul.Rect pRect)
        {
            BoxSpriteManager pMan = BoxSpriteManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            BoxSprite pNode = (BoxSprite)pMan.BaseAdd();

            Debug.Assert(pNode != null);

            // Initialize the Data
            pNode.Set(name, pRect);
            return(pNode);
        }
Exemplo n.º 5
0
        public static BoxSprite Add(BoxSprite.Name name, float x, float y, float width, float height, Azul.Color pColor = null)
        {
            BoxSpriteManager pMan = BoxSpriteManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            BoxSprite pNode = (BoxSprite)pMan.BaseAdd();

            Debug.Assert(pNode != null);

            // Initialize the Data
            pNode.Set(name, x, y, width, height, pColor);
            return(pNode);
        }
Exemplo n.º 6
0
        //----------------------------------------------------------------------
        // 4 Wrapper methods: baseAdd, baseFind, baseRemove, baseDump
        //----------------------------------------------------------------------

        //EDIT THE FOLLOWING METHODS---------------------
        //public static BoxSprite Add(BoxSprite.Name name, Azul.Rect pScreenRect)
        //{
        //    BoxSpriteManager pMan = privGetInstance();
        //    Debug.Assert(pMan != null);

        //    BoxSprite pNode = (BoxSprite)pMan.baseAddToFront();
        //    Debug.Assert(pNode != null);

        //    pNode.Set(name, pScreenRect);

        //    return pNode;
        //}


        public static BoxSprite Add(GameSprite.Name spriteName, float x, float y, float width, float height, Azul.Color lineColor = null)
        {
            BoxSpriteManager pMan = BoxSpriteManager.privGetInstance();

            Debug.Assert(pMan != null);

            BoxSprite pNode = (BoxSprite)pMan.baseAddToFront();

            Debug.Assert(pNode != null);

            // wash it
            pNode.Set(spriteName, x, y, width, height, lineColor);
            return(pNode);
        }
Exemplo n.º 7
0
        public static BoxSprite Add(float x, float y, float w, float h, Azul.Color pColor = null)
        {
            Debug.Assert(pMan != null);

            BoxSprite pSprite = (BoxSprite)pMan.baseAdd();

            Debug.Assert(pSprite != null);


            if (pColor == null)
            {
                pColor = new Azul.Color(1, 1, 1);
            }

            pSprite.Set(x, y, w, h, pColor);
            return(pSprite);
        }