LHNodeProtocol Protocol Reference

LHNodeProtocol.h

Instance Methods

childNodeWithUUID:

- (SKNode<LHNodeProtocol> *)childNodeWithUUID:(NSString *)uuid
Parameters
uuid

The unique idenfier of the node.

Return Value

A node or or nil.

Discussion

Returns a node with the specified unique identifier or nil if that node is not found in the children hierarchy.

Declared In
LHNodeProtocol.h

childrenOfType:

- (NSMutableArray *)childrenOfType:(Class)type
Parameters
type

A "Class" type.

Return Value

An array with all the found nodes of the specified class.

Discussion

Returns all children nodes that are of specified class type.

Declared In
LHNodeProtocol.h

childrenWithTags:containsAny:

- (NSMutableArray *)childrenWithTags:(NSArray *)tagValues containsAny:(BOOL)any
Parameters
tagValues

An array containing tag names. Array of NSString's.

any

Specify if all or just one tag value of the node needs to be in common with the passed ones.

Return Value

An array of nodes.

Discussion

Returns all children nodes that have the specified tag values.

Declared In
LHNodeProtocol.h

lhAnchor

- (CGPoint)lhAnchor
Discussion

Some SpriteKit nodes like SKNode do not have an anchor. This method returns the anchor as defined in LevelHelper.

Declared In
LHNodeProtocol.h

lhContentSize

- (CGSize)lhContentSize
Discussion

Some SpriteKit nodes like SKNode do not have a size. This method returns the anchor as defined in LevelHelper.

Declared In
LHNodeProtocol.h

name

- (NSString *)name
Discussion

Returns the unique name of the node.

Declared In
LHNodeProtocol.h

scene

- (LHScene *)scene
Discussion

Returns the scene to which this node belongs to.

Declared In
LHNodeProtocol.h

tags

- (NSArray *)tags
Discussion

Returns all tag values of the node.

Declared In
LHNodeProtocol.h

userProperty

- (id<LHUserPropertyProtocol>)userProperty
Discussion

Returns the user property object assigned to this object or nil.

Declared In
LHNodeProtocol.h

uuid

- (NSString *)uuid
Discussion

Returns the unique identifier of the node.

Declared In
LHNodeProtocol.h
Last updated: 2015-2-12

Back to top

Copyright © VLADU BOGDAN DANIEL PFA.