Table of Contents

Class PathFindingPointyHexGrid

Namespace
Gamelogic.Grids.Examples
Assembly
Assembly-CSharp.dll
public class PathFindingPointyHexGrid : GridBehaviour<PointyHexPoint>
Inheritance
PathFindingPointyHexGrid
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.runInEditMode
Component.GetComponent<T>()
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentsInParent<T>()
Component.transform
Component.gameObject
Component.tag
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.name
Object.hideFlags
Extension Methods

Fields

blockedColor

public Color blockedColor

Field Value

Color

goalColor

public Color goalColor

Field Value

Color

pathColor

public Color pathColor

Field Value

Color

pathMode

public PathMode pathMode

Field Value

PathMode

pathPrefab

public SpriteCell pathPrefab

Field Value

SpriteCell

pathRoot

public GameObject pathRoot

Field Value

GameObject

startColor

public Color startColor

Field Value

Color

weightGradient

[Header("Colors")]
public Gradient weightGradient

Field Value

Gradient

Methods

GetEuclideanPath()

public IEnumerable<PointyHexPoint> GetEuclideanPath()

Returns

IEnumerable<PointyHexPoint>

GetGridPath()

public IEnumerable<PointyHexPoint> GetGridPath()

Returns

IEnumerable<PointyHexPoint>

GetWeightedPath()

public IEnumerable<PointyHexPoint> GetWeightedPath()

Returns

IEnumerable<PointyHexPoint>

InitGrid()

When this behaviour is attached to a grid builder, this method is called once the grid is created, and all cells(tiles) have been instantiated.

Override this to implement custom initialisation code. (You can access the grid through the Grid property).

public override void InitGrid()

OnLeftClick(PointyHexPoint)

public void OnLeftClick(PointyHexPoint clickedPoint)

Parameters

clickedPoint PointyHexPoint

OnRightClick(PointyHexPoint)

public void OnRightClick(PointyHexPoint clickedPoint)

Parameters

clickedPoint PointyHexPoint