Table of Contents

Class AbstractOp<TShapeInfo>

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

The base class for all shape operators.A shape operator provides a mechanism to construct grids in a certain shape.Shape operators are used with the shape info classes.

[Version(1, 0, 0)]
public abstract class AbstractOp<TShapeInfo> where TShapeInfo : class

Type Parameters

TShapeInfo

ShapeInfo Class to be used.

Inheritance
AbstractOp<TShapeInfo>
Derived
Inherited Members
Extension Methods

Constructors

AbstractOp()

protected AbstractOp()

AbstractOp(TShapeInfo, Func<TShapeInfo, TShapeInfo, TShapeInfo>)

protected AbstractOp(TShapeInfo leftShapeInfo, Func<TShapeInfo, TShapeInfo, TShapeInfo> combineShapeInfo)

Parameters

leftShapeInfo TShapeInfo
combineShapeInfo Func<TShapeInfo, TShapeInfo, TShapeInfo>

Fields

combineShapeInfo

public readonly Func<TShapeInfo, TShapeInfo, TShapeInfo> combineShapeInfo

Field Value

Func<TShapeInfo, TShapeInfo, TShapeInfo>

leftShapeInfo

public readonly TShapeInfo leftShapeInfo

Field Value

TShapeInfo

Methods

MakeShapeStorageInfo(TShapeInfo)

public TShapeInfo MakeShapeStorageInfo(TShapeInfo shapeInfo)

Parameters

shapeInfo TShapeInfo

Returns

TShapeInfo

MakeShapeStorageInfo<TPoint>(IntRect, Func<TPoint, bool>)

public TShapeInfo MakeShapeStorageInfo<TPoint>(IntRect storageRect, Func<TPoint, bool> isInside)

Parameters

storageRect IntRect
isInside Func<TPoint, bool>

Returns

TShapeInfo

Type Parameters

TPoint

MakeShapeStorageInfo<TPoint>(int, int, Func<TPoint, bool>)

public TShapeInfo MakeShapeStorageInfo<TPoint>(int width, int height, Func<TPoint, bool> isInside)

Parameters

width int
height int
isInside Func<TPoint, bool>

Returns

TShapeInfo

Type Parameters

TPoint