TKTileOffset Constants Reference

Declared in TKEnums.h

TKTileOffset

Tile offsets. These are used as hints for coordinate conversion, to offset the resulting screen position to match one of the tile’s corners or its center. Defaults to bottom left (tile origin).

Constants

TKTileOffsetCenter

Position is adjusted to tile’s center (half width, half height). This can be used with any tile type, be it rectangular, isometric or hexagon.

Declared In TKEnums.h.

TKTileOffsetBottomLeft

Offset to tile’s origin (lower left edge). Always returns CGPointZero. This marks the starting enum for enumeration, TKTileOffsetBottomRight is the last one.

Declared In TKEnums.h.

TKTileOffsetTopLeft

Position is adjusted to tile’s upper left edge.

Declared In TKEnums.h.

TKTileOffsetTopRight

Position is adjusted to tile’s upper right edge.

Declared In TKEnums.h.

TKTileOffsetBottomRight

Position is adjusted to tile’s lower right edge. This is the last enum (inclusive) for enumeration, TKTileOffsetBottomLeft is the first one.

Declared In TKEnums.h.

TKTileOffsetFlatTopHexLeft

Offset to center left vertex of a “flat top” (stagger X) hexagon tile. This marks the starting enum for enumeration, TKTileOffsetFlatTopHexBottomLeft is the last one.

Declared In TKEnums.h.

TKTileOffsetFlatTopHexTopLeft

Offset to top left vertex of a “flat top” (stagger X) hexagon tile.

Declared In TKEnums.h.

TKTileOffsetFlatTopHexTopRight

Offset to top right vertex of a “flat top” (stagger X) hexagon tile. Equivalent to {tileWidth, tileHeight}.

Declared In TKEnums.h.

TKTileOffsetFlatTopHexRight

Offset to center right vertex of a “flat top” (stagger X) hexagon tile.

Declared In TKEnums.h.

TKTileOffsetFlatTopHexBottomRight

Offset to bottom right vertex of a “flat top” (stagger X) hexagon tile.

Declared In TKEnums.h.

TKTileOffsetFlatTopHexBottomLeft

Offset to bottom left vertex of a “flat top” (stagger X) hexagon tile. This is the last enum (inclusive) for enumeration, TKTileOffsetFlatTopHexLeft is the first one.

Declared In TKEnums.h.

TKTileOffsetPointyTopHexLowerLeft

Offset to lower left vertex of a “pointy top” (stagger Y) hexagon tile. This marks the starting enum for enumeration, TKTileOffsetPointyTopHexBottom is the last one.

Declared In TKEnums.h.

TKTileOffsetPointyTopHexUpperLeft

Offset to upper left vertex of a “pointy top” (stagger Y) hexagon tile.

Declared In TKEnums.h.

TKTileOffsetPointyTopHexTop

Offset to center top vertex of a “pointy top” (stagger Y) hexagon tile.

Declared In TKEnums.h.

TKTileOffsetPointyTopHexUpperRight

Offset to upper right vertex of a “pointy top” (stagger Y) hexagon tile.

Declared In TKEnums.h.

TKTileOffsetPointyTopHexLowerRight

Offset to lower right vertex of a “pointy top” (stagger Y) hexagon tile.

Declared In TKEnums.h.

TKTileOffsetPointyTopHexBottom

Offset to center bottom vertex of a “pointy top” (stagger Y) hexagon tile. This is the last enum (inclusive) for enumeration, TKTileOffsetPointyTopHexLowerLeft is the first one.

Declared In TKEnums.h.

TKTileOffsetIsoLeft

Offset to left edge of an isometric tile. This marks the starting enum for enumeration, TKTileOffsetIsoBottom is the last one.

Declared In TKEnums.h.

TKTileOffsetIsoTop

Offset to top edge of an isometric tile.

Declared In TKEnums.h.

TKTileOffsetIsoRight

Offset to right edge of an isometric tile.

Declared In TKEnums.h.

TKTileOffsetIsoBottom

Offset to left edge of an isometric tile. This is the last enum (inclusive) for enumeration, TKTileOffsetIsoLeft is the first one.

Declared In TKEnums.h.

TKTileOffsetCount

Used for debugging to enumerate through all of the offset coords.

Declared In TKEnums.h.

Declared In

TKEnums.h