Table of Contents

Class PointyRhombShapeInfo<TCell>

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

Provides the implementation for AbstractSplicedShapeInfo to be used with PointyRhombGrid.

public class PointyRhombShapeInfo<TCell> : AbstractSplicedShapeInfo<PointyRhombShapeInfo<TCell>, PointyRhombGrid<TCell>, PointyRhombPoint, PointyHexPoint, PointyRhombOp<TCell>>, IShapeInfo<PointyRhombShapeInfo<TCell>, PointyRhombGrid<TCell>, PointyRhombPoint, PointyHexPoint, PointyRhombOp<TCell>>

Type Parameters

TCell
Inheritance
PointyRhombShapeInfo<TCell>
Implements
Inherited Members
Extension Methods

Constructors

PointyRhombShapeInfo(ShapeStorageInfo<PointyRhombPoint>)

public PointyRhombShapeInfo(ShapeStorageInfo<PointyRhombPoint> info)

Parameters

info ShapeStorageInfo<PointyRhombPoint>

Methods

ArrayPointFromGridPoint(PointyHexPoint)

protected override ArrayPoint ArrayPointFromGridPoint(PointyHexPoint point)

Parameters

point PointyHexPoint

Returns

ArrayPoint

EndGroup(PointyRhombOp<TCell>)

Only call this method from within a PointyRhombOp method (usually, in client code, this will be in an extension).

Since 1.1

public PointyRhombShapeInfo<TCell> EndGroup(PointyRhombOp<TCell> op)

Parameters

op PointyRhombOp<TCell>

The operator on which this shape is defined.

Returns

PointyRhombShapeInfo<TCell>

GridPointFromArrayPoint(ArrayPoint)

protected override PointyHexPoint GridPointFromArrayPoint(ArrayPoint point)

Parameters

point ArrayPoint

Returns

PointyHexPoint

MakeOp(ShapeStorageInfo<PointyRhombPoint>, Func<ShapeStorageInfo<PointyRhombPoint>, ShapeStorageInfo<PointyRhombPoint>, ShapeStorageInfo<PointyRhombPoint>>)

protected override PointyRhombOp<TCell> MakeOp(ShapeStorageInfo<PointyRhombPoint> shapeInfo, Func<ShapeStorageInfo<PointyRhombPoint>, ShapeStorageInfo<PointyRhombPoint>, ShapeStorageInfo<PointyRhombPoint>> combineInfo)

Parameters

shapeInfo ShapeStorageInfo<PointyRhombPoint>
combineInfo Func<ShapeStorageInfo<PointyRhombPoint>, ShapeStorageInfo<PointyRhombPoint>, ShapeStorageInfo<PointyRhombPoint>>

Returns

PointyRhombOp<TCell>

MakePoint(int, int)

protected override PointyHexPoint MakePoint(int x, int y)

Parameters

x int
y int

Returns

PointyHexPoint

MakeShape(int, int, Func<PointyRhombPoint, bool>, PointyHexPoint)

protected override PointyRhombGrid<TCell> MakeShape(int x, int y, Func<PointyRhombPoint, bool> isInside, PointyHexPoint offset)

Parameters

x int
y int
isInside Func<PointyRhombPoint, bool>
offset PointyHexPoint

Returns

PointyRhombGrid<TCell>

MakeShapeInfo(ShapeStorageInfo<PointyRhombPoint>)

protected override PointyRhombShapeInfo<TCell> MakeShapeInfo(ShapeStorageInfo<PointyRhombPoint> shapeStorageInfo)

Parameters

shapeStorageInfo ShapeStorageInfo<PointyRhombPoint>

Returns

PointyRhombShapeInfo<TCell>