Exemple #1
0
 public SpriteBatch Wash()
 {
     this.name               = Name.Uninitialized;
     this.priority           = 0;
     this.poBatchNodeManager = new SpriteBatchNodeManager();
     return(this);
 }
        public static void remove(SpriteBatchNode targetNode)
        {
            Debug.Assert(sbmInstance != null);
            Debug.Assert(targetNode != null);
            SpriteBatchNodeManager sbnMan = targetNode.getSpriteBatchNodeMan();

            Debug.Assert(sbnMan != null);
            sbnMan.remove(targetNode);
        }
Exemple #3
0
        public void setSprite(Sprite.SpriteName mSpriteName, SpriteBatchNodeManager mSbManager)
        {
            Sprite sprite = (Sprite)SpriteManager.find(mSpriteName);

            Debug.Assert(sprite != null);
            Debug.Assert(mSbManager != null);

            this.cSpriteBase = sprite;
            this.cSBNodeMan  = mSbManager;
        }
Exemple #4
0
        public void setSpriteBox(SpriteBox.SpriteBoxName spriteBox, SpriteBatchNodeManager mSbManager)
        {
            SpriteBox sprBox = (SpriteBox)SpriteBoxManager.find(spriteBox);

            Debug.Assert(sprBox != null);
            Debug.Assert(mSbManager != null);

            this.cSpriteBase = sprBox;
            this.cSBNodeMan  = mSbManager;
        }
Exemple #5
0
        public void setSpriteBase(SpriteBase mSpriteBase, SpriteBatchNodeManager mSbManager)
        {
            Debug.Assert(mSpriteBase != null);
            Debug.Assert(mSbManager != null);

            this.cSpriteBase = mSpriteBase;
            this.cSBNodeMan  = mSbManager;

            cSpriteBase.setSpriteBatchNode(this);
        }
Exemple #6
0
 public SpriteBatchNode() : base()
 {
     this.cSpriteBase = null;
     cSBNodeMan       = null;
 }
Exemple #7
0
 public SpriteBatch() : base()
 {
     this.spriteBatchName = SpriteBatchName.Uninitialized;
     this.cSBNodeManager  = new SpriteBatchNodeManager();
 }
Exemple #8
0
 // Constructor. Only be called when manager adding new reserved nodes.
 public SpriteBatch()
 {
     this.name          = SpriteBatch.Name.Uninitialized;
     poBatchNodeManager = new SpriteBatchNodeManager();
 }