Click or drag to resize

FlatTriGridTCell Class

A grid of triangles in the flat orientation. All triangles have one horizontal edge.
Inheritance Hierarchy
SystemObject
  Gamelogic.GridsAbstractSplicedGridTCell, FlatTriPoint, PointyHexPoint
    Gamelogic.GridsFlatTriGridTCell

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

Type Parameters

TCell

The FlatTriGridTCell type exposes the following members.

Constructors
  NameDescription
Public methodFlatTriGridTCell(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 methodFlatTriGridTCell(Int32, Int32, FuncFlatTriPoint, 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 methodFlatTriGridTCell(Int32, Int32, FuncFlatTriPoint, Boolean, FlatTriPoint)
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 methodFlatTriGridTCell(Int32, Int32, FuncFlatTriPoint, Boolean, PointyHexPoint)
Public methodFlatTriGridTCell(Int32, Int32, FuncFlatTriPoint, Boolean, FuncFlatTriPoint, FlatTriPoint, FuncFlatTriPoint, FlatTriPoint)
Public methodFlatTriGridTCell(Int32, Int32, FuncFlatTriPoint, Boolean, FuncFlatTriPoint, FlatTriPoint, FuncFlatTriPoint, FlatTriPoint, IEnumerableFlatTriPoint)
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 memberDownTriangle
Public methodEquals (Inherited from Object.)
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 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 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 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