Table of Contents

Class AnimatableMap<TPoint>

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

A map that changes over time.

[Version(1, 0, 0)]
public class AnimatableMap<TPoint> : AbstractMap<TPoint>, IMap<TPoint>, IGridToWorldMap<TPoint> where TPoint : IGridPoint<TPoint>

Type Parameters

TPoint
Inheritance
AbstractMap<TPoint>
AnimatableMap<TPoint>
Implements
IMap<TPoint>
Inherited Members
Extension Methods

Constructors

AnimatableMap(Vector2, IMap<TPoint>, Func<Vector2, float, Vector2>)

public AnimatableMap(Vector2 cellDimensions, IMap<TPoint> baseMap, Func<Vector2, float, Vector2> animation)

Parameters

cellDimensions Vector2
baseMap IMap<TPoint>
animation Func<Vector2, float, Vector2>

AnimatableMap(Vector2, IMap<TPoint>, Func<Vector2, float, Vector2>, Func<Vector2, float, Vector2>)

public AnimatableMap(Vector2 cellDimensions, IMap<TPoint> baseMap, Func<Vector2, float, Vector2> animation, Func<Vector2, float, Vector2> inverseAnimation)

Parameters

cellDimensions Vector2
baseMap IMap<TPoint>
animation Func<Vector2, float, Vector2>
inverseAnimation Func<Vector2, float, Vector2>

Methods

GridToWorld(TPoint)

This method maps a grid point to a world point.

public override Vector2 GridToWorld(TPoint gridPoint)

Parameters

gridPoint TPoint

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 TPoint RawWorldToGrid(Vector2 worldPoint)

Parameters

worldPoint Vector2

Returns

TPoint