public LineReport(double time, ILocation loc1, ILocation loc2, bool isStatic, int id)
     : this(time, loc1, loc2)
 {
     this.isStatic = isStatic;
     this.id = id;
     if (isStatic) layer = DrawLayer.Static;
 }
Ejemplo n.º 2
0
 public static float GetDrawLayer(DrawLayer l, bool backToFront = true)
 {
     if (backToFront)
         switch (l)
         {
             case DrawLayer.Background: return 1.0F;
             case DrawLayer.Floor: return 0.9F;
             case DrawLayer.Feature: return 0.8F;
             case DrawLayer.Actor: return 0.7F;
             case DrawLayer.Effect: return 0.6F;
             case DrawLayer.HUD: return 0.5F;
             case DrawLayer.Menu: return 0.4F;
             case DrawLayer.Foreground: return 0.0F;
             default: return 1.0F;
         }
     else
         switch (l)
         {
             case DrawLayer.Background: return 0.0F;
             case DrawLayer.Floor: return 0.1F;
             case DrawLayer.Feature: return 0.2F;
             case DrawLayer.Actor: return 0.3F;
             case DrawLayer.Effect: return 0.4F;
             case DrawLayer.HUD: return 0.5F;
             case DrawLayer.Menu: return 0.6F;
             case DrawLayer.Foreground: return 1.0F;
             default: return 0.0F;
         }
 }
        public CircleReport(double time, ILocation loc, double size, GraphicsPath gradientPath,
            bool isStatic, int id)
        {
            this.time = time;
            loc1 = loc;
            this.size = size;
            this.gradientPath = gradientPath;

            this.isStatic = isStatic;
            this.id = id;
            if (isStatic) layer = DrawLayer.Static;
        }
 public LineReport(double time, XYDoubleLocation nearLoc, XYDoubleLocation farLoc,
     double distance, double length, bool isStatic, int id)
     : this(time, nearLoc, farLoc, distance, length)
 {
     this.isStatic = isStatic;
     this.id = id;
     if (isStatic) layer = DrawLayer.Static;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initialises a new instance of the <see cref="FontGraphics"/> class.
 /// </summary>
 public FontGraphics(string text, int maxWidth, IPositionProfile positionProfile, DrawLayer drawLayer, TextFormat fontFlow, Color colour, SpriteFont font)
     : base(positionProfile, drawLayer)
 {
     this.text        = text;
     this.displayText = text;
     this.maxWidth    = maxWidth;
     this.fontFlow    = fontFlow;
     this.colour      = colour;
     this.font        = font;
     this.scale       = 1;
 }