public static Hierarchy create(Hierarchy.Bombs bomb, Azul.Color color)
 {
     Hierarchy node = new BombNode(color);
     GameObjectManager.addRoot(node);
     SpriteBatchManager.attachToGroup(node.ColObj.Spr, BatchGroup.BatchType.Collisions);
     return node;
 }
Beispiel #2
0
 public virtual void visitBombNode(BombNode bn, CollisionPair p)
 {
     Debug.Assert(false, "Shouldn't have been called");
 }
Beispiel #3
0
 public override void visitBombNode(BombNode bn, CollisionPair p)
 {
     p.collision(this, (GameObject)bn.Child);
 }
Beispiel #4
0
 public override void visitBombNode(BombNode bn, CollisionPair p)
 {
     p.collision((GameObject)this.Child, bn);
 }