Click or drag to resize

PointyRhombGridTCell Class

A rhombille grid in the pointy orientation, that is, there are rhombusses with vertical edges.
Inheritance Hierarchy
SystemObject
  Gamelogic.GridsAbstractSplicedGridTCell, PointyRhombPoint, PointyHexPoint
    Gamelogic.GridsPointyRhombGridTCell

Namespace:  Gamelogic.Grids
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
[VersionAttribute(1, 0, 0)]
public class PointyRhombGrid<TCell> : AbstractSplicedGrid<TCell, PointyRhombPoint, PointyHexPoint>

Type Parameters

TCell

The PointyRhombGridTCell type exposes the following members.

Constructors
  NameDescription
Public methodPointyRhombGridTCell(Int32, Int32)
Construct a new grid in the default shape with the given width and height. No transformations are applied to the grid. Normally, the static factory methods or shape building methods should be used to create grids. These constructors are provided for advanced usage.
Public methodPointyRhombGridTCell(Int32, Int32, FuncPointyRhombPoint, Boolean)
Construct a new grid whose cells are determined by the given test function. The test function should only return true for points within the bounds of the default shape. No transformations are applied to the grid. Normally, the static factory methods or shape building methods should be used to create grids. These constructors are provided for advanced usage.
Public methodPointyRhombGridTCell(Int32, Int32, FuncPointyRhombPoint, Boolean, PointyHexPoint)
Public methodPointyRhombGridTCell(Int32, Int32, FuncPointyRhombPoint, Boolean, PointyRhombPoint)
Construct a new grid whose cells are determined by the given test function. The function should only return true for points within the bounds of the rectangle when the given transforms are applied to them. Normally, the static factory methods or shape building methods should be used to create grids. These constructors are provided for advanced usage.
Public methodPointyRhombGridTCell(Int32, Int32, FuncPointyRhombPoint, Boolean, FuncPointyRhombPoint, PointyRhombPoint, FuncPointyRhombPoint, PointyRhombPoint)
Public methodPointyRhombGridTCell(Int32, Int32, FuncPointyRhombPoint, Boolean, FuncPointyRhombPoint, PointyRhombPoint, FuncPointyRhombPoint, PointyRhombPoint, IEnumerablePointyRhombPoint)
Top
Properties
  NameDescription
Protected propertyGridOrigin (Overrides AbstractSplicedGridTCell, TPoint, TBasePointGridOrigin.)
Protected propertyInversePointTransform (Inherited from AbstractSplicedGridTCell, TPoint, TBasePoint.)
Public propertyItem (Inherited from AbstractSplicedGridTCell, TPoint, TBasePoint.)
Public propertyNeighborDirections (Inherited from AbstractSplicedGridTCell, TPoint, TBasePoint.)
Protected propertyPointTransform (Inherited from AbstractSplicedGridTCell, TPoint, TBasePoint.)
Public propertyValues (Inherited from AbstractSplicedGridTCell, TPoint, TBasePoint.)
Top
Methods
  NameDescription
Public methodStatic memberArrayPointFromGridPoint
Public methodStatic memberBeginShape
Use this method to begin a shape building sequence.
Public methodStatic memberCalculateStorage
Public methodCloneStructureTNewCellType
Returns a grid in the same shape, but with contents in the new type.
(Overrides AbstractSplicedGridTCell, TPoint, TBasePointCloneStructureTNewCell.)
Public methodContains (Inherited from AbstractSplicedGridTCell, TPoint, TBasePoint.)
Public methodStatic memberDefault
Public methodStatic memberDefaultContains
Public methodStatic memberDiamond
Public methodStatic memberDownTriangle
Public methodEquals (Inherited from Object.)
Public methodStatic memberFatRectangle
Protected methodFinalize (Inherited from Object.)
Public methodGetAllNeighbors (Inherited from AbstractSplicedGridTCell, TPoint, TBasePoint.)
Public methodGetEnumerator (Inherited from AbstractSplicedGridTCell, TPoint, TBasePoint.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLargeSet
This functions returns a large number of points around the origin. This is useful(when used with big enough n) to determine whether a grid that is missing points is doing so becuase of an incorrect test function, or an incorrect storage rectangle. Use for debugging.
(Inherited from AbstractSplicedGridTCell, TPoint, TBasePoint.)
Public methodGetNeighborDirections (Inherited from AbstractSplicedGridTCell, TPoint, TBasePoint.)
Public methodGetStoragePoints
This method returns all points that can be contained by the storage rectangle for this grid. This is useful for debugging shape functions.
(Inherited from AbstractSplicedGridTCell, TPoint, TBasePoint.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberGridPointFromArrayPoint
Public methodStatic memberHexagon
Protected methodMakePoint (Overrides AbstractSplicedGridTCell, TPoint, TBasePointMakePoint(TBasePoint, Int32).)
Protected methodMakeUnderlyingGrid (Overrides AbstractSplicedGridTCell, TPoint, TBasePointMakeUnderlyingGrid(Int32, Int32).)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberParallelogram
Public methodStatic memberRectangle
Public methodSetGridPointTransforms
this function make it possible to do things such as flip axes.
(Inherited from AbstractSplicedGridTCell, TPoint, TBasePoint.)
Public methodStatic memberSingle
Public methodStatic memberSingleGroup
Public methodStatic memberThinRectangle
Public methodToString (Overrides ObjectToString.)
Public methodStatic memberUpTriangle
Top
Fields
Extension Methods
  NameDescription
Public Extension MethodThrowIfNull
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.)
Top
Explicit Interface Implementations
See Also