| 45 | // HAND // |
| 46 | //======// |
| 47 | export const makeHand = (colours) => ({ |
| 48 | state: HAND_STATE.START, |
| 49 | cursor: HAND_STATE.START.cursor, |
| 50 | colour: colours[GREEN], |
| 51 | hidden: false, |
| 52 | |
| 53 | // What is the hand holding? |
| 54 | pick: undefined, |
| 55 | selectedAddress: undefined, |
| 56 | |
| 57 | // Where is the hand coming from? |
| 58 | handStart: [undefined, undefined], |
| 59 | pickStart: [undefined, undefined], |
| 60 | startAddressedScreen: undefined, |
| 61 | startDrawnParent: undefined, |
| 62 | hasChangedParent: false, |
| 63 | }); |
| 64 | |
| 65 | const HAND_STATE = {}; |
| 66 | export const fireHandEvent = (context, hand, eventName, args = {}) => { |