KKTilemapLayerContourTracer Class Reference
Inherits from | NSObject |
Declared in | KKTilemapLayerContourTracer.h |
Overview
Internal use. Performs contour tracing of a tile layer and returns the resulting contour segments as CGPathRef or KKPointArray.
Class Methods
contourMapFromTileLayer:
Parses the tile layer and creates a contour map.
+ (id)contourMapFromTileLayer:(KKTilemapLayer *)layer
Parameters
- layer
A tile layer.
Return Value
Instance of KKTilemapLayerContourTracer.
Declared In
KKTilemapLayerContourTracer.h
contourMapFromTileLayer:blockingGids:
Parses the tile layer and creates a contour map.
+ (id)contourMapFromTileLayer:(KKTilemapLayer *)layer blockingGids:(KKIntegerArray *)blockingGids
Parameters
- layer
A tile layer.
- blockingGids
An integer array of specific GIDs that should be considered as blocking.
Return Value
Instance of KKTilemapLayerContourTracer.
Declared In
KKTilemapLayerContourTracer.h