Class SKTileGroup

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

    public class SKTileGroup
    extends NSObject
    implements NSCopying, NSSecureCoding
    A tile group encapsulates a collection of related tile definitions that are designed to be pieced together within a tile map. How those tiles are pieced together is governed by the set of rules. When a tile group is placed in a tile map, the map evaluates the rules to determine which tiles should be placed to achieve the desired outcome. API-Since: 10.0
    • Constructor Detail

      • SKTileGroup

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static SKTileGroup 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()
      • emptyTileGroup

        @NotNull
        public static @NotNull SKTileGroup emptyTileGroup()
        Create an empty tile group. Placing this in a tile map will erase the existing tile at that location.
      • 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)
      • 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()
      • tileGroupWithRules

        public static SKTileGroup tileGroupWithRules​(@NotNull
                                                     @NotNull NSArray<? extends SKTileGroupRule> rules)
        Create a tile group with the specified rules.
        Parameters:
        rules - the rules the group will use to determine tile placement
      • tileGroupWithTileDefinition

        public static SKTileGroup tileGroupWithTileDefinition​(@NotNull
                                                              @NotNull SKTileDefinition tileDefinition)
        Create a simple tile group for a single tile definition. This creates and initializes the SKTileGroupRule necessary to place the provided tile definition in a tile map.
        Parameters:
        tileDefinition - the tile definition we wish to place in a tile map
      • 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
      • initWithRules

        public SKTileGroup initWithRules​(@NotNull
                                         @NotNull NSArray<? extends SKTileGroupRule> rules)
        Initilize a tile group with the specified rules.
        Parameters:
        rules - the rules the group will use to determine tile placement
      • initWithTileDefinition

        public SKTileGroup initWithTileDefinition​(@NotNull
                                                  @NotNull SKTileDefinition tileDefinition)
        Initilize a simple tile group for a single tile definition. This creates and initializes the SKTileGroupRule necessary to place the provided tile definition in a tile map.
        Parameters:
        tileDefinition - tile definition we wish to place in a tile map
      • name

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

        @NotNull
        public @NotNull NSArray<? extends SKTileGroupRule> rules()
        The rules that govern which tiles are placed when this group is used, and where in the map they'll be placed.
      • setName

        public void setName​(@Nullable
                            @Nullable java.lang.String value)
        Client-assignable name for the tile group. Defaults to nil.
      • setRules

        public void setRules​(@NotNull
                             @NotNull NSArray<? extends SKTileGroupRule> value)
        The rules that govern which tiles are placed when this group is used, and where in the map they'll be placed.
      • 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.