Click or drag to resize

PointyTriGridTCell Class

A grid of triangles in the pointy orientation. All triangles have one vertical edge.
Inheritance Hierarchy
SystemObject
  Gamelogic.GridsAbstractSplicedGridTCell, PointyTriPoint, FlatHexPoint
    Gamelogic.GridsPointyTriGridTCell

Namespace:  Gamelogic.Grids
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
[VersionAttribute(1, 0, 0)]
public class PointyTriGrid<TCell> : AbstractSplicedGrid<TCell, PointyTriPoint, FlatHexPoint>, 
	ISupportsVertexGrid<FlatHexPoint>, ISupportsEdgeGrid<FlatRhombPoint>

Type Parameters

TCell

The PointyTriGridTCell type exposes the following members.

Constructors
  NameDescription
Public methodPointyTriGridTCell(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 methodPointyTriGridTCell(Int32, Int32, FuncPointyTriPoint, 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 methodPointyTriGridTCell(Int32, Int32, FuncPointyTriPoint, Boolean, FlatHexPoint)
Public methodPointyTriGridTCell(Int32, Int32, FuncPointyTriPoint, Boolean, PointyTriPoint)
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 methodPointyTriGridTCell(Int32, Int32, FuncPointyTriPoint, Boolean, FuncPointyTriPoint, PointyTriPoint, FuncPointyTriPoint, PointyTriPoint)
Public methodPointyTriGridTCell(Int32, Int32, FuncPointyTriPoint, Boolean, FuncPointyTriPoint, PointyTriPoint, FuncPointyTriPoint, PointyTriPoint, IEnumerablePointyTriPoint)
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 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
Public methodStatic memberLeftTriangle
Public methodMakeEdgeGridTNewCell
Makes an edge grid for this grid.
Protected methodMakePoint (Overrides AbstractSplicedGridTCell, TPoint, TBasePointMakePoint(TBasePoint, Int32).)
Protected methodMakeUnderlyingGrid (Overrides AbstractSplicedGridTCell, TPoint, TBasePointMakeUnderlyingGrid(Int32, Int32).)
Public methodMakeVertexGridTNewCell
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberParallelogramXY
Public methodStatic memberParallelogramXZ
Public methodStatic memberRectangle
Public methodStatic memberRightTriangle
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 memberStar
Public methodStatic memberThinRectangle
Public methodToString (Overrides ObjectToString.)
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