Pacman.pattern.metamodel 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  1. {
  2. "types": {
  3. "__pGridNode": [
  4. {
  5. "name": "__pLabel",
  6. "type": "string",
  7. "default": ""
  8. },
  9. {
  10. "name": "__pPivotIn",
  11. "type": "string",
  12. "default": ""
  13. },
  14. {
  15. "name": "__pPivotOut",
  16. "type": "string",
  17. "default": ""
  18. },
  19. {
  20. "name": "__pMatchSubtypes",
  21. "type": "boolean",
  22. "default": false
  23. },
  24. {
  25. "name": "position",
  26. "type": "code",
  27. "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
  28. }
  29. ],
  30. "__pleft": [
  31. {
  32. "name": "__pLabel",
  33. "type": "string",
  34. "default": ""
  35. },
  36. {
  37. "name": "__pPivotIn",
  38. "type": "string",
  39. "default": ""
  40. },
  41. {
  42. "name": "__pPivotOut",
  43. "type": "string",
  44. "default": ""
  45. },
  46. {
  47. "name": "__pMatchSubtypes",
  48. "type": "boolean",
  49. "default": false
  50. }
  51. ],
  52. "__pbottom": [
  53. {
  54. "name": "__pLabel",
  55. "type": "string",
  56. "default": ""
  57. },
  58. {
  59. "name": "__pPivotIn",
  60. "type": "string",
  61. "default": ""
  62. },
  63. {
  64. "name": "__pPivotOut",
  65. "type": "string",
  66. "default": ""
  67. },
  68. {
  69. "name": "__pMatchSubtypes",
  70. "type": "boolean",
  71. "default": false
  72. }
  73. ],
  74. "__ptop": [
  75. {
  76. "name": "__pLabel",
  77. "type": "string",
  78. "default": ""
  79. },
  80. {
  81. "name": "__pPivotIn",
  82. "type": "string",
  83. "default": ""
  84. },
  85. {
  86. "name": "__pPivotOut",
  87. "type": "string",
  88. "default": ""
  89. },
  90. {
  91. "name": "__pMatchSubtypes",
  92. "type": "boolean",
  93. "default": false
  94. }
  95. ],
  96. "__pright": [
  97. {
  98. "name": "__pLabel",
  99. "type": "string",
  100. "default": ""
  101. },
  102. {
  103. "name": "__pPivotIn",
  104. "type": "string",
  105. "default": ""
  106. },
  107. {
  108. "name": "__pPivotOut",
  109. "type": "string",
  110. "default": ""
  111. },
  112. {
  113. "name": "__pMatchSubtypes",
  114. "type": "boolean",
  115. "default": false
  116. }
  117. ],
  118. "__pPacman": [
  119. {
  120. "name": "__pLabel",
  121. "type": "string",
  122. "default": ""
  123. },
  124. {
  125. "name": "__pPivotIn",
  126. "type": "string",
  127. "default": ""
  128. },
  129. {
  130. "name": "__pPivotOut",
  131. "type": "string",
  132. "default": ""
  133. },
  134. {
  135. "name": "__pMatchSubtypes",
  136. "type": "boolean",
  137. "default": false
  138. },
  139. {
  140. "name": "name",
  141. "type": "code",
  142. "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
  143. },
  144. {
  145. "name": "position",
  146. "type": "code",
  147. "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
  148. }
  149. ],
  150. "__pPositionable": [
  151. {
  152. "name": "__pLabel",
  153. "type": "string",
  154. "default": ""
  155. },
  156. {
  157. "name": "__pPivotIn",
  158. "type": "string",
  159. "default": ""
  160. },
  161. {
  162. "name": "__pPivotOut",
  163. "type": "string",
  164. "default": ""
  165. },
  166. {
  167. "name": "__pMatchSubtypes",
  168. "type": "boolean",
  169. "default": false
  170. },
  171. {
  172. "name": "position",
  173. "type": "code",
  174. "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
  175. }
  176. ],
  177. "__pGhost": [
  178. {
  179. "name": "__pLabel",
  180. "type": "string",
  181. "default": ""
  182. },
  183. {
  184. "name": "__pPivotIn",
  185. "type": "string",
  186. "default": ""
  187. },
  188. {
  189. "name": "__pPivotOut",
  190. "type": "string",
  191. "default": ""
  192. },
  193. {
  194. "name": "__pMatchSubtypes",
  195. "type": "boolean",
  196. "default": false
  197. },
  198. {
  199. "name": "type",
  200. "type": "code",
  201. "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
  202. },
  203. {
  204. "name": "position",
  205. "type": "code",
  206. "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
  207. }
  208. ],
  209. "__pScoreboard": [
  210. {
  211. "name": "__pLabel",
  212. "type": "string",
  213. "default": ""
  214. },
  215. {
  216. "name": "__pPivotIn",
  217. "type": "string",
  218. "default": ""
  219. },
  220. {
  221. "name": "__pPivotOut",
  222. "type": "string",
  223. "default": ""
  224. },
  225. {
  226. "name": "__pMatchSubtypes",
  227. "type": "boolean",
  228. "default": false
  229. },
  230. {
  231. "name": "score",
  232. "type": "code",
  233. "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
  234. }
  235. ],
  236. "__pFood": [
  237. {
  238. "name": "__pLabel",
  239. "type": "string",
  240. "default": ""
  241. },
  242. {
  243. "name": "__pPivotIn",
  244. "type": "string",
  245. "default": ""
  246. },
  247. {
  248. "name": "__pPivotOut",
  249. "type": "string",
  250. "default": ""
  251. },
  252. {
  253. "name": "__pMatchSubtypes",
  254. "type": "boolean",
  255. "default": false
  256. },
  257. {
  258. "name": "points",
  259. "type": "code",
  260. "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
  261. },
  262. {
  263. "name": "position",
  264. "type": "code",
  265. "default": "\"[PYTHON]\"\n\"Example:\t result = True\"\n\"Example:\t result = getAttr()\"\n\n\"[JAVASCRIPT]\"\n\"Example:\t true\"\n\"Example:\t getAttr()\""
  266. }
  267. ],
  268. "__pPoG": [
  269. {
  270. "name": "__pLabel",
  271. "type": "string",
  272. "default": ""
  273. },
  274. {
  275. "name": "__pPivotIn",
  276. "type": "string",
  277. "default": ""
  278. },
  279. {
  280. "name": "__pPivotOut",
  281. "type": "string",
  282. "default": ""
  283. },
  284. {
  285. "name": "__pMatchSubtypes",
  286. "type": "boolean",
  287. "default": false
  288. }
  289. ],
  290. "__pGoG": [
  291. {
  292. "name": "__pLabel",
  293. "type": "string",
  294. "default": ""
  295. },
  296. {
  297. "name": "__pPivotIn",
  298. "type": "string",
  299. "default": ""
  300. },
  301. {
  302. "name": "__pPivotOut",
  303. "type": "string",
  304. "default": ""
  305. },
  306. {
  307. "name": "__pMatchSubtypes",
  308. "type": "boolean",
  309. "default": false
  310. }
  311. ],
  312. "__pFoG": [
  313. {
  314. "name": "__pLabel",
  315. "type": "string",
  316. "default": ""
  317. },
  318. {
  319. "name": "__pPivotIn",
  320. "type": "string",
  321. "default": ""
  322. },
  323. {
  324. "name": "__pPivotOut",
  325. "type": "string",
  326. "default": ""
  327. },
  328. {
  329. "name": "__pMatchSubtypes",
  330. "type": "boolean",
  331. "default": false
  332. }
  333. ]
  334. },
  335. "constraints": [
  336. {
  337. "name": "noAbstractInstances",
  338. "event": "pre-create",
  339. "code": "/* comment next line to enable this constraint */\nthrow \"IgnoredConstraint\"\nfalse",
  340. "targetType": "Positionable"
  341. }
  342. ],
  343. "actions": [
  344. {
  345. "name": "snapToTarget",
  346. "event": "post-connect",
  347. "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*/}",
  348. "targetType": "__pGridNode"
  349. },
  350. {
  351. "name": "snapToTarget",
  352. "event": "post-connect",
  353. "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*/}",
  354. "targetType": "__pPacman"
  355. },
  356. {
  357. "name": "snapToTarget",
  358. "event": "post-connect",
  359. "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*/}",
  360. "targetType": "__pPositionable"
  361. },
  362. {
  363. "name": "snapToTarget",
  364. "event": "post-connect",
  365. "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*/}",
  366. "targetType": "__pGhost"
  367. },
  368. {
  369. "name": "snapToTarget",
  370. "event": "post-connect",
  371. "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*/}",
  372. "targetType": "__pFood"
  373. },
  374. {
  375. "name": "distinctPLabels",
  376. "event": "post-create",
  377. "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}",
  378. "targetType": "*"
  379. }
  380. ],
  381. "cardinalities": {
  382. "__pGridNode": [
  383. {
  384. "dir": "out",
  385. "type": "__pleft",
  386. "min": 0,
  387. "max": "Infinity"
  388. },
  389. {
  390. "dir": "in",
  391. "type": "__pleft",
  392. "min": 0,
  393. "max": "Infinity"
  394. },
  395. {
  396. "dir": "out",
  397. "type": "__pbottom",
  398. "min": 0,
  399. "max": "Infinity"
  400. },
  401. {
  402. "dir": "in",
  403. "type": "__pbottom",
  404. "min": 0,
  405. "max": "Infinity"
  406. },
  407. {
  408. "dir": "out",
  409. "type": "__ptop",
  410. "min": 0,
  411. "max": "Infinity"
  412. },
  413. {
  414. "dir": "in",
  415. "type": "__ptop",
  416. "min": 0,
  417. "max": "Infinity"
  418. },
  419. {
  420. "dir": "out",
  421. "type": "__pright",
  422. "min": 0,
  423. "max": "Infinity"
  424. },
  425. {
  426. "dir": "in",
  427. "type": "__pright",
  428. "min": 0,
  429. "max": "Infinity"
  430. },
  431. {
  432. "dir": "out",
  433. "type": "__pPoG",
  434. "min": 0,
  435. "max": "Infinity"
  436. },
  437. {
  438. "dir": "out",
  439. "type": "__pGoG",
  440. "min": 0,
  441. "max": "Infinity"
  442. },
  443. {
  444. "dir": "out",
  445. "type": "__pFoG",
  446. "min": 0,
  447. "max": "Infinity"
  448. }
  449. ],
  450. "__pleft": [
  451. {
  452. "dir": "in",
  453. "type": "__pGridNode",
  454. "min": 0,
  455. "max": "1"
  456. },
  457. {
  458. "dir": "out",
  459. "type": "__pGridNode",
  460. "min": 0,
  461. "max": "1"
  462. }
  463. ],
  464. "__pbottom": [
  465. {
  466. "dir": "in",
  467. "type": "__pGridNode",
  468. "min": 0,
  469. "max": "1"
  470. },
  471. {
  472. "dir": "out",
  473. "type": "__pGridNode",
  474. "min": 0,
  475. "max": "1"
  476. }
  477. ],
  478. "__ptop": [
  479. {
  480. "dir": "in",
  481. "type": "__pGridNode",
  482. "min": 0,
  483. "max": "1"
  484. },
  485. {
  486. "dir": "out",
  487. "type": "__pGridNode",
  488. "min": 0,
  489. "max": "1"
  490. }
  491. ],
  492. "__pright": [
  493. {
  494. "dir": "in",
  495. "type": "__pGridNode",
  496. "min": 0,
  497. "max": "1"
  498. },
  499. {
  500. "dir": "out",
  501. "type": "__pGridNode",
  502. "min": 0,
  503. "max": "1"
  504. }
  505. ],
  506. "__pPacman": [
  507. {
  508. "dir": "in",
  509. "type": "__pPoG",
  510. "min": 0,
  511. "max": "Infinity"
  512. }
  513. ],
  514. "__pPositionable": [],
  515. "__pGhost": [
  516. {
  517. "dir": "in",
  518. "type": "__pGoG",
  519. "min": 0,
  520. "max": "Infinity"
  521. }
  522. ],
  523. "__pScoreboard": [],
  524. "__pFood": [
  525. {
  526. "dir": "in",
  527. "type": "__pFoG",
  528. "min": 0,
  529. "max": "Infinity"
  530. }
  531. ],
  532. "__pPoG": [
  533. {
  534. "dir": "in",
  535. "type": "__pGridNode",
  536. "min": 0,
  537. "max": "1"
  538. },
  539. {
  540. "dir": "out",
  541. "type": "__pPacman",
  542. "min": 0,
  543. "max": "1"
  544. }
  545. ],
  546. "__pGoG": [
  547. {
  548. "dir": "in",
  549. "type": "__pGridNode",
  550. "min": 0,
  551. "max": "1"
  552. },
  553. {
  554. "dir": "out",
  555. "type": "__pGhost",
  556. "min": 0,
  557. "max": "1"
  558. }
  559. ],
  560. "__pFoG": [
  561. {
  562. "dir": "in",
  563. "type": "__pGridNode",
  564. "min": 0,
  565. "max": "1"
  566. },
  567. {
  568. "dir": "out",
  569. "type": "__pFood",
  570. "min": 0,
  571. "max": "1"
  572. }
  573. ]
  574. },
  575. "legalConnections": {
  576. "__pGridNode": {
  577. "__pGridNode": [
  578. "__pleft",
  579. "__pbottom",
  580. "__ptop",
  581. "__pright"
  582. ],
  583. "__pPacman": [
  584. "__pPoG"
  585. ],
  586. "__pGhost": [
  587. "__pGoG"
  588. ],
  589. "__pFood": [
  590. "__pFoG"
  591. ]
  592. }
  593. },
  594. "connectorTypes": {
  595. "__pleft": "visual",
  596. "__pbottom": "visual",
  597. "__ptop": "visual",
  598. "__pright": "visual",
  599. "__pPoG": "containment",
  600. "__pGoG": "containment",
  601. "__pFoG": "containment"
  602. },
  603. "types2parentTypes": {
  604. "__pGridNode": [
  605. "__pPositionable"
  606. ],
  607. "__pleft": [],
  608. "__pbottom": [],
  609. "__ptop": [],
  610. "__pright": [],
  611. "__pPacman": [
  612. "__pPositionable"
  613. ],
  614. "__pPositionable": [],
  615. "__pGhost": [
  616. "__pPositionable"
  617. ],
  618. "__pScoreboard": [],
  619. "__pFood": [
  620. "__pPositionable"
  621. ],
  622. "__pPoG": [],
  623. "__pGoG": [],
  624. "__pFoG": []
  625. }
  626. }