Пример #1
0
 public override void Accept(CollisionVisitor other)
 {
     other.VisitMissile(this);
 }
Пример #2
0
        //public override void Remove()
        //{
        //    // Keenan(delete.E)
        //    // Since the Root object is being drawn
        //    // 1st set its size to zero
        //    this.poColObj.poColRect.Set(0, 0, 0, 0);
        //    base.Update();


        //    this.pProxySprite.Set(GameSprite.Name.NullObject);

        //    this.x = 0.0f;
        //    this.y = 0.0f;

        //    //// Update the parent (missile root)
        //    //GameObject pParent = (GameObject)this.pParent;

        //    //remove missile from composite...
        //    //pParent.Remove(this);
        //    //pParent.Update();



        //    // Now remove it
        //    //base.Remove();
        //}

        public override void Accept(CollisionVisitor other)
        {
            // Important: at this point we have an Missile
            // Call the appropriate collision reaction
            other.VisitMissile(this);
        }