Ejemplo n.º 1
0
        /// <summary>
        /// Called from BulletMLLib when a new bullet needs to be created in the tree
        /// </summary>
        public BulletMLBullet GetNewBullet()
        {
            IsBulletRoot = true;
            BulletMover bulletMover = myManager.CreateBulletMover();

            return(bulletMover.MLBullet);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creating a new Emitter
        /// </summary>
        public BulletMover CreateBulletMover(Vector position, BulletMLLib.BulletMLTree tree)
        {
            BulletMover newBulletMover = CreateBulletMover();

            newBulletMover.Position = position;
            newBulletMover.SetBullet(tree);
            return(newBulletMover);
        }
Ejemplo n.º 3
0
        public BulletMover CreateBulletMover()
        {
            Icon        iconBullet     = ControlFactory.CreateIcon(contentManager, "Square");
            BulletMover newBulletMover = new BulletMover();

            emitters.Add(newBulletMover);
            newBulletMover.Init(this, iconBullet);
            return(newBulletMover);
        }