๐Ÿ„Actor

ๅƒ็œ‹๏ผšๅž‹ๅˆฅ็นผๆ‰ฟๅœ–

Declaration

public class Actor: Item, NodeConstructible

โ†–๏ธcomforms to๏ผš๐Ÿ…ฟ๏ธ Item, ๐Ÿ…ฟ๏ธ NodeConstructible (internal)

๐ŸšฉDesignated Initializer โ†ฉ๏ธ Return Type

init

ๆ–นๆณ•

ๅƒๆ•ธ

ๅž‹ๅˆฅ

้ ่จญๅ€ผ

่ชชๆ˜Ž

init(name:) ๐Ÿšฉ

name

CharacterName?

nil

If you leave out name, the saved character will be used.

init?(node: ) ๐Ÿšฉ

node

SCNNode

instance properties

ๅฑฌๆ€ง

ๅž‹ๅˆฅ

่ชชๆ˜Ž

isBlocked๐ŸŒ€

Bool

isBlockedLeft๐ŸŒ€

Bool

isBlockedRight๐ŸŒ€

Bool

isOnGem๐ŸŒ€

Bool

isOnOpenSwitch๐ŸŒ€

Bool

isOnClosedSwitch๐ŸŒ€

Bool

instance methods

ๆ–นๆณ•

ๅƒๆ•ธ

ๅž‹ๅˆฅ

โ†ฉ๏ธ ๅ‚ณๅ›ž

่ชชๆ˜Ž

jump()

Coordinate

ๅพ€ๅ‰่ทณไธ€ๆ ผ

move(distance:) ๐ŸŒ€

distance

Int

Coordinate

ๅพ€ๅ‰่ตฐ n ๆ ผ

moveForward()๐ŸŒ€

turnLeft()๐ŸŒ€

turnRight()๐ŸŒ€

collectGem()๐ŸŒ€

toggleSwitch()๐ŸŒ€

isOnItem(ofType:) ๐ŸŒ€๐ŸŽฉ

type

Node.Type

Bool

danceLikeNoOneIsWatching()๐ŸŒ€

turnUp()๐ŸŒ€

่ฎŠๅพ—็ฒพๅŠ›ๅ……ๆฒ›

breakItDown()๐ŸŒ€

่ฎŠๅพ—ๆœ‰็ฏ€ๅฅๆ„Ÿ

grumbleGrumble()๐ŸŒ€

็ขŽ็ขŽๅ”ธ

argh()๐ŸŒ€

ๆœ‰้ปžๆƒฑๆ€’ (ๆ“ฌ่ฒๅญ—)

headScratch()๐ŸŒ€

bumpIntoWall()๐ŸŒ€

Last updated