private static BulletFactory makeBossSpiralFactory()
        {
            SpiralLocationEquation s      = new SpiralLocationEquation(6, 40, 10);
            BulletFactory          baseBf = new ShotgunBulletFactory(2 * Math.PI / 3, new LinearLocationEquation(Math.PI / 2, .2F));
            MovingBulletFactory    bf     = new MovingBulletFactory(baseBf, s);

            return(bf);
        }
Beispiel #2
0
        /*
         *  TODO: IMPLEMEMENT GUN TO FOLLOW SPECIFIC SHAPE/PATTERN EQUATION
         */
        public BossGun(Vector2 startingLoc, int delay, BulletFactory factory, float direction, ILocationEquation shape, Texture2D texture, TEAM team) : base(delay, texture, factory, team)
        {
            Location             = startingLoc;
            this.delay           = delay;
            this.bfactory        = factory;
            this.direction       = direction;
            base.fireAngleOffset = Math.PI / 2;

            path = (SpiralLocationEquation)shape;
        }