Class FlatRhombShapeInfo<TCell>
Provides the implementation for AbstractSplicedShapeInfo to be used with FlatRhombGrid.
public class FlatRhombShapeInfo<TCell> : AbstractSplicedShapeInfo<FlatRhombShapeInfo<TCell>, FlatRhombGrid<TCell>, FlatRhombPoint, FlatHexPoint, FlatRhombOp<TCell>>, IShapeInfo<FlatRhombShapeInfo<TCell>, FlatRhombGrid<TCell>, FlatRhombPoint, FlatHexPoint, FlatRhombOp<TCell>>
Type Parameters
TCell
- Inheritance
-
AbstractShapeInfo<FlatRhombShapeInfo<TCell>, FlatRhombGrid<TCell>, FlatRhombPoint, FlatHexPoint, FlatRhombOp<TCell>>AbstractSplicedShapeInfo<FlatRhombShapeInfo<TCell>, FlatRhombGrid<TCell>, FlatRhombPoint, FlatHexPoint, FlatRhombOp<TCell>>FlatRhombShapeInfo<TCell>
- Implements
-
IShapeInfo<FlatRhombShapeInfo<TCell>, FlatRhombGrid<TCell>, FlatRhombPoint, FlatHexPoint, FlatRhombOp<TCell>>
- Inherited Members
- Extension Methods
Constructors
FlatRhombShapeInfo(ShapeStorageInfo<FlatRhombPoint>)
public FlatRhombShapeInfo(ShapeStorageInfo<FlatRhombPoint> info)
Parameters
Methods
ArrayPointFromGridPoint(FlatHexPoint)
protected override ArrayPoint ArrayPointFromGridPoint(FlatHexPoint point)
Parameters
point
FlatHexPoint
Returns
EndGroup(FlatRhombOp<TCell>)
Only call this method from within a FlatRhombOp method (usually, in client code, this will be in an extension).
Since 1.1
public FlatRhombShapeInfo<TCell> EndGroup(FlatRhombOp<TCell> op)
Parameters
op
FlatRhombOp<TCell>The operator on which this shape is defined.
Returns
- FlatRhombShapeInfo<TCell>
GridPointFromArrayPoint(ArrayPoint)
protected override FlatHexPoint GridPointFromArrayPoint(ArrayPoint point)
Parameters
point
ArrayPoint
Returns
MakeOp(ShapeStorageInfo<FlatRhombPoint>, Func<ShapeStorageInfo<FlatRhombPoint>, ShapeStorageInfo<FlatRhombPoint>, ShapeStorageInfo<FlatRhombPoint>>)
protected override FlatRhombOp<TCell> MakeOp(ShapeStorageInfo<FlatRhombPoint> shapeInfo, Func<ShapeStorageInfo<FlatRhombPoint>, ShapeStorageInfo<FlatRhombPoint>, ShapeStorageInfo<FlatRhombPoint>> combineInfo)
Parameters
shapeInfo
ShapeStorageInfo<FlatRhombPoint>combineInfo
Func<ShapeStorageInfo<FlatRhombPoint>, ShapeStorageInfo<FlatRhombPoint>, ShapeStorageInfo<FlatRhombPoint>>
Returns
- FlatRhombOp<TCell>
MakePoint(int, int)
protected override FlatHexPoint MakePoint(int x, int y)
Parameters
Returns
MakeShape(int, int, Func<FlatRhombPoint, bool>, FlatHexPoint)
protected override FlatRhombGrid<TCell> MakeShape(int x, int y, Func<FlatRhombPoint, bool> isInside, FlatHexPoint offset)
Parameters
x
inty
intisInside
Func<FlatRhombPoint, bool>offset
FlatHexPoint
Returns
- FlatRhombGrid<TCell>
MakeShapeInfo(ShapeStorageInfo<FlatRhombPoint>)
protected override FlatRhombShapeInfo<TCell> MakeShapeInfo(ShapeStorageInfo<FlatRhombPoint> shapeStorageInfo)
Parameters
shapeStorageInfo
ShapeStorageInfo<FlatRhombPoint>
Returns
- FlatRhombShapeInfo<TCell>