public static void attachToGroup(BaseSprite spr, BatchGroup.BatchType bName, Index sprIndex = Index.Index_Null, Index batchIndex = Index.Index_Null)
        {
            BatchGroup group = find(bName, batchIndex);
            Debug.Assert(group != null);

            group.attach(spr);
        }
Example #2
0
 public static void initialize(BatchGroup.BatchType type = BatchGroup.BatchType.Collisions)
 {
     if (wfInstance == null)
     {
         wfInstance = new WallFactory(type);
     }
 }
Example #3
0
 protected BaseSprite()
 {
     this.index = Index.Index_Null;
     this.name = SpriteEnum.Not_Initialized;
     this.batch = null;
     this.xPos = 0f;
     this.yPos = 0f;
     this.sprColor = null;
 }
Example #4
0
 public static void initialize(BatchGroup.BatchType type)
 {
     Instance.batch = SpriteBatchManager.find(BatchGroup.BatchType.UFO);
 }
Example #5
0
 public static void initialize(BatchGroup.BatchType batchGroupName)
 {
     Instance.batch = SpriteBatchManager.find(batchGroupName);
 }
Example #6
0
 private WallFactory(BatchGroup.BatchType type)
 {
     group = SpriteBatchManager.find(type);
     Debug.Assert(group != null);
 }
Example #7
0
 public void setBatch(BatchGroup batch)
 {
     this.batch = batch;
 }
 public static void remove(BatchGroup.BatchType name, Index index = Index.Index_Null)
 {
     Instance.baseRemove(name, index);
 }
 // Finds the BatchGroup of BatchType "name" with the index of "index"
 public static BatchGroup find(BatchGroup.BatchType name, Index index = Index.Index_Null)
 {
     return (BatchGroup)Instance.baseFind(name, index);
 }
 public static BatchGroup add(BatchGroup.BatchType name, bool toDraw = true)
 {
     BatchGroup node = (BatchGroup)Instance.baseAdd();
     node.set(name, Index.Index_Null, toDraw);
     return node;
 }
 public override ManNode getManObject()
 {
     ManNode node = new BatchGroup(stats.beginToCreate, stats.willCreate);
     return node;
 }