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