Table of Contents

Class PointyBrickMap

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

A map that can be used with a PointyHexGrid to get a brick-wall pattern. The cells are rectangular.

[Version(1, 0, 0)]
public class PointyBrickMap : AbstractMap<PointyHexPoint>, IMap<PointyHexPoint>, IGridToWorldMap<PointyHexPoint>
Inheritance
PointyBrickMap
Implements
Inherited Members
Extension Methods

Constructors

PointyBrickMap(Vector2)

public PointyBrickMap(Vector2 cellDimensions)

Parameters

cellDimensions Vector2

Methods

GridToWorld(PointyHexPoint)

This method maps a grid point to a world point.

public override Vector2 GridToWorld(PointyHexPoint point)

Parameters

point PointyHexPoint

Returns

Vector2

RawWorldToGrid(Vector2)

This method maps a world point to a grid point, assuming that the anchor point is centered in the cell.This will allow the index accessors[] to give correct results for any anchoring.

public override PointyHexPoint RawWorldToGrid(Vector2 point)

Parameters

point Vector2

Returns

PointyHexPoint