public Teleport(Point center) : base(Physics.Material.Adamantium, new Point(0, 0), false, null) { teleported = null; Activated = false; Enabled = true; Shape = ConvexPolygon.Rectangle(center, Width, Height); }
private static Polygon setRectangleDebugPolygon(float _w, float _h) { if (debugPolygon == null) { debugPolygon = ConvexPolygon.Rectangle(_w, _h); } else { debugPolygon.Clone(BoundingBox.PointsFromRectangle(_w, _h)); } return(debugPolygon); }
public PlayerBrother(Point center, int index) : base(Material.Wood, new Point(0, 0), false, null) { this.index = index; Shape = ConvexPolygon.Rectangle(center, Width, Height); }
public Player(Point center) : base(Material.Wood, new Point(0, 0), false, null) { Exit = false; Shape = ConvexPolygon.Rectangle(center, Width, Height); }
public Exit(Point center) : base(Physics.Material.Adamantium, new Point(0, 0), true, ConvexPolygon.Rectangle(center + new Point(0, Height / 2 + 1), Width, 2)) { corner = center - new Point(Width / 2, Height / 2); }