🍄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
Was this helpful?