Table of Contents

Class PointyTriShapeInfo<TCell>

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

Provides the implementation for AbstractSplicedShapeInfo to be used with PointyTriGrid.

public class PointyTriShapeInfo<TCell> : AbstractSplicedShapeInfo<PointyTriShapeInfo<TCell>, PointyTriGrid<TCell>, PointyTriPoint, FlatHexPoint, PointyTriOp<TCell>>, IShapeInfo<PointyTriShapeInfo<TCell>, PointyTriGrid<TCell>, PointyTriPoint, FlatHexPoint, PointyTriOp<TCell>>

Type Parameters

TCell
Inheritance
PointyTriShapeInfo<TCell>
Implements
Inherited Members
Extension Methods

Constructors

PointyTriShapeInfo(ShapeStorageInfo<PointyTriPoint>)

public PointyTriShapeInfo(ShapeStorageInfo<PointyTriPoint> info)

Parameters

info ShapeStorageInfo<PointyTriPoint>

Methods

ArrayPointFromGridPoint(FlatHexPoint)

protected override ArrayPoint ArrayPointFromGridPoint(FlatHexPoint point)

Parameters

point FlatHexPoint

Returns

ArrayPoint

EndGroup(PointyTriOp<TCell>)

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

Since 1.1

public PointyTriShapeInfo<TCell> EndGroup(PointyTriOp<TCell> op)

Parameters

op PointyTriOp<TCell>

The operator on which this shape is defined.

Returns

PointyTriShapeInfo<TCell>

GridPointFromArrayPoint(ArrayPoint)

protected override FlatHexPoint GridPointFromArrayPoint(ArrayPoint point)

Parameters

point ArrayPoint

Returns

FlatHexPoint

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

protected override PointyTriOp<TCell> MakeOp(ShapeStorageInfo<PointyTriPoint> shapeInfo, Func<ShapeStorageInfo<PointyTriPoint>, ShapeStorageInfo<PointyTriPoint>, ShapeStorageInfo<PointyTriPoint>> combineInfo)

Parameters

shapeInfo ShapeStorageInfo<PointyTriPoint>
combineInfo Func<ShapeStorageInfo<PointyTriPoint>, ShapeStorageInfo<PointyTriPoint>, ShapeStorageInfo<PointyTriPoint>>

Returns

PointyTriOp<TCell>

MakePoint(int, int)

protected override FlatHexPoint MakePoint(int x, int y)

Parameters

x int
y int

Returns

FlatHexPoint

MakeShape(int, int, Func<PointyTriPoint, bool>, FlatHexPoint)

protected override PointyTriGrid<TCell> MakeShape(int x, int y, Func<PointyTriPoint, bool> isInside, FlatHexPoint offset)

Parameters

x int
y int
isInside Func<PointyTriPoint, bool>
offset FlatHexPoint

Returns

PointyTriGrid<TCell>

MakeShapeInfo(ShapeStorageInfo<PointyTriPoint>)

protected override PointyTriShapeInfo<TCell> MakeShapeInfo(ShapeStorageInfo<PointyTriPoint> shapeStorageInfo)

Parameters

shapeStorageInfo ShapeStorageInfo<PointyTriPoint>

Returns

PointyTriShapeInfo<TCell>