Stanek's Gift API.
Signature:
interface Stanek
Method | Description |
---|---|
activeFragments() | List of fragments in Stanek's Gift. |
canPlaceFragment(rootX, rootY, rotation, fragmentId) | Check if fragment can be placed at specified location. |
chargeFragment(rootX, rootY) | Charge a fragment, increasing its power. |
clearGift() | Clear the board of all fragments. |
fragmentDefinitions() | List possible fragments. |
getFragment(rootX, rootY) | Get placed fragment at location. |
giftHeight() | Stanek's Gift height. |
giftWidth() | Stanek's Gift width. |
placeFragment(rootX, rootY, rotation, fragmentId) | Place fragment on Stanek's Gift. |
removeFragment(rootX, rootY) | Remove fragment at location. |