「関数・変数」の記事一覧
toggleSwitch
1 2 3 |
Instructs the character to toggle a switch on the current tile. Declaration func toggleSwitch() |
isOnOpenSwitch
1 2 3 |
Condition that checks if the character is on a tile with an open switch on it. Declaration var isOnOpenSwitch: Bool { get } |
isOnGem
1 2 3 |
Condition that checks if the character is on a tile with a gem on it. Declaration var isOnGem: Bool { get } |
isOnClosedSwitch
1 2 3 |
Condition that checks if the character is on a tile with a closed switch on it. Declaration var isOnClosedSwitch: Bool { get } |
isBlocked
1 2 3 |
Condition that checks if the character is blocked from moving forward in the current direction. Declaration var isBlocked: Bool { get } |
collectGem()
1 2 3 |
Instructs the character to collect a gem on the current tile. Declaration func collectGem() |