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.
    • Constructor Detail

      • SKTileGroup

        protected SKTileGroup​(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()
      • emptyTileGroup

        public static java.lang.Object 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

        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()
      • tileGroupWithRules

        public static SKTileGroup tileGroupWithRules​(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​(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

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

        public SKTileGroup initWithRules​(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​(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

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

        public 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​(java.lang.String value)
        Client-assignable name for the tile group. Defaults to nil.
      • setRules

        public void setRules​(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