Exemplo n.º 1
0
 public static Hierarchy create(Hierarchy.Grid grid, Azul.Color color)
 {
     Hierarchy node = new GridNode(color, GameObject.Name.Grid);
     GameObjectManager.addRoot(node);
     SpriteBatchManager.attachToGroup(node.ColObj.Spr, BatchGroup.BatchType.Collisions);
     return node;
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 3
0
 public override void visitGridNode(GridNode gn, CollisionPair p)
 {
     p.notify(gn, this);
 }
Exemplo n.º 4
0
 public override void visitGridNode(GridNode gn, CollisionPair p)
 {
     p.collision((GameObject)gn.Child, this);
 }
Exemplo n.º 5
0
 public virtual void visitGridNode(GridNode gn, CollisionPair p)
 {
     Debug.Assert(false, "Shouldn't have been called");
 }
Exemplo n.º 6
0
 public override void visitGridNode(GridNode gn, CollisionPair p)
 {
     p.collision((GameObject)this.child, gn);
 }
Exemplo n.º 7
0
 public void set(GridNode gridNode, GameObject.Name name, Index index = Index.Index_Null)
 {
     this.gridRoot = gridNode;
     this.name = name;
     this.index = index;
 }
Exemplo n.º 8
0
 public Movement()
 {
     this.gridRoot = (GridNode)GameObjectManager.find(GameObject.Name.Grid);
     this.name = (GameObject.Name)gridRoot.getName();
     this.index = gridRoot.getIndex();
 }