Ejemplo n.º 1
0
        // Yay, since C# has poor introspection and no macros, what we get
        // instead is a FUCKTON OF COPY PASTE CODE.
        // There MIGHT be a way around this, sort of.
        public IGameObj MakeTurret(Vector2d loc, double facing)
        {
            AIController c = new TurretController();
            Turret       t = new Turret(loc, facing, c);

            t.Vel = Misc.PointBetween(1, 10);
            return(t);
        }
Ejemplo n.º 2
0
        public IGameObj MakeDeathTurret(Vector2d loc, double facing)
        {
            IController c = new TurretController();
            DeathTurret t = new DeathTurret(loc, facing, c);

            t.Vel    = Misc.PointBetween(1, 10);
            t.Facing = Misc.Rand.NextDouble() * Misc.TWOPI;
            return(t);
        }