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. API-Since: 10.0
    • Constructor Detail

      • SKTileSet

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

        @NotNull
        public static @NotNull 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

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

        public static SKTileSet 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​(@NotNull
                                               @NotNull 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​(@NotNull
                                             @NotNull 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​(@NotNull
                                                      @NotNull 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​(@NotNull
                                                                 @NotNull 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

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

        @Nullable
        public @Nullable 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​(@NotNull
                                            @NotNull 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​(@NotNull
                                                       @NotNull 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

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

        public void setDefaultTileGroup​(@Nullable
                                        @Nullable 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​(@Nullable
                            @Nullable java.lang.String value)
        Client-assignable name for the tile set. Defaults to nil.
      • setTileGroups

        public void setTileGroups​(@NotNull
                                  @NotNull 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

        @NotNull
        public @NotNull 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
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.