Пример #1
0
 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;
 }
Пример #2
0
 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;
 }
Пример #3
0
 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;
 }
Пример #4
0
 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;
 }
Пример #5
0
 private static void attachTree(Hierarchy treeNode)
 {
     Instance.cols = treeNode;
 }
Пример #6
0
 public static void attachTree(Hierarchy treeRoot)
 {
     Instance.treeRoot = treeRoot;
 }