Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
 public PlayerBrother(Point center, int index) : base(Material.Wood, new Point(0, 0), false, null)
 {
     this.index = index;
     Shape      = ConvexPolygon.Rectangle(center, Width, Height);
 }
Example #4
0
 public Player(Point center) : base(Material.Wood, new Point(0, 0), false, null)
 {
     Exit  = false;
     Shape = ConvexPolygon.Rectangle(center, Width, Height);
 }
Example #5
0
 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);
 }