Click or drag to resize

AbstractMapTPoint Class

This class is suitable to use as base class for most maps. AbstractMap implements the IMap interface almost completely; you only have to implement to methods that correspond to the two calculations: converting from world to grid coordinates, and converting from grid to world coordinates.
Inheritance Hierarchy
SystemObject
  Gamelogic.GridsAbstractMapTPoint
    More...

Namespace:  Gamelogic.Grids
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
[VersionAttribute(1, 0, 0)]
[ImmutableAttribute]
public abstract class AbstractMap<TPoint> : IMap<TPoint>, 
	IGridToWorldMap<TPoint>
where TPoint : Object, IGridPoint<TPoint>

Type Parameters

TPoint

The AbstractMapTPoint type exposes the following members.

Constructors
Properties
Methods
  NameDescription
Public methodAnchorCellBottom
Public methodAnchorCellBottomCenter
Public methodAnchorCellBottomLeft
Public methodAnchorCellBottomRight
Public methodAnchorCellCenter
Public methodAnchorCellLeft
Public methodAnchorCellMiddle
Public methodAnchorCellMiddleCenter
Public methodAnchorCellMiddleLeft
Public methodAnchorCellMiddleRight
Public methodAnchorCellRight
Public methodAnchorCellTop
Public methodAnchorCellTopCenter
Public methodAnchorCellTopLeft
Public methodAnchorCellTopRight
Public methodAnimate
Animates a according to a fixed function. This is useful for animating grids when the animation does not depend on any input.
Public methodCalcAnchorBottomLeft
Public methodCalcAnchorDimensions
Public methodCalcBottomLeft
Public methodCalcGridDimensions
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFlipXY
Public methodGetAnchorTranslation
Public methodGetCellDimensions
Public methodGetCellDimensions(TPoint)
Overrides this method to get custom Grid dimension calculations
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodGridToWorld
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRawWorldToGrid
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 methodReflectAboutX
Public methodReflectAboutY
Public methodRotate
Public methodRotate180
Public methodRotate90
Public methodRotateAround
Public methodScale(Single)
Public methodScale(Vector2)
Public methodScale(Single, Single)
Public methodSetGridPointTransforms
Public methodTo3DXY
Makes a map that maps to 3D, with the grid positioned in the XY plane, with the z-coordinate 0.
Public methodTo3DXY(Single)
Makes a map that maps to 3D, with the grid positioned in the XY plane, with the given z-coordinate.
Public methodTo3DXZ
Makes a map that maps to 3D, with the grid positioned in the XZ plane, with the z-coordinate 0.
Public methodTo3DXZ(Single)
Makes a map that maps to 3D, with the grid positioned in the XZ plane, with the given z-coordinate.
Public methodToString (Inherited from Object.)
Public methodTranslate(Vector2)
Public methodTranslate(Single, Single)
Public methodTranslateX
Public methodTranslateY
Public methodWithWindow
Top
Fields
Extension Methods
  NameDescription
Public Extension MethodThrowIfNull
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.)
Top
See Also
Inheritance Hierarchy
SystemObject
  Gamelogic.GridsAbstractMapTPoint
    Gamelogic.GridsAnimatableMapTPoint
    Gamelogic.GridsArchimedeanSpiralMap
    Gamelogic.GridsCompoundMapTPoint
    Gamelogic.GridsDiamondMap
    Gamelogic.GridsFlatBrickMap
    Gamelogic.GridsFlatHexMap
    Gamelogic.GridsFlatRhombMap
    Gamelogic.GridsFlatTriMap
    Gamelogic.GridsLineMap
    Gamelogic.GridsPointyBrickMap
    Gamelogic.GridsPointyHexMap
    Gamelogic.GridsPointyRhombMap
    Gamelogic.GridsPointyTriMap
    Gamelogic.GridsPolarFlatBrickMap
    Gamelogic.GridsPolarPointyBrickMap
    Gamelogic.GridsPolarRectMap
    Gamelogic.GridsPolygonGridMapTPoint, TBasePoint
    Gamelogic.GridsRectMap
    Gamelogic.GridsVoronoiMapTPoint