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); }
public static void initialize(BatchGroup.BatchType type = BatchGroup.BatchType.Collisions) { if (wfInstance == null) { wfInstance = new WallFactory(type); } }
protected BaseSprite() { this.index = Index.Index_Null; this.name = SpriteEnum.Not_Initialized; this.batch = null; this.xPos = 0f; this.yPos = 0f; this.sprColor = null; }
public static void initialize(BatchGroup.BatchType type) { Instance.batch = SpriteBatchManager.find(BatchGroup.BatchType.UFO); }
public static void initialize(BatchGroup.BatchType batchGroupName) { Instance.batch = SpriteBatchManager.find(batchGroupName); }
private WallFactory(BatchGroup.BatchType type) { group = SpriteBatchManager.find(type); Debug.Assert(group != null); }
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; }