Exemple #1
0
        public static CCGridBase gridWithSize(ccGridSize gridSize)
        {
            CCGridBase cCGridBase = new CCGridBase();

            if (cCGridBase.initWithSize(gridSize))
            {
                return(cCGridBase);
            }
            return(null);
        }
Exemple #2
0
        public static CCGridBase gridWithSize(ccGridSize gridSize, CCTexture2D texture, bool flipped)
        {
            CCGridBase cCGridBase = new CCGridBase();

            if (cCGridBase.initWithSize(gridSize, texture, flipped))
            {
                return(cCGridBase);
            }
            return(null);
        }
Exemple #3
0
        public static CCGridBase gridWithSize(ccGridSize gridSize, Texture texture, bool flipped)
        {
            CCGridBase pGridBase = new CCGridBase();

            if (pGridBase.initWithSize(gridSize, texture, flipped))
            {
                return pGridBase;
            }

            return null;
        }
        public static CCGridBase gridWithSize(ccGridSize gridSize, CCTexture2D texture, bool flipped)
        {
            CCGridBase pGridBase = new CCGridBase();

            if (pGridBase != null)
            {
                if (pGridBase.initWithSize(gridSize, texture, flipped))
                {
                    //pGridBase->autorelease();
                }
                else
                {
                    //CC_SAFE_RELEASE_NULL(pGridBase);
                }
            }

            return pGridBase;
        }
        public static CCGridBase gridWithSize(ccGridSize gridSize)
        {
            CCGridBase pGridBase = new CCGridBase();

            if (pGridBase.initWithSize(gridSize))
            {
                return pGridBase;
            }

            return null;
        }
        public static CCGridBase gridWithSize(ccGridSize gridSize)
        {
            CCGridBase pGridBase = new CCGridBase();

            if (pGridBase != null)
            {
                if (pGridBase.initWithSize(gridSize))
                {
                    //pGridBase->autorelease();
                }
                else
                {
                    //CC_SAFE_RELEASE_NULL(pGridBase);
                }
            }

            return pGridBase;
        }