1 using Microsoft.Xna.Framework;
2 using Microsoft.Xna.Framework.Graphics;
10 public void Draw(SpriteBatch spriteBatch)
16 float offset = MathUtils.VectorToAngle(
new Vector2(sectorDir.X, -sectorDir.Y)) - (sectorRad / 2f);
17 if (soundRange > 0.0f)
30 color = Color.OrangeRed;
33 if (sectorRad < MathHelper.TwoPi)
35 spriteBatch.DrawSector(pos,
SoundRange, sectorRad, 100, color, offset: offset, thickness: thickness);
39 spriteBatch.DrawCircle(pos,
SoundRange, 100, color, thickness: thickness);
44 if (sightRange > 0.0f)
49 color = Color.CornflowerBlue;
53 if (i.Submarine !=
null && i.Container !=
null)
58 color = Color.CadetBlue;
66 if (sectorRad < MathHelper.TwoPi)
68 spriteBatch.DrawSector(pos,
SightRange, sectorRad, 100, color, offset: offset, thickness: thickness);
72 spriteBatch.DrawCircle(pos,
SightRange, 100, color, thickness: thickness);
void Draw(SpriteBatch spriteBatch)
static bool ShowAITargets