예제 #1
0
 public static Hierarchy create(Hierarchy.Missiles missile, Azul.Color color)
 {
     Hierarchy node = new MissileNode(color);
     GameObjectManager.addRoot(node);
     SpriteBatchManager.attachToGroup(node.ColObj.Spr, BatchGroup.BatchType.Collisions);
     return node;
 }
예제 #2
0
 public virtual void visitMissileNode(MissileNode mn, CollisionPair p)
 {
     Debug.Assert(false, "Shouldn't have been called");
 }
예제 #3
0
 public override void visitMissileNode(MissileNode mn, CollisionPair p)
 {
     p.collision((GameObject)mn.Child, this);
 }
예제 #4
0
 public override void visitMissileNode(MissileNode mn, CollisionPair p)
 {
     p.collision(mn, (GameObject)this.child);
 }