Add Hub; Fix Conveyor;

This commit is contained in:
Stefan-5422
2022-05-12 12:49:37 +02:00
parent 30d4d70ae8
commit 5bb37573eb
13 changed files with 1047 additions and 19 deletions
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
</set>
</option>
</component>
</project>
+943
View File
@@ -0,0 +1,943 @@
<?xml version="1.0" encoding="UTF-8"?>
<Diagram>
<ID>JAVA</ID>
<OriginalElement>C:/Users/Stefan/Documents/code/School-Programming-Projekt-022022/src</OriginalElement>
<nodes>
<node x="1718.0904436860112" y="958.0">com.yes.yes.ui.BuildBox</node>
<node x="823.632110352678" y="803.0">com.yes.yes.behaviours.TestRecieveBeahaviour</node>
<node x="194.94105517634057" y="93.0">com.yes.yes.utils.GlobalEventHandler</node>
<node x="184.71188850967053" y="958.0">com.yes.yes.entities.machines.TestMachine2</node>
<node x="278.14938850967394" y="0.0">com.yes.yes.utils.EventHandler</node>
<node x="603.8328711604111" y="688.0">com.yes.yes.utils.Component</node>
<node x="46.19507252560015" y="803.0">com.yes.yes.behaviours.TestOffererBehaviour</node>
<node x="116.49953782707757" y="688.0">com.yes.yes.entities.parts.Square</node>
<node x="441.7495378270776" y="803.0">com.yes.yes.behaviours.TestBehaviour</node>
<node x="1731.5868885096704" y="553.0">com.yes.yes.utils.RegistryEntry</node>
<node x="1251.2154436860112" y="323.0">com.yes.yes.world.Chunk</node>
<node x="730.7118885096705" y="958.0">com.yes.yes.entities.machines.TestMachine</node>
<node x="584.3404436860112" y="553.0">com.yes.yes.utils.BlockContainer</node>
<node x="1703.2535551763372" y="1142.0">com.yes.yes.MainController</node>
<node x="1468.1285551763406" y="438.0">com.yes.yes.world.World</node>
<node x="1835.4202218430073" y="323.0">com.yes.yes.utils.Direction</node>
<node x="1681.5904436860112" y="803.0">com.yes.yes.ui.BuildItem</node>
<node x="1046.632110352678" y="803.0">com.yes.yes.behaviours.OfferBehaviour</node>
<node x="211.44105517634057" y="178.0">com.yes.yes.YesApplication</node>
<node x="1759.0904436860112" y="688.0">com.yes.yes.utils.EntityRegistry</node>
<node x="298.4202218430072" y="553.0">com.yes.yes.utils.Part</node>
<node x="606.7495378270776" y="803.0">com.yes.yes.behaviours.PlaceBehaviour</node>
<node x="273.7495378270776" y="803.0">com.yes.yes.behaviours.ItemBehaviour</node>
<node x="1326.3785551763406" y="178.0">com.yes.yes.utils.Coordinate</node>
<node x="609.6702218430073" y="178.0">com.yes.yes.utils.Entity</node>
<node x="1366.2154436860112" y="323.0">com.yes.yes.utils.exceptions.AlreadyExistsException</node>
<node x="1886.7495378270776" y="1061.0">com.yes.yes.managers.PlayerManager</node>
<node x="301.4202218430072" y="688.0">com.yes.yes.utils.Item</node>
<node x="1298.082871160411" y="1061.0">com.yes.yes.managers.GameManager</node>
<node x="1975.8785551763372" y="958.0">com.yes.yes.utils.Size</node>
<node x="1716.2535551763372" y="1061.0">com.yes.yes.managers.UiManager</node>
</nodes>
<notes />
<edges>
<edge source="com.yes.yes.managers.PlayerManager" target="com.yes.yes.utils.EntityRegistry" relationship="DEPENDENCY">
<point x="-50.33333333333337" y="-15.5" />
<point x="1911.9162044937443" y="1040.0" />
<point x="1705.0035551763372" y="1040.0" />
<point x="1705.0035551763372" y="1020.0" />
<point x="1876.8404436860112" y="1020.0" />
<point x="1876.8404436860112" y="771.0" />
<point x="1830.5904436860112" y="771.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.Entity" target="com.yes.yes.utils.EventHandler" relationship="TO_ONE">
<point x="29.666666666666657" y="-15.5" />
<point x="683.8368885096739" y="151.0" />
<point x="664.6702218430073" y="151.0" />
<point x="664.6702218430073" y="62.0" />
<point x="353.14938850967394" y="62.0" />
<point x="353.14938850967394" y="52.0" />
<point x="383.14938850967394" y="52.0" />
<point x="35.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.TestOffererBehaviour" target="com.yes.yes.entities.parts.Square" relationship="CREATE">
<point x="24.0" y="-15.5" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.entities.machines.TestMachine" target="com.yes.yes.utils.Entity" relationship="GENERALIZATION">
<point x="45.333333333333314" y="-15.5" />
<point x="844.0452218430039" y="936.0" />
<point x="1208.132110352678" y="936.0" />
<point x="1208.132110352678" y="626.0" />
<point x="1135.9162044937443" y="626.0" />
<point x="1135.9162044937443" y="301.0" />
<point x="47.944610352677955" y="301.0" />
<point x="47.944610352677955" y="251.0" />
<point x="620.7952218430073" y="251.0" />
<point x="-33.375" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.TestOffererBehaviour" target="com.yes.yes.utils.Item" relationship="CREATE">
<point x="24.0" y="-15.5" />
<point x="165.49953782707757" y="761.0" />
<point x="321.9202218430072" y="761.0" />
<point x="-20.5" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.PlayerManager" target="com.yes.yes.world.Chunk" relationship="DEPENDENCY">
<point x="-50.33333333333337" y="-15.5" />
<point x="1911.9162044937443" y="1040.0" />
<point x="1705.0035551763372" y="1040.0" />
<point x="1705.0035551763372" y="1020.0" />
<point x="1571.6285551763406" y="1020.0" />
<point x="1571.6285551763406" y="406.0" />
<point x="1419.9242391922667" y="406.0" />
<point x="1419.9242391922667" y="376.0" />
<point x="1330.382110352678" y="376.0" />
<point x="31.666666666666686" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.PlayerManager" target="com.yes.yes.world.World" relationship="DEPENDENCY">
<point x="-50.33333333333337" y="-15.5" />
<point x="1911.9162044937443" y="1040.0" />
<point x="1705.0035551763372" y="1040.0" />
<point x="1705.0035551763372" y="1020.0" />
<point x="1538.1285551763406" y="1020.0" />
<point x="1538.1285551763406" y="501.0" />
<point x="1504.6285551763406" y="501.0" />
<point x="1504.6285551763406" y="491.0" />
<point x="1483.6285551763406" y="491.0" />
<point x="-31.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.OfferBehaviour" target="com.yes.yes.utils.BlockContainer" relationship="DEPENDENCY">
<point x="5.6843418860808015E-14" y="-15.5" />
<point x="1122.132110352678" y="781.0" />
<point x="1129.586888509674" y="781.0" />
<point x="1129.586888509674" y="771.0" />
<point x="1095.5" y="771.0" />
<point x="1095.5" y="656.0" />
<point x="546.8404436860112" y="656.0" />
<point x="546.8404436860112" y="636.0" />
<point x="609.6737770193446" y="636.0" />
<point x="-50.666666666666664" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.TestBehaviour" target="com.yes.yes.utils.Component" relationship="GENERALIZATION">
<point x="36.25" y="-15.5" />
<point x="550.4995378270776" y="771.0" />
<point x="669.8328711604111" y="771.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.entities.machines.TestMachine2" target="com.yes.yes.behaviours.TestBehaviour" relationship="CREATE">
<point x="48.0" y="-15.5" />
<point x="304.71188850967053" y="936.0" />
<point x="459.96188850967053" y="936.0" />
<point x="459.96188850967053" y="896.0" />
<point x="514.2495378270776" y="896.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.Component" target="com.yes.yes.utils.BlockContainer" relationship="TO_ONE">
<point x="-33.0" y="-15.5" />
<point x="636.8328711604111" y="666.0" />
<point x="617.0904436860112" y="666.0" />
<point x="617.0904436860112" y="626.0" />
<point x="660.3404436860112" y="626.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.world.World" target="com.yes.yes.world.Chunk" relationship="TO_MANY">
<point x="-31.0" y="-15.5" />
<point x="1483.6285551763406" y="416.0" />
<point x="1264.7154436860112" y="416.0" />
<point x="1264.7154436860112" y="386.0" />
<point x="1267.0487770193445" y="386.0" />
<point x="-31.666666666666686" y="15.5" />
</edge>
<edge source="com.yes.yes.entities.machines.TestMachine" target="com.yes.yes.utils.BlockContainer" relationship="DEPENDENCY">
<point x="0.0" y="-15.5" />
<point x="798.7118885096705" y="916.0" />
<point x="813.132110352678" y="916.0" />
<point x="813.132110352678" y="656.0" />
<point x="546.8404436860112" y="656.0" />
<point x="546.8404436860112" y="636.0" />
<point x="609.6737770193446" y="636.0" />
<point x="-50.666666666666664" y="15.5" />
</edge>
<edge source="com.yes.yes.entities.machines.TestMachine" target="com.yes.yes.behaviours.PlaceBehaviour" relationship="CREATE">
<point x="-45.33333333333334" y="-15.5" />
<point x="753.3785551763372" y="936.0" />
<point x="627.4618885096705" y="936.0" />
<point x="627.4618885096705" y="916.0" />
<point x="682.7495378270776" y="916.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.ItemBehaviour" target="com.yes.yes.utils.Item" relationship="DEPENDENCY">
<point x="-37.0" y="-15.5" />
<point x="310.7495378270776" y="781.0" />
<point x="348.2495378270776" y="781.0" />
<point x="348.2495378270776" y="761.0" />
<point x="362.9202218430072" y="761.0" />
<point x="20.5" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.OfferBehaviour" target="com.yes.yes.utils.Coordinate" relationship="DEPENDENCY">
<point x="5.6843418860808015E-14" y="-15.5" />
<point x="1122.132110352678" y="781.0" />
<point x="1129.586888509674" y="781.0" />
<point x="1130.4162044937443" y="656.0" />
<point x="1156.2118885096706" y="656.0" />
<point x="1156.2118885096706" y="281.0" />
<point x="1389.3785551763406" y="281.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.Item" target="com.yes.yes.utils.Part" relationship="TO_ONE">
<point x="20.5" y="-15.5" />
<point x="26.0" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.GlobalEventHandler" target="com.yes.yes.utils.EventHandler" relationship="TO_ONE">
<point x="45.75" y="-15.5" />
<point x="332.19105517634057" y="62.0" />
<point x="353.14938850967394" y="62.0" />
<point x="353.14938850967394" y="52.0" />
<point x="383.14938850967394" y="52.0" />
<point x="35.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.TestRecieveBeahaviour" target="com.yes.yes.utils.Component" relationship="GENERALIZATION">
<point x="-50.75" y="-15.5" />
<point x="874.382110352678" y="771.0" />
<point x="669.8328711604111" y="771.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.Entity" target="com.yes.yes.utils.GlobalEventHandler" relationship="DEPENDENCY">
<point x="-29.66666666666667" y="-15.5" />
<point x="624.5035551763406" y="151.0" />
<point x="286.44105517634057" y="151.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.Component" target="com.yes.yes.utils.Entity" relationship="DEPENDENCY">
<point x="33.0" y="-15.5" />
<point x="702.8328711604111" y="666.0" />
<point x="746.8404436860112" y="666.0" />
<point x="746.8404436860112" y="271.0" />
<point x="678.4202218430073" y="271.0" />
<point x="678.4202218430073" y="251.0" />
<point x="665.2952218430073" y="251.0" />
<point x="11.125" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.Entity" target="com.yes.yes.utils.Component" relationship="DEPENDENCY">
<point x="11.125" y="15.5" />
<point x="665.2952218430073" y="251.0" />
<point x="678.4202218430073" y="251.0" />
<point x="678.4202218430073" y="271.0" />
<point x="746.8404436860112" y="271.0" />
<point x="746.8404436860112" y="666.0" />
<point x="702.8328711604111" y="666.0" />
<point x="33.0" y="-15.5" />
</edge>
<edge source="com.yes.yes.managers.GameManager" target="com.yes.yes.world.World" relationship="TO_ONE">
<point x="0.0" y="-15.5" />
<point x="1373.082871160411" y="1030.0" />
<point x="1431.4202218430073" y="1030.0" />
<point x="1431.4202218430073" y="531.0" />
<point x="1526.8785551763406" y="531.0" />
<point x="1526.8785551763406" y="491.0" />
<point x="1545.6285551763406" y="491.0" />
<point x="31.0" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.PlayerManager" target="com.yes.yes.utils.Coordinate" relationship="TO_ONE">
<point x="50.33333333333337" y="-15.5" />
<point x="2012.5828711604108" y="1040.0" />
<point x="2131.7159058589336" y="1040.0" />
<point x="2131.7159058589336" y="251.0" />
<point x="1896.4202218430073" y="251.0" />
<point x="1896.4202218430073" y="241.0" />
<point x="1431.3785551763406" y="241.0" />
<point x="42.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.TestOffererBehaviour" target="com.yes.yes.utils.Entity" relationship="TO_ONE">
<point x="-72.0" y="-15.5" />
<point x="70.19507252560015" y="781.0" />
<point x="64.49999999999977" y="781.0" />
<point x="64.49999999999977" y="291.0" />
<point x="597.4202218430073" y="291.0" />
<point x="597.4202218430073" y="241.0" />
<point x="643.0452218430073" y="241.0" />
<point x="-11.125" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.BlockContainer" target="com.yes.yes.utils.Coordinate" relationship="CREATE">
<point x="38.0" y="-15.5" />
<point x="698.3404436860112" y="501.0" />
<point x="665.8404436860112" y="501.0" />
<point x="665.8404436860112" y="261.0" />
<point x="797.6702218430073" y="261.0" />
<point x="797.6702218430073" y="231.0" />
<point x="1347.3785551763406" y="231.0" />
<point x="-42.0" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.PlayerManager" target="com.yes.yes.utils.Coordinate" relationship="CREATE">
<point x="0.0" y="-15.5" />
<point x="1962.2495378270776" y="1040.0" />
<point x="2012.2535551763406" y="1040.0" />
<point x="2012.2535551763406" y="1010.0" />
<point x="2065.378555176337" y="1010.0" />
<point x="2065.378555176337" y="261.0" />
<point x="797.6702218430073" y="261.0" />
<point x="797.6702218430073" y="231.0" />
<point x="1347.3785551763406" y="231.0" />
<point x="-42.0" y="15.5" />
</edge>
<edge source="com.yes.yes.ui.BuildBox" target="com.yes.yes.utils.EntityRegistry" relationship="DEPENDENCY">
<point x="27.5" y="-15.5" />
<point x="1800.5904436860112" y="936.0" />
<point x="1830.5904436860112" y="936.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.OfferBehaviour" target="com.yes.yes.utils.Entity" relationship="DEPENDENCY">
<point x="5.6843418860808015E-14" y="-15.5" />
<point x="1122.132110352678" y="781.0" />
<point x="1129.586888509674" y="781.0" />
<point x="1129.586888509674" y="646.0" />
<point x="1156.2118885096706" y="646.0" />
<point x="1156.2118885096706" y="271.0" />
<point x="678.4202218430073" y="271.0" />
<point x="678.4202218430073" y="251.0" />
<point x="665.2952218430073" y="251.0" />
<point x="11.125" y="15.5" />
</edge>
<edge source="com.yes.yes.ui.BuildItem" target="com.yes.yes.utils.EntityRegistry" relationship="DEPENDENCY">
<point x="0.0" y="-15.5" />
<point x="1739.0904436860112" y="781.0" />
<point x="1726.6285551763406" y="781.0" />
<point x="1726.6285551763406" y="761.0" />
<point x="1830.5904436860112" y="761.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.entities.machines.TestMachine2" target="com.yes.yes.utils.BlockContainer" relationship="DEPENDENCY">
<point x="0.0" y="-15.5" />
<point x="256.71188850967053" y="936.0" />
<point x="252.4202218430072" y="936.0" />
<point x="252.4202218430072" y="656.0" />
<point x="546.8404436860112" y="656.0" />
<point x="546.8404436860112" y="636.0" />
<point x="609.6737770193446" y="636.0" />
<point x="-50.666666666666664" y="15.5" />
</edge>
<edge source="com.yes.yes.world.Chunk" target="com.yes.yes.utils.Entity" relationship="CREATE">
<point x="0.0" y="-15.5" />
<point x="1298.7154436860112" y="241.0" />
<point x="687.5452218430073" y="241.0" />
<point x="33.375" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.GameManager" target="com.yes.yes.utils.EntityRegistry" relationship="DEPENDENCY">
<point x="-50.0" y="-15.5" />
<point x="1323.0828711604108" y="1040.0" />
<point x="798.7118885096705" y="1040.0" />
<point x="798.7118885096705" y="1030.0" />
<point x="1267.049239192267" y="1030.0" />
<point x="1267.049239192267" y="771.0" />
<point x="1830.5904436860112" y="771.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.PlayerManager" target="com.yes.yes.ui.BuildBox" relationship="DEPENDENCY">
<point x="-50.33333333333337" y="-15.5" />
<point x="1911.9162044937443" y="1040.0" />
<point x="1705.0035551763372" y="1040.0" />
<point x="1705.0035551763372" y="1020.0" />
<point x="1773.0904436860112" y="1020.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.entities.machines.TestMachine2" target="com.yes.yes.behaviours.PlaceBehaviour" relationship="CREATE">
<point x="48.0" y="-15.5" />
<point x="304.71188850967053" y="936.0" />
<point x="459.96188850967053" y="936.0" />
<point x="459.96188850967053" y="906.0" />
<point x="682.7495378270776" y="906.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.world.World" target="com.yes.yes.utils.Coordinate" relationship="DEPENDENCY">
<point x="31.0" y="-15.5" />
<point x="1545.6285551763406" y="386.0" />
<point x="1579.7154436860112" y="386.0" />
<point x="1579.7154436860112" y="281.0" />
<point x="1389.3785551763406" y="281.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.Direction" target="com.yes.yes.utils.Coordinate" relationship="TO_ONE">
<point x="28.0" y="-15.5" />
<point x="1919.4202218430073" y="251.0" />
<point x="1896.4202218430073" y="251.0" />
<point x="1896.4202218430073" y="241.0" />
<point x="1431.3785551763406" y="241.0" />
<point x="42.0" y="15.5" />
</edge>
<edge source="com.yes.yes.MainController" target="com.yes.yes.managers.UiManager" relationship="CREATE">
<point x="0.0" y="-15.5" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.TestOffererBehaviour" target="com.yes.yes.utils.Entity" relationship="DEPENDENCY">
<point x="-24.0" y="-15.5" />
<point x="118.19507252560015" y="781.0" />
<point x="94.99953782707757" y="781.0" />
<point x="94.99953782707757" y="271.0" />
<point x="678.4202218430073" y="271.0" />
<point x="678.4202218430073" y="251.0" />
<point x="665.2952218430073" y="251.0" />
<point x="11.125" y="15.5" />
</edge>
<edge source="com.yes.yes.entities.machines.TestMachine2" target="com.yes.yes.behaviours.ItemBehaviour" relationship="CREATE">
<point x="48.0" y="-15.5" />
<point x="304.71188850967053" y="936.0" />
<point x="459.96188850967053" y="936.0" />
<point x="459.96188850967053" y="876.0" />
<point x="347.7495378270776" y="876.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.ui.BuildBox" target="com.yes.yes.ui.BuildItem" relationship="CREATE">
<point x="-27.5" y="-15.5" />
<point x="1745.5904436860112" y="936.0" />
<point x="1739.0904436860112" y="936.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.GameManager" target="com.yes.yes.entities.machines.TestMachine" relationship="DEPENDENCY">
<point x="-50.0" y="-15.5" />
<point x="1323.0828711604108" y="1040.0" />
<point x="798.7118885096705" y="1040.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.OfferBehaviour" target="com.yes.yes.utils.Component" relationship="GENERALIZATION">
<point x="-50.333333333333314" y="-15.5" />
<point x="1071.7987770193445" y="771.0" />
<point x="669.8328711604111" y="771.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.PlaceBehaviour" target="com.yes.yes.utils.Component" relationship="GENERALIZATION">
<point x="0.0" y="-15.5" />
<point x="682.7495378270776" y="771.0" />
<point x="669.8328711604111" y="771.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.BlockContainer" target="com.yes.yes.world.World" relationship="DEPENDENCY">
<point x="-38.0" y="-15.5" />
<point x="622.3404436860112" y="531.0" />
<point x="654.8404436860112" y="531.0" />
<point x="654.8404436860112" y="511.0" />
<point x="1504.6285551763406" y="511.0" />
<point x="1504.6285551763406" y="491.0" />
<point x="1483.6285551763406" y="491.0" />
<point x="-31.0" y="15.5" />
</edge>
<edge source="com.yes.yes.MainController" target="com.yes.yes.managers.PlayerManager" relationship="CREATE">
<point x="0.0" y="-15.5" />
<point x="1778.7535551763372" y="1117.0" />
<point x="1962.2495378270776" y="1117.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.entities.machines.TestMachine2" target="com.yes.yes.behaviours.TestOffererBehaviour" relationship="CREATE">
<point x="48.0" y="-15.5" />
<point x="304.71188850967053" y="936.0" />
<point x="459.96188850967053" y="936.0" />
<point x="459.96188850967053" y="886.0" />
<point x="142.19507252560015" y="886.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.Item" target="com.yes.yes.utils.Part" relationship="CREATE">
<point x="-20.5" y="-15.5" />
<point x="321.9202218430072" y="646.0" />
<point x="337.4202218430072" y="646.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.GameManager" target="com.yes.yes.world.World" relationship="CREATE">
<point x="50.0" y="-15.5" />
<point x="1423.082871160411" y="1040.0" />
<point x="1447.6702218430073" y="1040.0" />
<point x="1447.6702218430073" y="1030.0" />
<point x="1442.4202218430073" y="1030.0" />
<point x="1442.4202218430073" y="521.0" />
<point x="1514.6285551763406" y="521.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.EntityRegistry" target="com.yes.yes.utils.RegistryEntry" relationship="TO_MANY">
<point x="-47.66666666666666" y="-15.5" />
<point x="1782.9237770193445" y="656.0" />
<point x="1801.0868885096704" y="656.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.EntityRegistry" target="com.yes.yes.utils.exceptions.AlreadyExistsException" relationship="CREATE">
<point x="47.66666666666666" y="-15.5" />
<point x="1878.257110352678" y="656.0" />
<point x="1913.6285551763372" y="656.0" />
<point x="1913.6285551763372" y="386.0" />
<point x="1590.2154436860112" y="386.0" />
<point x="1590.2154436860112" y="376.0" />
<point x="1518.4654436860112" y="376.0" />
<point x="50.75" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.BlockContainer" target="com.yes.yes.world.Chunk" relationship="DEPENDENCY">
<point x="-38.0" y="-15.5" />
<point x="622.3404436860112" y="531.0" />
<point x="654.8404436860112" y="531.0" />
<point x="654.8404436860112" y="406.0" />
<point x="1419.9242391922667" y="406.0" />
<point x="1419.9242391922667" y="376.0" />
<point x="1330.382110352678" y="376.0" />
<point x="31.666666666666686" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.UiManager" target="com.yes.yes.ui.BuildBox" relationship="TO_ONE">
<point x="31.25" y="-15.5" />
<point x="1810.0035551763372" y="1030.0" />
<point x="1923.0904436860112" y="1030.0" />
<point x="1923.0904436860112" y="1010.0" />
<point x="1809.757110352678" y="1010.0" />
<point x="36.66666666666666" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.BlockContainer" target="com.yes.yes.utils.Entity" relationship="DEPENDENCY">
<point x="-38.0" y="-15.5" />
<point x="622.3404436860112" y="531.0" />
<point x="654.8404436860112" y="531.0" />
<point x="654.8404436860112" y="501.0" />
<point x="643.3328711604111" y="501.0" />
<point x="643.3328711604111" y="271.0" />
<point x="678.4202218430073" y="271.0" />
<point x="678.4202218430073" y="251.0" />
<point x="665.2952218430073" y="251.0" />
<point x="11.125" y="15.5" />
</edge>
<edge source="com.yes.yes.world.World" target="com.yes.yes.utils.exceptions.AlreadyExistsException" relationship="CREATE">
<point x="0.0" y="-15.5" />
<point x="1514.6285551763406" y="416.0" />
<point x="1525.1285551763406" y="416.0" />
<point x="1525.1285551763406" y="396.0" />
<point x="1590.2154436860112" y="396.0" />
<point x="1590.2154436860112" y="376.0" />
<point x="1518.4654436860112" y="376.0" />
<point x="50.75" y="15.5" />
</edge>
<edge source="com.yes.yes.entities.machines.TestMachine" target="com.yes.yes.behaviours.TestBehaviour" relationship="CREATE">
<point x="-45.33333333333334" y="-15.5" />
<point x="753.3785551763372" y="936.0" />
<point x="627.4618885096705" y="936.0" />
<point x="627.4618885096705" y="856.0" />
<point x="514.2495378270776" y="856.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.PlayerManager" target="com.yes.yes.utils.RegistryEntry" relationship="DEPENDENCY">
<point x="-50.33333333333337" y="-15.5" />
<point x="1911.9162044937443" y="1040.0" />
<point x="1705.0035551763372" y="1040.0" />
<point x="1705.0035551763372" y="1020.0" />
<point x="1912.5904436860112" y="1020.0" />
<point x="1912.5904436860112" y="666.0" />
<point x="1829.2535551763372" y="666.0" />
<point x="1829.2535551763372" y="606.0" />
<point x="1847.4202218430037" y="606.0" />
<point x="46.33333333333337" y="15.5" />
</edge>
<edge source="com.yes.yes.entities.parts.Square" target="com.yes.yes.utils.Part" relationship="GENERALIZATION">
<point x="0.0" y="-15.5" />
<point x="165.49953782707757" y="646.0" />
<point x="311.4202218430072" y="646.0" />
<point x="-26.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.TestOffererBehaviour" target="com.yes.yes.utils.Component" relationship="GENERALIZATION">
<point x="72.0" y="-15.5" />
<point x="214.19507252560015" y="771.0" />
<point x="669.8328711604111" y="771.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.Entity" target="com.yes.yes.utils.EventHandler" relationship="CREATE">
<point x="0.0" y="-15.5" />
<point x="653.6702218430073" y="72.0" />
<point x="342.64938850967405" y="72.0" />
<point x="342.64938850967405" y="52.0" />
<point x="313.14938850967394" y="52.0" />
<point x="-35.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.TestOffererBehaviour" target="com.yes.yes.utils.BlockContainer" relationship="DEPENDENCY">
<point x="-24.0" y="-15.5" />
<point x="118.19507252560015" y="781.0" />
<point x="94.99953782707757" y="781.0" />
<point x="94.99953782707757" y="656.0" />
<point x="546.8404436860112" y="656.0" />
<point x="546.8404436860112" y="636.0" />
<point x="609.6737770193446" y="636.0" />
<point x="-50.666666666666664" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.PlayerManager" target="com.yes.yes.utils.BlockContainer" relationship="CREATE">
<point x="0.0" y="-15.5" />
<point x="1962.2495378270776" y="1040.0" />
<point x="2012.2535551763406" y="1040.0" />
<point x="2012.2535551763406" y="1010.0" />
<point x="1965.3785551763372" y="1010.0" />
<point x="1965.3785551763372" y="616.0" />
<point x="711.007110352678" y="616.0" />
<point x="50.66666666666666" y="15.5" />
</edge>
<edge source="com.yes.yes.ui.BuildItem" target="com.yes.yes.utils.RegistryEntry" relationship="DEPENDENCY">
<point x="0.0" y="-15.5" />
<point x="1739.0904436860112" y="781.0" />
<point x="1726.6285551763406" y="781.0" />
<point x="1726.6285551763406" y="666.0" />
<point x="1829.2535551763372" y="666.0" />
<point x="1829.2535551763372" y="606.0" />
<point x="1847.4202218430037" y="606.0" />
<point x="46.33333333333337" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.Coordinate" target="com.yes.yes.world.Chunk" relationship="DEPENDENCY">
<point x="0.0" y="15.5" />
<point x="1389.3785551763406" y="281.0" />
<point x="1330.382110352678" y="281.0" />
<point x="31.666666666666686" y="-15.5" />
</edge>
<edge source="com.yes.yes.world.Chunk" target="com.yes.yes.utils.Coordinate" relationship="DEPENDENCY">
<point x="31.666666666666686" y="-15.5" />
<point x="1330.382110352678" y="281.0" />
<point x="1389.3785551763406" y="281.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.entities.machines.TestMachine2" target="com.yes.yes.utils.Entity" relationship="GENERALIZATION">
<point x="-48.0" y="-15.5" />
<point x="208.71188850967053" y="936.0" />
<point x="35.69507252560015" y="936.0" />
<point x="35.69507252560015" y="301.0" />
<point x="47.944610352677955" y="301.0" />
<point x="47.944610352677955" y="251.0" />
<point x="620.7952218430073" y="251.0" />
<point x="-33.375" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.TestOffererBehaviour" target="com.yes.yes.utils.Coordinate" relationship="CREATE">
<point x="24.0" y="-15.5" />
<point x="165.49953782707757" y="761.0" />
<point x="105.99953782707757" y="761.0" />
<point x="105.99953782707757" y="261.0" />
<point x="797.6702218430073" y="261.0" />
<point x="797.6702218430073" y="231.0" />
<point x="1347.3785551763406" y="231.0" />
<point x="-42.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.PlaceBehaviour" target="com.yes.yes.utils.Coordinate" relationship="CREATE">
<point x="50.66666666666663" y="-15.5" />
<point x="733.4162044937443" y="761.0" />
<point x="774.0904436860112" y="761.0" />
<point x="774.0904436860112" y="261.0" />
<point x="797.6702218430073" y="261.0" />
<point x="797.6702218430073" y="231.0" />
<point x="1347.3785551763406" y="231.0" />
<point x="-42.0" y="15.5" />
</edge>
<edge source="com.yes.yes.world.World" target="com.yes.yes.utils.Coordinate" relationship="TO_MANY">
<point x="-31.0" y="-15.5" />
<point x="1483.6285551763406" y="416.0" />
<point x="1264.7154436860112" y="416.0" />
<point x="1264.7154436860112" y="386.0" />
<point x="1240.7154436860112" y="386.0" />
<point x="1240.7154436860112" y="251.0" />
<point x="1896.4202218430073" y="251.0" />
<point x="1896.4202218430073" y="241.0" />
<point x="1431.3785551763406" y="241.0" />
<point x="42.0" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.GameManager" target="com.yes.yes.utils.GlobalEventHandler" relationship="DEPENDENCY">
<point x="-50.0" y="-15.5" />
<point x="1323.0828711604108" y="1040.0" />
<point x="798.7118885096705" y="1040.0" />
<point x="798.7118885096705" y="1030.0" />
<point x="0.0" y="1030.0" />
<point x="0.0" y="151.0" />
<point x="286.44105517634057" y="151.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.ItemBehaviour" target="com.yes.yes.utils.BlockContainer" relationship="DEPENDENCY">
<point x="-37.0" y="-15.5" />
<point x="310.7495378270776" y="781.0" />
<point x="348.2495378270776" y="781.0" />
<point x="348.2495378270776" y="741.0" />
<point x="393.9202218430072" y="741.0" />
<point x="393.9202218430072" y="656.0" />
<point x="546.8404436860112" y="656.0" />
<point x="546.8404436860112" y="636.0" />
<point x="609.6737770193446" y="636.0" />
<point x="-50.666666666666664" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.TestRecieveBeahaviour" target="com.yes.yes.utils.Item" relationship="DEPENDENCY">
<point x="50.75" y="-15.5" />
<point x="975.882110352678" y="751.0" />
<point x="362.9202218430072" y="751.0" />
<point x="20.5" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.GlobalEventHandler" target="com.yes.yes.utils.EventHandler" relationship="CREATE">
<point x="-45.75" y="-15.5" />
<point x="240.69105517634057" y="72.0" />
<point x="342.64938850967405" y="72.0" />
<point x="342.64938850967405" y="52.0" />
<point x="313.14938850967394" y="52.0" />
<point x="-35.0" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.Direction" target="com.yes.yes.utils.Coordinate" relationship="CREATE">
<point x="-28.0" y="-15.5" />
<point x="1863.4202218430073" y="261.0" />
<point x="797.6702218430073" y="261.0" />
<point x="797.6702218430073" y="231.0" />
<point x="1347.3785551763406" y="231.0" />
<point x="-42.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.PlaceBehaviour" target="com.yes.yes.utils.BlockContainer" relationship="DEPENDENCY">
<point x="-50.66666666666663" y="-15.5" />
<point x="632.0828711604111" y="781.0" />
<point x="565.1702218430073" y="781.0" />
<point x="565.1702218430073" y="761.0" />
<point x="546.8404436860112" y="761.0" />
<point x="546.8404436860112" y="636.0" />
<point x="609.6737770193446" y="636.0" />
<point x="-50.666666666666664" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.ItemBehaviour" target="com.yes.yes.utils.Entity" relationship="DEPENDENCY">
<point x="-37.0" y="-15.5" />
<point x="310.7495378270776" y="781.0" />
<point x="348.2495378270776" y="781.0" />
<point x="348.2495378270776" y="741.0" />
<point x="281.6702218430072" y="741.0" />
<point x="281.6702218430072" y="271.0" />
<point x="678.4202218430073" y="271.0" />
<point x="678.4202218430073" y="251.0" />
<point x="665.2952218430073" y="251.0" />
<point x="11.125" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.ItemBehaviour" target="com.yes.yes.utils.Component" relationship="GENERALIZATION">
<point x="37.0" y="-15.5" />
<point x="384.7495378270776" y="771.0" />
<point x="669.8328711604111" y="771.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.TestBehaviour" target="com.yes.yes.utils.BlockContainer" relationship="DEPENDENCY">
<point x="-36.25" y="-15.5" />
<point x="477.9995378270776" y="781.0" />
<point x="422.2952218430072" y="781.0" />
<point x="422.2952218430072" y="656.0" />
<point x="546.8404436860112" y="656.0" />
<point x="546.8404436860112" y="636.0" />
<point x="609.6737770193446" y="636.0" />
<point x="-50.666666666666664" y="15.5" />
</edge>
<edge source="com.yes.yes.entities.machines.TestMachine" target="com.yes.yes.behaviours.TestRecieveBeahaviour" relationship="CREATE">
<point x="-45.33333333333334" y="-15.5" />
<point x="753.3785551763372" y="936.0" />
<point x="627.4618885096705" y="936.0" />
<point x="627.4618885096705" y="926.0" />
<point x="925.132110352678" y="926.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.YesApplication" target="com.yes.yes.utils.GlobalEventHandler" relationship="DEPENDENCY">
<point x="0.0" y="-15.5" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.PlayerManager" target="com.yes.yes.ui.BuildBox" relationship="TO_ONE">
<point x="50.33333333333337" y="-15.5" />
<point x="2012.5828711604108" y="1040.0" />
<point x="2131.7159058589336" y="1040.0" />
<point x="2131.7159058589336" y="1020.0" />
<point x="1923.0904436860112" y="1020.0" />
<point x="1923.0904436860112" y="1010.0" />
<point x="1809.757110352678" y="1010.0" />
<point x="36.66666666666666" y="15.5" />
</edge>
<edge source="com.yes.yes.ui.BuildItem" target="com.yes.yes.world.Chunk" relationship="DEPENDENCY">
<point x="0.0" y="-15.5" />
<point x="1739.0904436860112" y="781.0" />
<point x="1726.6285551763406" y="781.0" />
<point x="1726.6285551763406" y="751.0" />
<point x="1702.2535551763372" y="751.0" />
<point x="1702.2535551763372" y="406.0" />
<point x="1419.9242391922667" y="406.0" />
<point x="1419.9242391922667" y="376.0" />
<point x="1330.382110352678" y="376.0" />
<point x="31.666666666666686" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.Component" target="com.yes.yes.utils.BlockContainer" relationship="DEPENDENCY">
<point x="33.0" y="-15.5" />
<point x="702.8328711604111" y="666.0" />
<point x="746.8404436860112" y="666.0" />
<point x="746.8404436860112" y="646.0" />
<point x="546.8404436860112" y="646.0" />
<point x="546.8404436860112" y="636.0" />
<point x="609.6737770193446" y="636.0" />
<point x="-50.666666666666664" y="15.5" />
</edge>
<edge source="com.yes.yes.MainController" target="com.yes.yes.managers.GameManager" relationship="CREATE">
<point x="0.0" y="-15.5" />
<point x="1778.7535551763372" y="1117.0" />
<point x="1373.082871160411" y="1117.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.TestRecieveBeahaviour" target="com.yes.yes.utils.BlockContainer" relationship="DEPENDENCY">
<point x="50.75" y="-15.5" />
<point x="975.882110352678" y="656.0" />
<point x="546.8404436860112" y="656.0" />
<point x="546.8404436860112" y="636.0" />
<point x="609.6737770193446" y="636.0" />
<point x="-50.666666666666664" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.GameManager" target="com.yes.yes.utils.RegistryEntry" relationship="CREATE">
<point x="50.0" y="-15.5" />
<point x="1423.082871160411" y="1040.0" />
<point x="1447.6702218430073" y="1040.0" />
<point x="1447.6702218430073" y="1030.0" />
<point x="1452.9202218430073" y="1030.0" />
<point x="1452.9202218430073" y="656.0" />
<point x="1754.7535551763372" y="656.0" />
<point x="-46.333333333333314" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.TestBehaviour" target="com.yes.yes.utils.Entity" relationship="DEPENDENCY">
<point x="-36.25" y="-15.5" />
<point x="477.9995378270776" y="781.0" />
<point x="422.2952218430072" y="781.0" />
<point x="422.2952218430072" y="271.0" />
<point x="678.4202218430073" y="271.0" />
<point x="678.4202218430073" y="251.0" />
<point x="665.2952218430073" y="251.0" />
<point x="11.125" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.EntityRegistry" target="com.yes.yes.utils.RegistryEntry" relationship="DEPENDENCY">
<point x="0.0" y="-15.5" />
<point x="1830.5904436860112" y="666.0" />
<point x="1829.2535551763372" y="666.0" />
<point x="1829.2535551763372" y="606.0" />
<point x="1847.4202218430037" y="606.0" />
<point x="46.33333333333337" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.GameManager" target="com.yes.yes.utils.exceptions.AlreadyExistsException" relationship="DEPENDENCY">
<point x="-50.0" y="-15.5" />
<point x="1323.0828711604108" y="1040.0" />
<point x="798.7118885096705" y="1040.0" />
<point x="798.7118885096705" y="1030.0" />
<point x="1230.2154436860112" y="1030.0" />
<point x="1230.2154436860112" y="396.0" />
<point x="1416.9654436860112" y="396.0" />
<point x="-50.75" y="15.5" />
</edge>
<edge source="com.yes.yes.world.Chunk" target="com.yes.yes.utils.Entity" relationship="TO_ONE">
<point x="-31.666666666666686" y="-15.5" />
<point x="1267.0487770193445" y="291.0" />
<point x="597.4202218430073" y="291.0" />
<point x="597.4202218430073" y="241.0" />
<point x="643.0452218430073" y="241.0" />
<point x="-11.125" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.OfferBehaviour" target="com.yes.yes.utils.Coordinate" relationship="TO_ONE">
<point x="50.33333333333343" y="-15.5" />
<point x="1172.4654436860114" y="781.0" />
<point x="1141.4162044937443" y="781.0" />
<point x="1141.4162044937443" y="666.0" />
<point x="1167.2118885096706" y="666.0" />
<point x="1167.2118885096706" y="251.0" />
<point x="1896.4202218430073" y="251.0" />
<point x="1896.4202218430073" y="241.0" />
<point x="1431.3785551763406" y="241.0" />
<point x="42.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.TestRecieveBeahaviour" target="com.yes.yes.utils.Entity" relationship="DEPENDENCY">
<point x="50.75" y="-15.5" />
<point x="975.882110352678" y="761.0" />
<point x="1012.7992391922668" y="761.0" />
<point x="1012.7992391922668" y="636.0" />
<point x="1146.9162044937443" y="636.0" />
<point x="1146.9162044937443" y="271.0" />
<point x="678.4202218430073" y="271.0" />
<point x="678.4202218430073" y="251.0" />
<point x="665.2952218430073" y="251.0" />
<point x="11.125" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.UiManager" target="com.yes.yes.ui.BuildBox" relationship="CREATE">
<point x="-31.25" y="-15.5" />
<point x="1747.5035551763372" y="1030.0" />
<point x="1736.4237770193445" y="1030.0" />
<point x="-36.66666666666666" y="15.5" />
</edge>
<edge source="com.yes.yes.world.World" target="com.yes.yes.world.Chunk" relationship="CREATE">
<point x="0.0" y="-15.5" />
<point x="1514.6285551763406" y="416.0" />
<point x="1525.1285551763406" y="416.0" />
<point x="1525.1285551763406" y="386.0" />
<point x="1298.7154436860112" y="386.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.PlayerManager" target="com.yes.yes.world.World" relationship="TO_ONE">
<point x="50.33333333333337" y="-15.5" />
<point x="2012.5828711604108" y="1040.0" />
<point x="2131.7159058589336" y="1040.0" />
<point x="2131.7159058589336" y="531.0" />
<point x="1526.8785551763406" y="531.0" />
<point x="1526.8785551763406" y="491.0" />
<point x="1545.6285551763406" y="491.0" />
<point x="31.0" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.Entity" target="com.yes.yes.utils.Component" relationship="TO_MANY">
<point x="-11.125" y="15.5" />
<point x="643.0452218430073" y="241.0" />
<point x="597.4202218430073" y="241.0" />
<point x="597.4202218430073" y="291.0" />
<point x="573.8404436860112" y="291.0" />
<point x="573.8404436860112" y="626.0" />
<point x="617.0904436860112" y="626.0" />
<point x="617.0904436860112" y="666.0" />
<point x="636.8328711604111" y="666.0" />
<point x="-33.0" y="-15.5" />
</edge>
<edge source="com.yes.yes.managers.PlayerManager" target="com.yes.yes.utils.Entity" relationship="DEPENDENCY">
<point x="-50.33333333333337" y="-15.5" />
<point x="1911.9162044937443" y="1040.0" />
<point x="1705.0035551763372" y="1040.0" />
<point x="1705.0035551763372" y="1020.0" />
<point x="1671.0904436860112" y="1020.0" />
<point x="1671.0904436860112" y="271.0" />
<point x="678.4202218430073" y="271.0" />
<point x="678.4202218430073" y="251.0" />
<point x="665.2952218430073" y="251.0" />
<point x="11.125" y="15.5" />
</edge>
<edge source="com.yes.yes.entities.machines.TestMachine" target="com.yes.yes.behaviours.ItemBehaviour" relationship="CREATE">
<point x="-45.33333333333334" y="-15.5" />
<point x="753.3785551763372" y="936.0" />
<point x="627.4618885096705" y="936.0" />
<point x="627.4618885096705" y="866.0" />
<point x="347.7495378270776" y="866.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.PlayerManager" target="com.yes.yes.utils.Size" relationship="CREATE">
<point x="0.0" y="-15.5" />
<point x="1962.2495378270776" y="1040.0" />
<point x="2012.2535551763406" y="1040.0" />
<point x="2012.2535551763406" y="1010.0" />
<point x="2015.3785551763372" y="1010.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.utils.Component" target="com.yes.yes.utils.Entity" relationship="TO_ONE">
<point x="-33.0" y="-15.5" />
<point x="636.8328711604111" y="666.0" />
<point x="617.0904436860112" y="666.0" />
<point x="617.0904436860112" y="626.0" />
<point x="573.8404436860112" y="626.0" />
<point x="573.8404436860112" y="291.0" />
<point x="597.4202218430073" y="291.0" />
<point x="597.4202218430073" y="241.0" />
<point x="643.0452218430073" y="241.0" />
<point x="-11.125" y="15.5" />
</edge>
<edge source="com.yes.yes.managers.GameManager" target="com.yes.yes.entities.machines.TestMachine2" relationship="DEPENDENCY">
<point x="-50.0" y="-15.5" />
<point x="1323.0828711604108" y="1040.0" />
<point x="798.7118885096705" y="1040.0" />
<point x="798.7118885096705" y="1030.0" />
<point x="256.71188850967053" y="1030.0" />
<point x="0.0" y="15.5" />
</edge>
<edge source="com.yes.yes.behaviours.PlaceBehaviour" target="com.yes.yes.utils.Entity" relationship="DEPENDENCY">
<point x="-50.66666666666663" y="-15.5" />
<point x="632.0828711604111" y="781.0" />
<point x="565.1702218430073" y="781.0" />
<point x="565.1702218430073" y="761.0" />
<point x="536.3404436860112" y="761.0" />
<point x="536.3404436860112" y="271.0" />
<point x="678.4202218430073" y="271.0" />
<point x="678.4202218430073" y="251.0" />
<point x="665.2952218430073" y="251.0" />
<point x="11.125" y="15.5" />
</edge>
</edges>
<settings layout="Hierarchic" zoom="0.6496282527881041" showDependencies="true" x="1066.0" y="586.5" />
<SelectedNodes />
<Categories />
<SCOPE>All</SCOPE>
<VISIBILITY>private</VISIBILITY>
</Diagram>
@@ -16,7 +16,7 @@ public class YesApplication extends javafx.application.Application {
@Override
public void stop() {
System.out.println("closing bro");
System.out.println("Closing!");
GlobalEventHandler.trigger("closing",null);
}
@@ -27,10 +27,11 @@ public class ConveyorBehaviour extends Component {
@Override
public void update() {
if (count > delay) {
count = 0;
if (parent.getData(offerDataKey) != null) return;
parent.setData(offerDataKey, parent.getData(receiveDataKey));
count = 0;
isConveyed = true;
} else if (parent.getData(receiveDataKey) != null && !isConveyed) {
count++;
@@ -24,7 +24,6 @@ public class GeneratorBehaviour extends Component {
@Override
public void update() {
this.parent.setData(dataKey, item.clone());
System.out.println("generate");
}
@Override
@@ -7,6 +7,7 @@ public class OfferBehaviour extends Component {
private Coordinate direction;
private String dataKey;
private Entity receiver;
@@ -21,7 +22,6 @@ public class OfferBehaviour extends Component {
//System.out.println("Entity placed in range");
try {
if (blockContainer.getBlockRelative(direction, parent.getRotation()) == entity) {
//System.out.println("Success");
this.receiver = entity;
}
} catch (IllegalAccessException e) {
@@ -20,7 +20,6 @@ public class RecieveBehaviour extends Component {
System.out.println("Entity placed in range");
try {
if (blockContainer.getBlockRelative(direction, parent.getRotation()) == entity) {
System.out.println("Success");
this.offerer = entity;
}
} catch (IllegalAccessException e) {
@@ -17,17 +17,17 @@ import javafx.scene.shape.TriangleMesh;
public class GeneratorMachine extends Entity {
public GeneratorMachine() {
super();
Rectangle c = new Rectangle(50, 50);
c.setFill(Color.RED);
Rectangle r = new Rectangle(50, 50);
r.setFill(Color.RED);
Polygon t = new Polygon();
t.getPoints().addAll(
Polygon p = new Polygon();
p.getPoints().addAll(
25.0,0.0,
0.0,50.0,
50.0,50.0);
t.setFill(new Color(0,0,0,0.5));
p.setFill(new Color(0,0,0,0.5));
this.getChildren().addAll(c,t);
this.getChildren().addAll(r,p);
}
public GeneratorMachine(BlockContainer blockContainer) {
@@ -0,0 +1,25 @@
package com.yes.yes.entities.machines;
import com.yes.yes.behaviours.ItemBehaviour;
import com.yes.yes.behaviours.PlaceBehaviour;
import com.yes.yes.behaviours.RecieveBehaviour;
import com.yes.yes.utils.BlockContainer;
import com.yes.yes.utils.Direction;
import com.yes.yes.utils.Entity;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
public class HubAcceptor extends Entity {
public HubAcceptor() {
Rectangle r = new Rectangle(50, 50);
r.setFill(Color.PINK);
this.getChildren().add(r);
}
public HubAcceptor(BlockContainer blockContainer) {
this();
this.addBehaviour(new PlaceBehaviour(this, blockContainer));
this.addBehaviour(new RecieveBehaviour(this, blockContainer, Direction.LEFT, "Input"));
}
}
@@ -0,0 +1,29 @@
package com.yes.yes.entities.machines;
import com.yes.yes.behaviours.ItemBehaviour;
import com.yes.yes.behaviours.PlaceBehaviour;
import com.yes.yes.behaviours.RecieveBehaviour;
import com.yes.yes.utils.BlockContainer;
import com.yes.yes.utils.Direction;
import com.yes.yes.utils.Entity;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Text;
public class HubDisplay extends Entity {
public HubDisplay() {
Rectangle r = new Rectangle(50, 50);
r.setFill(Color.PINK);
Text text = new Text("yes");
this.getChildren().addAll(r, text);
}
public HubDisplay(BlockContainer blockContainer) {
this();
this.addBehaviour(new PlaceBehaviour(this, blockContainer));
this.addBehaviour(new ItemBehaviour(this, blockContainer, "objective"));
}
}
@@ -1,9 +1,6 @@
package com.yes.yes.managers;
import com.yes.yes.entities.machines.ConveyorBelt;
import com.yes.yes.entities.machines.GeneratorMachine;
import com.yes.yes.entities.machines.TestMachine;
import com.yes.yes.entities.machines.TestMachine2;
import com.yes.yes.entities.machines.*;
import com.yes.yes.utils.EntityRegistry;
import com.yes.yes.utils.GlobalEventHandler;
import com.yes.yes.utils.RegistryEntry;
@@ -36,8 +33,10 @@ public class GameManager {
try {
EntityRegistry.register(new RegistryEntry("test", "test receive machine", TestMachine.class));
EntityRegistry.register(new RegistryEntry("test2", "test offer machine", TestMachine2.class));
EntityRegistry.register(new RegistryEntry("generator", "generator", GeneratorMachine.class));
EntityRegistry.register(new RegistryEntry("generator", "Generator", GeneratorMachine.class));
EntityRegistry.register(new RegistryEntry("conveyorBelt", "Conveyor Belt", ConveyorBelt.class));
EntityRegistry.register(new RegistryEntry("hub","Central Hub", HubDisplay.class));
EntityRegistry.register(new RegistryEntry("hubAcceptor","Central Hub Acceptor", HubAcceptor.class));
} catch (AlreadyExistsException e) {
e.printStackTrace();
}
@@ -53,7 +52,7 @@ public class GameManager {
ex.printStackTrace();
}
//System.out.println("Finished tick!");
}, 0, 1, TimeUnit.SECONDS);
}, 0, 100, TimeUnit.MILLISECONDS);
GlobalEventHandler.addListener("timerTick", this, (__) -> {
//System.out.println("Tick!");
@@ -7,17 +7,24 @@ import com.yes.yes.world.World;
import javafx.scene.Scene;
import javafx.scene.input.*;
import java.security.Key;
public class PlayerManager {
private static final KeyCombination LEFT_KEY = new KeyCodeCombination(KeyCode.A);
private static final KeyCombination RIGHT_KEY = new KeyCodeCombination(KeyCode.D);
private static final KeyCombination UP_KEY = new KeyCodeCombination(KeyCode.W);
private static final KeyCombination DOWN_KEY = new KeyCodeCombination(KeyCode.S);
private static final KeyCombination DELETE_KEY = new KeyCodeCombination(KeyCode.X);
private static final KeyCombination HOME_KEY = new KeyCodeCombination(KeyCode.INSERT);
private final World world;
private final BuildBox buildBox;
private static final Coordinate START_POSITION = new Coordinate(Integer.MAX_VALUE / -5000,Integer.MAX_VALUE / -5000);
private Coordinate chunkPos = new Coordinate(0, 0);
private int currentRotation = 0;
private Coordinate currentMousePosition;
public PlayerManager(World world, BuildBox buildBox) {
this.world = world;
@@ -32,8 +39,9 @@ public class PlayerManager {
scene.heightProperty().addListener((e) -> redrawChunks());
world.setOnMouseClicked(this::processClick);
world.setTranslateX(Integer.MAX_VALUE / -5000d);
world.setTranslateY(Integer.MAX_VALUE / -5000d);
world.setTranslateX(START_POSITION.x);
world.setTranslateY(START_POSITION.y);
world.setOnMouseMoved((mouse)-> currentMousePosition = new Coordinate((int) mouse.getX(), (int) mouse.getY()));
redrawChunks();
}
@@ -89,6 +97,19 @@ public class PlayerManager {
if (DOWN_KEY.match(key)) {
world.setTranslateY(world.getTranslateY() - 45);
}
if(DELETE_KEY.match(key)) {
Coordinate chunkCoordinate = Coordinate.WorldToChunkCoordinate(currentMousePosition);
Coordinate blockCoordinate = Coordinate.WorldToChunkBlock(currentMousePosition);
Chunk chunk = world.getChunk(chunkCoordinate);
chunk.removeEntity(blockCoordinate);
}
if(HOME_KEY.match(key))
{
world.setTranslateX(START_POSITION.x);
world.setTranslateY(START_POSITION.y);
redrawChunks();
}
Size preferredAmountOfChunks = getPreferredAmountOfChunks();
+2
View File
@@ -5,4 +5,6 @@ module com.yes.yes {
opens com.yes.yes to javafx.fxml;
exports com.yes.yes;
exports com.yes.yes.utils;
opens com.yes.yes.utils to javafx.fxml;
}