Class SKTileSet

  • All Implemented Interfaces:
    NSCoding, NSCopying, NSSecureCoding, NSObject

    public class SKTileSet
    extends NSObject
    implements NSCopying, NSSecureCoding
    A tile set contains all of the tile definitions that are available for use in a tile map. In addition, it also contains tile groups, which define collections of related tile definitions and the rules that govern their placement.
    • Constructor Detail

      • SKTileSet

        protected SKTileSet​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • tileSetFromURL

        public static SKTileSet tileSetFromURL​(NSURL url)
        Creates a tile set from the specified tile set file. Returns nil if the URL doesn't point to a valid tile set file.
        Parameters:
        url - the URL of the tile set file
      • tileSetNamed

        public static SKTileSet tileSetNamed​(java.lang.String name)
        Gets the tile set with the specified name from the SpriteKit resource bundle. Returns nil if a tile set with a matching name cannot be found.
        Parameters:
        name - the name of the tile set to search for
      • tileSetWithTileGroups

        public static SKTileSet tileSetWithTileGroups​(NSArray<? extends SKTileGroup> tileGroups)
        Create a tile set with the specified tile groups.
        Parameters:
        tileGroups - the tile groups that will be available for use with this set
      • tileSetWithTileGroupsTileSetType

        public static SKTileSet tileSetWithTileGroupsTileSetType​(NSArray<? extends SKTileGroup> tileGroups,
                                                                 long tileSetType)
        Create a tile set with the specified tile groups and tile set type.
        Parameters:
        tileGroups - the tile groups that will be available for use with this set
        tileSetType - the type of tile set this will be
      • version_static

        public static long version_static()
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • defaultTileGroup

        public SKTileGroup defaultTileGroup()
      • defaultTileSize

        public CGSize defaultTileSize()
        The default tile size is the value an SKTileMapNode will use for it's tiles when the tile set is assigned to it.
      • initWithTileGroups

        public SKTileSet initWithTileGroups​(NSArray<? extends SKTileGroup> tileGroups)
        Initilize a tile set with the specified tile groups.
        Parameters:
        tileGroups - the tile groups that will be available for use with this set
      • initWithTileGroupsTileSetType

        public SKTileSet initWithTileGroupsTileSetType​(NSArray<? extends SKTileGroup> tileGroups,
                                                       long tileSetType)
        Initilize a tile set with the specified tile groups and tile set type.
        Parameters:
        tileGroups - the tile groups that will be available for use with this set
        tileSetType - the type of tile set this will be
      • name

        public java.lang.String name()
        Client-assignable name for the tile set. Defaults to nil.
      • setDefaultTileGroup

        public void setDefaultTileGroup​(SKTileGroup value)
      • setDefaultTileSize

        public void setDefaultTileSize​(CGSize value)
        The default tile size is the value an SKTileMapNode will use for it's tiles when the tile set is assigned to it.
      • setName

        public void setName​(java.lang.String value)
        Client-assignable name for the tile set. Defaults to nil.
      • setTileGroups

        public void setTileGroups​(NSArray<? extends SKTileGroup> value)
        The tile groups that this set provides for use.
      • setType

        public void setType​(long value)
        The tile set type specifies how the tiles in the set will be arranged when placed in a tile map. Defaults to SKTileSetTypeGrid.
      • tileGroups

        public NSArray<? extends SKTileGroup> tileGroups()
        The tile groups that this set provides for use.
      • type

        public long type()
        The tile set type specifies how the tiles in the set will be arranged when placed in a tile map. Defaults to SKTileSetTypeGrid.
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding