public static Hierarchy create(Hierarchy.Players player, Azul.Color color) { Hierarchy node = new PlayerNode(color); GameObjectManager.addRoot(node); SpriteBatchManager.attachToGroup(node.ColObj.Spr, BatchGroup.BatchType.Collisions); return node; }
public static Hierarchy create(Hierarchy.Walls wall, Azul.Color color) { Hierarchy node = new WallNode(color, GameObject.Name.Wall); GameObjectManager.addRoot(node); SpriteBatchManager.attachToGroup(node.ColObj.Spr, BatchGroup.BatchType.Collisions); return node; }
public static Hierarchy create(Hierarchy.Column col, Azul.Color color) { Hierarchy node = new GridNode(color, GameObject.Name.Grid); SpriteBatchManager.attachToGroup(node.ColObj.Spr, BatchGroup.BatchType.Collisions); TreeNode grid = GameObjectManager.find(GameObject.Name.Grid); GameObjectManager.insert(node, grid); return node; }
public static Hierarchy create(Hierarchy.ShieldCol col, Azul.Color color) { Hierarchy node = new ShieldNode(color); SpriteBatchManager.attachToGroup(node.ColObj.Spr, BatchGroup.BatchType.Collisions); TreeNode subRoot = GameObjectManager.find(GameObject.Name.Shields); GameObjectManager.insert(node, subRoot); return node; }
private static void attachTree(Hierarchy treeNode) { Instance.cols = treeNode; }
public static void attachTree(Hierarchy treeRoot) { Instance.treeRoot = treeRoot; }