// 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); }
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); }