public class SKScene extends SKEffectNode implements GKSceneRootNodeType
SKViewSKNode.Block_enumerateChildNodesWithNameUsingBlock, SKNode.Block_runActionCompletionNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retUIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler| Modifier | Constructor and Description |
|---|---|
protected |
SKScene(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static SKScene |
alloc() |
static SKScene |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
CGPoint |
anchorPoint()
Used to choose the origin of the scene's coordinate system
|
AVAudioEngine |
audioEngine() |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
UIColor |
backgroundColor()
Background color, defaults to gray
|
SKCameraNode |
camera()
The camera that is used to obtain the view scale and translation based on where the camera is in relation to the scene.
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static void |
clearTextInputContextIdentifier(java.lang.String identifier) |
CGPoint |
convertPointFromView(CGPoint point) |
CGPoint |
convertPointToView(CGPoint point) |
static java.lang.String |
debugDescription_static() |
SKSceneDelegate |
delegate() |
static java.lang.String |
description_static() |
void |
didApplyConstraints()
Override this to perform game logic.
|
void |
didChangeSize(CGSize oldSize) |
void |
didEvaluateActions()
Override this to perform game logic.
|
void |
didFinishUpdate()
Override this to perform game logic.
|
void |
didMoveToView(SKView view) |
void |
didSimulatePhysics()
Override this to perform game logic.
|
static long |
hash_static() |
SKScene |
init() |
SKScene |
initWithCoder(NSCoder aDecoder)
NS_DESIGNATED_INITIALIZER
|
SKScene |
initWithSize(CGSize size)
A scene is infinitely large, but it has a viewport that is the frame through which you present the content of the scene.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
SKNode |
listener()
The node that is currently the listener for positional audio coming from SKAudioNodes
|
static SKScene |
new_objc() |
static SKScene |
node() |
static SKScene |
nodeWithFileNamed(java.lang.String filename) |
static SKScene |
nodeWithFileNamedSecurelyWithClassesAndError(java.lang.String filename,
NSSet<? extends org.moe.natj.objc.Class> classes,
org.moe.natj.general.ptr.Ptr<NSError> error) |
static NSArray<? extends GKPolygonObstacle> |
obstaclesFromNodeBounds(NSArray<? extends SKNode> nodes) |
static NSArray<? extends GKPolygonObstacle> |
obstaclesFromNodePhysicsBodies(NSArray<? extends SKNode> nodes) |
static NSArray<? extends GKPolygonObstacle> |
obstaclesFromSpriteTexturesAccuracy(NSArray<? extends SKNode> sprites,
float accuracy) |
SKPhysicsWorld |
physicsWorld()
Physics simulation functionality
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
long |
scaleMode()
Used to determine how to scale the scene to match the SKView it is being displayed in.
|
void |
sceneDidLoad()
This is called once after the scene has been initialized or decoded,
this is the recommended place to perform one-time setup
|
static SKScene |
sceneWithSize(CGSize size) |
void |
setAnchorPoint(CGPoint value)
Used to choose the origin of the scene's coordinate system
|
void |
setBackgroundColor(UIColor value)
Background color, defaults to gray
|
void |
setCamera_unsafe(SKCameraNode value)
The camera that is used to obtain the view scale and translation based on where the camera is in relation to the scene.
|
void |
setCamera(SKCameraNode value)
The camera that is used to obtain the view scale and translation based on where the camera is in relation to the scene.
|
void |
setDelegate_unsafe(SKSceneDelegate value) |
void |
setDelegate(SKSceneDelegate value) |
void |
setListener_unsafe(SKNode value)
The node that is currently the listener for positional audio coming from SKAudioNodes
|
void |
setListener(SKNode value)
The node that is currently the listener for positional audio coming from SKAudioNodes
|
void |
setScaleMode(long value)
Used to determine how to scale the scene to match the SKView it is being displayed in.
|
void |
setSize(CGSize value) |
static void |
setVersion_static(long aVersion) |
CGSize |
size() |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
void |
update(double currentTime)
Override this to perform per-frame game logic.
|
static long |
version_static() |
SKView |
view()
The SKView this scene is currently presented in, or nil if it is not being presented.
|
void |
willMoveFromView(SKView view) |
attributeValues, blendMode, filter, setAttributeValues, setBlendMode, setFilter, setShader, setShouldCenterFilter, setShouldEnableEffects, setShouldRasterize, setSubdivisionLevels, setValueForAttributeNamed, setWarpGeometry, shader, shouldCenterFilter, shouldEnableEffects, shouldRasterize, subdivisionLevels, valueForAttributeNamed, warpGeometryactionForKey, addChild, alpha, calculateAccumulatedFrame, canBecomeFocused, childNodeWithName, children, constraints, containsPoint, convertPointFromNode, convertPointToNode, copyWithZone, didHintFocusMovement, didUpdateFocusInContextWithAnimationCoordinator, encodeWithCoder, entity, enumerateChildNodesWithNameUsingBlock, focusBehavior, focusEffect, focusGroupIdentifier, focusGroupPriority, focusItemContainer, frame, hasActions, inParentHierarchy, insertChildAtIndex, intersectsNode, isEqualToNode, isHidden, isPaused, isTransparentFocusItem, isUserInteractionEnabled, moveToParent, name, nodeAtPoint, nodesAtPoint, objectForKeyedSubscript, parent, parentFocusEnvironment, physicsBody, position, preferredFocusedView, preferredFocusEnvironments, reachConstraints, removeActionForKey, removeAllActions, removeAllChildren, removeChildrenInArray, removeFromParent, runAction, runActionCompletion, runActionWithKey, scene, setAlpha, setConstraints, setEntity_unsafe, setEntity, setFocusBehavior, setHidden, setName, setNeedsFocusUpdate, setPaused, setPhysicsBody, setPosition, setReachConstraints, setScale, setSpeed, setUserData, setUserInteractionEnabled, setXScale, setYScale, setZPosition, setZRotation, shouldUpdateFocusInContext, speed, updateFocusIfNeeded, userData, xScale, yScale, zPosition, zRotationactivityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommandaccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static SKScene alloc()
public static SKScene allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static void clearTextInputContextIdentifier(java.lang.String identifier)
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static SKScene new_objc()
public static SKScene node()
public static SKScene nodeWithFileNamed(java.lang.String filename)
public static NSArray<? extends GKPolygonObstacle> obstaclesFromNodeBounds(NSArray<? extends SKNode> nodes)
public static NSArray<? extends GKPolygonObstacle> obstaclesFromNodePhysicsBodies(NSArray<? extends SKNode> nodes)
public static NSArray<? extends GKPolygonObstacle> obstaclesFromSpriteTexturesAccuracy(NSArray<? extends SKNode> sprites, float accuracy)
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public CGPoint anchorPoint()
public AVAudioEngine audioEngine()
public UIColor backgroundColor()
public SKCameraNode camera()
public SKSceneDelegate delegate()
public void didApplyConstraints()
public void didChangeSize(CGSize oldSize)
public void didEvaluateActions()
public void didFinishUpdate()
No futher update logic will be applied to the scene after this call. Any values set on nodes here will be used when the scene is rendered for the current frame.
public void didMoveToView(SKView view)
public void didSimulatePhysics()
public SKScene init()
init in class SKEffectNodepublic SKScene initWithCoder(NSCoder aDecoder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class SKEffectNodepublic SKScene initWithSize(CGSize size)
size - a size in points that signifies the viewport into the scene that defines your framing of the scene.public SKNode listener()
SKAudioNodepublic SKPhysicsWorld physicsWorld()
public long scaleMode()
public void sceneDidLoad()
public void setAnchorPoint(CGPoint value)
public void setBackgroundColor(UIColor value)
public void setCamera_unsafe(SKCameraNode value)
public void setCamera(SKCameraNode value)
public void setDelegate_unsafe(SKSceneDelegate value)
public void setDelegate(SKSceneDelegate value)
public void setListener_unsafe(SKNode value)
SKAudioNodepublic void setListener(SKNode value)
SKAudioNodepublic void setScaleMode(long value)
public void setSize(CGSize value)
public CGSize size()
public void update(double currentTime)
currentTime - the current time in the app. This must be monotonically increasing.public SKView view()
public void willMoveFromView(SKView view)
public static SKScene nodeWithFileNamedSecurelyWithClassesAndError(java.lang.String filename, NSSet<? extends org.moe.natj.objc.Class> classes, org.moe.natj.general.ptr.Ptr<NSError> error)
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding_supportsSecureCoding in class SKEffectNode