Пример #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 virtual void visitPlayerNode(PlayerNode p, CollisionPair pair)
 {
     Debug.Assert(false, "Shouldn't have been called");
 }
Пример #3
0
 public override void visitPlayerNode(PlayerNode p, CollisionPair pair)
 {
     pair.collision((GameObject)p.Child, this);
 }
Пример #4
0
 public override void visitPlayerNode(PlayerNode p, CollisionPair pair)
 {
     pair.collision(p, (GameObject)this.Child);
 }