public LaserCannon(GDGameScreen scrn, LaserCannonBlueprint bp, Fraction[] fractions) : base(scrn, fractions, bp.Player, bp.X, bp.Y, bp.Diameter, bp.CannonID, bp.Rotation, bp.PrecalculatedPaths) { Blueprint = bp; _screen = scrn; _muted = scrn.IsPreview; LaserSource = scrn.LaserNetwork.AddSource(this); coreImage = FloatMath.GetRangedIntRandom(0, Textures.CANNONCORE_COUNT); coreRotation = FloatMath.GetRangedRandom(FloatMath.RAD_POS_000, FloatMath.RAD_POS_360); _soundeffect = MainGame.Inst.GDSound.GetEffectLaser(this); _soundeffect.IsLooped = true; }
private void DrawLaserCannon(LaserCannonBlueprint c) { DrawGenericCannon('+', c); }