Stanek's Gift API.
Signature:
interface Stanek
Method | Description |
---|---|
activeFragments() | List of fragments in Stanek's Gift. |
canPlace(rootX, rootY, rotation, fragmentId) | Check if fragment can be placed at specified location. |
charge(rootX, rootY) | Charge a fragment, increasing it's power. |
clear() | Clear the board of all fragments. |
fragmentDefinitions() | List possible fragments. |
get(rootX, rootY) | Get placed fragment at location. |
height() | Stanek's Gift height. |
place(rootX, rootY, rotation, fragmentId) | Place fragment on Stanek's Gift. |
remove(rootX, rootY) | Remove fragment at location. |
width() | Stanek's Gift width. |