Ejemplo n.º 1
0
        } // end of Update

        //public void Fire(Canvas theCanvas)
        public void Fire(IGameEntityMgr theMgr)
        {
            // same as player, only opposite direction
            enemyMissile myMissile = new enemyMissile(Canvas.GetLeft(this),
                                                      Canvas.GetTop(this) + (this.ActualHeight / 2));


            //theCanvas.Children.Add(myMissile);
            theMgr.AddGameEntity(myMissile);
        } // end of Fire
        //public void Fire(Canvas theCanvas)
        public void Fire(IGameEntityMgr theMgr)
        {
            // same as player, only opposite direction
            enemyMissile myMissile = new enemyMissile(Canvas.GetLeft(this),
                                            Canvas.GetTop(this) + (this.ActualHeight / 2) );

            //theCanvas.Children.Add(myMissile);
            theMgr.AddGameEntity(myMissile);
        }