123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626 |
- {
- "types": {
- "__pGridNode": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "position",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- }
- ],
- "__pleft": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- }
- ],
- "__pbottom": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- }
- ],
- "__ptop": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- }
- ],
- "__pright": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- }
- ],
- "__pPacman": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "name",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- },
- {
- "name": "position",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- }
- ],
- "__pPositionable": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "position",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- }
- ],
- "__pGhost": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "type",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- },
- {
- "name": "position",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- }
- ],
- "__pScoreboard": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "score",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- }
- ],
- "__pFood": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- },
- {
- "name": "points",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- },
- {
- "name": "position",
- "type": "code",
- "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
- }
- ],
- "__pPoG": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- }
- ],
- "__pGoG": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- }
- ],
- "__pFoG": [
- {
- "name": "__pLabel",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotIn",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pPivotOut",
- "type": "string",
- "default": ""
- },
- {
- "name": "__pMatchSubtypes",
- "type": "boolean",
- "default": false
- }
- ]
- },
- "constraints": [
- {
- "name": "noAbstractInstances",
- "event": "pre-create",
- "code": "/* comment next line to enable this constraint */\nthrow \"IgnoredConstraint\"\nfalse",
- "targetType": "Positionable"
- }
- ],
- "actions": [
- {
- "name": "snapToTarget",
- "event": "post-connect",
- "code": "/* comment next line to enable this action */\nthrow \"IgnoredConstraint\"\n/*newline*/var neighborLinks = getNeighbors('>'),/*newline*/ neighborLink = neighborLinks[neighborLinks.length-1];/*newline*/if( neighborLink )/*newline*/{/*newline*/ if( getAttr('$type', neighborLink).match(/left/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0] - 100, npos[1]]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/right/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0] + 100, npos[1]]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/top/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0], npos[1] - 100]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/bottom/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0], npos[1] + 100]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/(P|G)oG/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ gpos = getAttr('position');/*newline*/ setAttr('position', [gpos[0] + 26, gpos[1] + 26], neighbor);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/FoG/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ gpos = getAttr('position');/*newline*/ setAttr('position', [gpos[0] + 70, gpos[1] + 43], neighbor);/*newline*/ }/*newline*/ else/*newline*/ {/*newline*/ print('Invalid grid node link');/*newline*/ }/*newline*/}",
- "targetType": "__pGridNode"
- },
- {
- "name": "snapToTarget",
- "event": "post-connect",
- "code": "/* comment next line to enable this action */\nthrow \"IgnoredConstraint\"\n/*newline*/var neighborLinks = getNeighbors('>'),/*newline*/ neighborLink = neighborLinks[neighborLinks.length-1];/*newline*/if( neighborLink )/*newline*/{/*newline*/ if( getAttr('$type', neighborLink).match(/left/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0] - 100, npos[1]]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/right/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0] + 100, npos[1]]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/top/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0], npos[1] - 100]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/bottom/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0], npos[1] + 100]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/(P|G)oG/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ gpos = getAttr('position');/*newline*/ setAttr('position', [gpos[0] + 26, gpos[1] + 26], neighbor);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/FoG/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ gpos = getAttr('position');/*newline*/ setAttr('position', [gpos[0] + 70, gpos[1] + 43], neighbor);/*newline*/ }/*newline*/ else/*newline*/ {/*newline*/ print('Invalid grid node link');/*newline*/ }/*newline*/}",
- "targetType": "__pPacman"
- },
- {
- "name": "snapToTarget",
- "event": "post-connect",
- "code": "/* comment next line to enable this action */\nthrow \"IgnoredConstraint\"\n/*newline*/var neighborLinks = getNeighbors('>'),/*newline*/ neighborLink = neighborLinks[neighborLinks.length-1];/*newline*/if( neighborLink )/*newline*/{/*newline*/ if( getAttr('$type', neighborLink).match(/left/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0] - 100, npos[1]]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/right/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0] + 100, npos[1]]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/top/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0], npos[1] - 100]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/bottom/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0], npos[1] + 100]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/(P|G)oG/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ gpos = getAttr('position');/*newline*/ setAttr('position', [gpos[0] + 26, gpos[1] + 26], neighbor);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/FoG/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ gpos = getAttr('position');/*newline*/ setAttr('position', [gpos[0] + 70, gpos[1] + 43], neighbor);/*newline*/ }/*newline*/ else/*newline*/ {/*newline*/ print('Invalid grid node link');/*newline*/ }/*newline*/}",
- "targetType": "__pPositionable"
- },
- {
- "name": "snapToTarget",
- "event": "post-connect",
- "code": "/* comment next line to enable this action */\nthrow \"IgnoredConstraint\"\n/*newline*/var neighborLinks = getNeighbors('>'),/*newline*/ neighborLink = neighborLinks[neighborLinks.length-1];/*newline*/if( neighborLink )/*newline*/{/*newline*/ if( getAttr('$type', neighborLink).match(/left/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0] - 100, npos[1]]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/right/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0] + 100, npos[1]]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/top/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0], npos[1] - 100]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/bottom/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0], npos[1] + 100]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/(P|G)oG/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ gpos = getAttr('position');/*newline*/ setAttr('position', [gpos[0] + 26, gpos[1] + 26], neighbor);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/FoG/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ gpos = getAttr('position');/*newline*/ setAttr('position', [gpos[0] + 70, gpos[1] + 43], neighbor);/*newline*/ }/*newline*/ else/*newline*/ {/*newline*/ print('Invalid grid node link');/*newline*/ }/*newline*/}",
- "targetType": "__pGhost"
- },
- {
- "name": "snapToTarget",
- "event": "post-connect",
- "code": "/* comment next line to enable this action */\nthrow \"IgnoredConstraint\"\n/*newline*/var neighborLinks = getNeighbors('>'),/*newline*/ neighborLink = neighborLinks[neighborLinks.length-1];/*newline*/if( neighborLink )/*newline*/{/*newline*/ if( getAttr('$type', neighborLink).match(/left/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0] - 100, npos[1]]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/right/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0] + 100, npos[1]]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/top/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0], npos[1] - 100]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/bottom/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ npos = getAttr('position',neighbor);/*newline*/ setAttr('position', [npos[0], npos[1] + 100]);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/(P|G)oG/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ gpos = getAttr('position');/*newline*/ setAttr('position', [gpos[0] + 26, gpos[1] + 26], neighbor);/*newline*/ }/*newline*/ else if( getAttr('$type', neighborLink).match(/FoG/) )/*newline*/ {/*newline*/ var neighbor = getNeighbors('>','*',neighborLink)[0],/*newline*/ gpos = getAttr('position');/*newline*/ setAttr('position', [gpos[0] + 70, gpos[1] + 43], neighbor);/*newline*/ }/*newline*/ else/*newline*/ {/*newline*/ print('Invalid grid node link');/*newline*/ }/*newline*/}",
- "targetType": "__pFood"
- },
- {
- "name": "distinctPLabels",
- "event": "post-create",
- "code": "if( getAttr(\"__pLabel\") == \"\" )\n{\n\tvar pLabels = getAllNodes().\n\t\t\t\t\t\t\tfilter( function(n) {return hasAttr(\"__pLabel\",n);} ).\n\t\t\t\t\t\t\t\tmap( function(n) {return getAttr(\"__pLabel\",n);} ),\n\t\t i\t\t\t= \"0\";\n\n\twhile( _utils.contains(pLabels,i) )\n\t\ti = String(parseInt(i)+1);\n\tsetAttr(\"__pLabel\",i);\n}",
- "targetType": "*"
- }
- ],
- "cardinalities": {
- "__pGridNode": [
- {
- "dir": "out",
- "type": "__pleft",
- "min": 0,
- "max": "Infinity"
- },
- {
- "dir": "in",
- "type": "__pleft",
- "min": 0,
- "max": "Infinity"
- },
- {
- "dir": "out",
- "type": "__pbottom",
- "min": 0,
- "max": "Infinity"
- },
- {
- "dir": "in",
- "type": "__pbottom",
- "min": 0,
- "max": "Infinity"
- },
- {
- "dir": "out",
- "type": "__ptop",
- "min": 0,
- "max": "Infinity"
- },
- {
- "dir": "in",
- "type": "__ptop",
- "min": 0,
- "max": "Infinity"
- },
- {
- "dir": "out",
- "type": "__pright",
- "min": 0,
- "max": "Infinity"
- },
- {
- "dir": "in",
- "type": "__pright",
- "min": 0,
- "max": "Infinity"
- },
- {
- "dir": "out",
- "type": "__pPoG",
- "min": 0,
- "max": "Infinity"
- },
- {
- "dir": "out",
- "type": "__pGoG",
- "min": 0,
- "max": "Infinity"
- },
- {
- "dir": "out",
- "type": "__pFoG",
- "min": 0,
- "max": "Infinity"
- }
- ],
- "__pleft": [
- {
- "dir": "in",
- "type": "__pGridNode",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "out",
- "type": "__pGridNode",
- "min": 0,
- "max": "1"
- }
- ],
- "__pbottom": [
- {
- "dir": "in",
- "type": "__pGridNode",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "out",
- "type": "__pGridNode",
- "min": 0,
- "max": "1"
- }
- ],
- "__ptop": [
- {
- "dir": "in",
- "type": "__pGridNode",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "out",
- "type": "__pGridNode",
- "min": 0,
- "max": "1"
- }
- ],
- "__pright": [
- {
- "dir": "in",
- "type": "__pGridNode",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "out",
- "type": "__pGridNode",
- "min": 0,
- "max": "1"
- }
- ],
- "__pPacman": [
- {
- "dir": "in",
- "type": "__pPoG",
- "min": 0,
- "max": "Infinity"
- }
- ],
- "__pPositionable": [],
- "__pGhost": [
- {
- "dir": "in",
- "type": "__pGoG",
- "min": 0,
- "max": "Infinity"
- }
- ],
- "__pScoreboard": [],
- "__pFood": [
- {
- "dir": "in",
- "type": "__pFoG",
- "min": 0,
- "max": "Infinity"
- }
- ],
- "__pPoG": [
- {
- "dir": "in",
- "type": "__pGridNode",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "out",
- "type": "__pPacman",
- "min": 0,
- "max": "1"
- }
- ],
- "__pGoG": [
- {
- "dir": "in",
- "type": "__pGridNode",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "out",
- "type": "__pGhost",
- "min": 0,
- "max": "1"
- }
- ],
- "__pFoG": [
- {
- "dir": "in",
- "type": "__pGridNode",
- "min": 0,
- "max": "1"
- },
- {
- "dir": "out",
- "type": "__pFood",
- "min": 0,
- "max": "1"
- }
- ]
- },
- "legalConnections": {
- "__pGridNode": {
- "__pGridNode": [
- "__pleft",
- "__pbottom",
- "__ptop",
- "__pright"
- ],
- "__pPacman": [
- "__pPoG"
- ],
- "__pGhost": [
- "__pGoG"
- ],
- "__pFood": [
- "__pFoG"
- ]
- }
- },
- "connectorTypes": {
- "__pleft": "visual",
- "__pbottom": "visual",
- "__ptop": "visual",
- "__pright": "visual",
- "__pPoG": "containment",
- "__pGoG": "containment",
- "__pFoG": "containment"
- },
- "types2parentTypes": {
- "__pGridNode": [
- "__pPositionable"
- ],
- "__pleft": [],
- "__pbottom": [],
- "__ptop": [],
- "__pright": [],
- "__pPacman": [
- "__pPositionable"
- ],
- "__pPositionable": [],
- "__pGhost": [
- "__pPositionable"
- ],
- "__pScoreboard": [],
- "__pFood": [
- "__pPositionable"
- ],
- "__pPoG": [],
- "__pGoG": [],
- "__pFoG": []
- }
- }
|