예제 #1
0
파일: Op.cs 프로젝트: mhaque3/soa_unity
 /**
  *      Starts a compound shape operation.
  *
  *      Any shape that is defined in terms of other shape operations must use this method, and use Endgroup() to end the definition.
  *
  *              public static PointyHexShapeInfo<TCell> MyCustomShape(this PointyHexOp<TCell> op)
  *              {
  *                      return
  *                              BeginGroup()
  *                                      .Shape1()
  *                                      .Union()
  *                                      .Shape2()
  *                              .EndGroup(op);
  *              }
  *
  *      @since 1.1
  */
 public PointyHexOp <TCell> BeginGroup()
 {
     return(PointyHexGrid <TCell> .BeginShape());
 }
예제 #2
0
 public FlatTriShapeInfo <TCell> Rectangle(int width, int height)
 {
     return(ShapeFromBase(PointyHexGrid <TCell> .BeginShape().Rectangle(width, height)));
 }
예제 #3
0
 public CairoShapeInfo <TCell> ThinRectangle(int width, int height)
 {
     return(ShapeFromBase(PointyHexGrid <TCell> .BeginShape().ThinRectangle(width, height)));
 }
예제 #4
0
 public CairoShapeInfo <TCell> Parallelogram(int width, int height)
 {
     return(ShapeFromBase(PointyHexGrid <TCell> .BeginShape().Parallelogram(width, height)));
 }
예제 #5
0
 public CairoShapeInfo <TCell> Hexagon(int side)
 {
     return(ShapeFromBase(PointyHexGrid <TCell> .BeginShape().Hexagon(side)));
 }