Class SKTileMapNode

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, UIActivityItemsConfigurationProviding, UIFocusEnvironment, UIFocusItem, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UIUserActivityRestoring, ObjCProtocol

public class SKTileMapNode
extends SKNode
implements NSSecureCoding
Since:
Available in iOS 10.0 and later.
  • Constructor Details

    • SKTileMapNode

      public SKTileMapNode()
    • SKTileMapNode

      protected SKTileMapNode​(NSObject.Handle h, long handle)
    • SKTileMapNode

      protected SKTileMapNode​(NSObject.SkipInit skipInit)
    • SKTileMapNode

      public SKTileMapNode​(SKTileSet tileSet, long columns, long rows, CGSize tileSize)
    • SKTileMapNode

      public SKTileMapNode​(SKTileSet tileSet, long columns, long rows, CGSize tileSize, SKTileGroup tileGroup)
    • SKTileMapNode

      public SKTileMapNode​(SKTileSet tileSet, long columns, long rows, CGSize tileSize, NSArray<SKTileGroup> tileGroupLayout)
    • SKTileMapNode

      public SKTileMapNode​(NSCoder coder)
  • Method Details

    • getNumberOfColumns

      public long getNumberOfColumns()
    • setNumberOfColumns

      public void setNumberOfColumns​(long v)
    • getNumberOfRows

      public long getNumberOfRows()
    • setNumberOfRows

      public void setNumberOfRows​(long v)
    • getTileSize

      public CGSize getTileSize()
    • setTileSize

      public void setTileSize​(CGSize v)
    • getMapSize

      public CGSize getMapSize()
    • getTileSet

      public SKTileSet getTileSet()
    • setTileSet

      public void setTileSet​(SKTileSet v)
    • getColorBlendFactor

      public double getColorBlendFactor()
    • setColorBlendFactor

      public void setColorBlendFactor​(double v)
    • getColor

      public UIColor getColor()
    • setColor

      public void setColor​(UIColor v)
    • getBlendMode

      public SKBlendMode getBlendMode()
    • setBlendMode

      public void setBlendMode​(SKBlendMode v)
    • getAnchorPoint

      public CGPoint getAnchorPoint()
    • setAnchorPoint

      public void setAnchorPoint​(CGPoint v)
    • getShader

      public SKShader getShader()
    • setShader

      public void setShader​(SKShader v)
    • getAttributeValues

      public NSDictionary<NSString,​SKAttributeValue> getAttributeValues()
      Overrides:
      getAttributeValues in class SKNode
      Since:
      Available in iOS 10.0 and later.
    • setAttributeValues

      public void setAttributeValues​(NSDictionary<NSString,​SKAttributeValue> v)
      Overrides:
      setAttributeValues in class SKNode
      Since:
      Available in iOS 10.0 and later.
    • getLightingBitMask

      public int getLightingBitMask()
    • setLightingBitMask

      public void setLightingBitMask​(int v)
    • isEnableAutomapping

      public boolean isEnableAutomapping()
    • setEnableAutomapping

      public void setEnableAutomapping​(boolean v)
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • init

      protected long init​(SKTileSet tileSet, long columns, long rows, CGSize tileSize)
    • init

      protected long init​(SKTileSet tileSet, long columns, long rows, CGSize tileSize, SKTileGroup tileGroup)
    • init

      protected long init​(SKTileSet tileSet, long columns, long rows, CGSize tileSize, NSArray<SKTileGroup> tileGroupLayout)
    • valueForAttributeNamed

      public SKAttributeValue valueForAttributeNamed​(String key)
      Overrides:
      valueForAttributeNamed in class SKNode
      Since:
      Available in iOS 10.0 and later.
    • setValue

      public void setValue​(SKAttributeValue value, String key)
      Overrides:
      setValue in class SKNode
      Since:
      Available in iOS 10.0 and later.
    • fill

      public void fill​(SKTileGroup tileGroup)
    • getTileDefinition

      public SKTileDefinition getTileDefinition​(long column, long row)
    • getTileGroup

      public SKTileGroup getTileGroup​(long column, long row)
    • setTileGroup

      public void setTileGroup​(SKTileGroup tileGroup, long column, long row)
    • setTileGroup

      public void setTileGroup​(SKTileGroup tileGroup, SKTileDefinition tileDefinition, long column, long row)
    • tileColumnIndexFromPosition

      public long tileColumnIndexFromPosition​(CGPoint position)
    • tileRowIndexFromPosition

      public long tileRowIndexFromPosition​(CGPoint position)
    • getCenterOfTile

      public CGPoint getCenterOfTile​(long column, long row)