Build Fixed
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 253 KiB After Width: | Height: | Size: 141 KiB |
@@ -1,115 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<class-diagram version="1.2.4" icons="true" automaticImage="PNG" always-add-relationships="false" generalizations="true"
|
||||
realizations="true" associations="true" dependencies="false" nesting-relationships="true" router="FAN">
|
||||
<class id="1" language="java" name="de.jaujau.daten.Spielerdaten" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/daten/Spielerdaten.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="823" y="334"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="2" language="java" name="de.jaujau.daten.Texturenpakete" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/daten/Texturenpakete.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="279" width="164" x="47" y="-3"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="3" language="java" name="de.jaujau.daten.Karte" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/daten/Karte.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="835" y="691"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="4" language="java" name="de.jaujau.daten.Spielerverwaltung" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/daten/Spielerverwaltung.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="664" y="-207"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<enumeration id="5" language="java" name="de.jaujau.daten.Farbe" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/daten/Farbe.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="648" y="936"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</enumeration>
|
||||
<class id="6" language="java" name="de.jaujau.daten.Kartensatz" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/daten/Kartensatz.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="1032" y="971"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="7" language="java" name="de.jaujau.daten.Audio" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/daten/Audio.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="2022" y="1441"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="8" language="java" name="de.jaujau.daten.TexturenpaketIntern" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/daten/TexturenpaketIntern.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="417" y="706"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<enumeration id="9" language="java" name="de.jaujau.daten.Ablageort" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/daten/Ablageort.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="825" y="935"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</enumeration>
|
||||
<class id="10" language="java" name="de.jaujau.daten.Texturenpaket" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/daten/Texturenpaket.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="424" y="430"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<enumeration id="11" language="java" name="de.jaujau.daten.Spieler" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/daten/Spieler.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="2223" y="1450"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</enumeration>
|
||||
<enumeration id="12" language="java" name="de.jaujau.daten.Wert" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/daten/Wert.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="1508" y="773"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</enumeration>
|
||||
<class id="13" language="java" name="de.jaujau.gui.Dashboard_GUI" project="inb1-a-jaujau"
|
||||
<class id="1" language="java" name="de.jaujau.gui.Dashboard_GUI" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/gui/Dashboard_GUI.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="1170" y="108"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
@@ -118,7 +10,7 @@
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="14" language="java" name="de.jaujau.gui.Hilfe_GUI" project="inb1-a-jaujau"
|
||||
<class id="2" language="java" name="de.jaujau.gui.Hilfe_GUI" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/gui/Hilfe_GUI.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="1526" y="1382"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
@@ -127,7 +19,7 @@
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="15" language="java" name="de.jaujau.gui.texturenauswaehlen_GUI" project="inb1-a-jaujau"
|
||||
<class id="3" language="java" name="de.jaujau.gui.texturenauswaehlen_GUI" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/gui/texturenauswaehlen_GUI.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="196" y="-272"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
@@ -136,7 +28,7 @@
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="16" language="java" name="de.jaujau.gui.GUI" project="inb1-a-jaujau"
|
||||
<class id="4" language="java" name="de.jaujau.gui.GUI" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/gui/GUI.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="1516" y="1597"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
|
||||
@@ -145,7 +37,7 @@
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="17" language="java" name="de.jaujau.spiellogik.Computer_gegner" project="inb1-a-jaujau"
|
||||
<class id="5" language="java" name="de.jaujau.spiellogik.Computer_gegner" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/spiellogik/Computer_gegner.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="845" y="1441"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="true" signature="true"
|
||||
@@ -154,7 +46,7 @@
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="18" language="java" name="de.jaujau.spiellogik.Anwendung" project="inb1-a-jaujau"
|
||||
<class id="6" language="java" name="de.jaujau.spiellogik.Anwendung" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/spiellogik/Anwendung.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="446" y="1674"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="true" signature="true"
|
||||
@@ -163,7 +55,7 @@
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="19" language="java" name="de.jaujau.spiellogik.Spielzug" project="inb1-a-jaujau"
|
||||
<class id="7" language="java" name="de.jaujau.spiellogik.Spielzug" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/spiellogik/Spielzug.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="1426" y="1063"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="true" signature="true"
|
||||
@@ -172,7 +64,7 @@
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<class id="20" language="java" name="de.jaujau.spiellogik.Spiel" project="inb1-a-jaujau"
|
||||
<class id="8" language="java" name="de.jaujau.spiellogik.Spiel" project="inb1-a-jaujau"
|
||||
file="/inb1-a-jaujau/src/de/jaujau/spiellogik/Spiel.java" binary="false" corner="BOTTOM_RIGHT">
|
||||
<position height="-1" width="-1" x="2049" y="982"/>
|
||||
<display autosize="true" stereotype="true" package="true" initial-value="true" signature="true"
|
||||
@@ -181,322 +73,90 @@
|
||||
<operations public="true" package="true" protected="true" private="true" static="true"/>
|
||||
</display>
|
||||
</class>
|
||||
<association id="21">
|
||||
<end type="SOURCE" refId="15" navigable="false">
|
||||
<attribute id="22" name="spielerverwaltung">
|
||||
<association id="9">
|
||||
<end type="SOURCE" refId="4" navigable="false">
|
||||
<attribute id="10" name="aktuellesSpiel">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="23" minimum="0" maximum="1">
|
||||
<multiplicity id="11" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="4" navigable="true"/>
|
||||
<end type="TARGET" refId="8" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="24">
|
||||
<end type="SOURCE" refId="17" navigable="false">
|
||||
<attribute id="25" name="kartensatz">
|
||||
<association id="12">
|
||||
<end type="SOURCE" refId="8" navigable="false">
|
||||
<attribute id="13" name="spielzug">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="26" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="6" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="27">
|
||||
<end type="SOURCE" refId="17" navigable="false">
|
||||
<attribute id="28" name="letztekartefarbe">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="29" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="5" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="30">
|
||||
<end type="SOURCE" refId="18" navigable="false">
|
||||
<attribute id="31" name="texturenpakete">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="32" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="2" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="33">
|
||||
<end type="SOURCE" refId="18" navigable="false">
|
||||
<attribute id="34" name="view">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="35" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="16" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="36">
|
||||
<end type="SOURCE" refId="20" navigable="false">
|
||||
<attribute id="37" name="kartensatz">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="38" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="6" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="39">
|
||||
<end type="SOURCE" refId="20" navigable="false">
|
||||
<attribute id="40" name="audio">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="41" minimum="0" maximum="1">
|
||||
<multiplicity id="14" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="7" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<generalization id="42">
|
||||
<end type="SOURCE" refId="8"/>
|
||||
<end type="TARGET" refId="10"/>
|
||||
</generalization>
|
||||
<association id="43">
|
||||
<end type="SOURCE" refId="20" navigable="false">
|
||||
<attribute id="44" name="gelegterWert">
|
||||
<association id="15">
|
||||
<end type="SOURCE" refId="8" navigable="false">
|
||||
<attribute id="16" name="dashboard">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="45" minimum="0" maximum="1">
|
||||
<multiplicity id="17" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="12" navigable="true"/>
|
||||
<end type="TARGET" refId="1" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="46">
|
||||
<end type="SOURCE" refId="16" navigable="false">
|
||||
<attribute id="47" name="frame">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="48" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="14" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="49">
|
||||
<end type="SOURCE" refId="13" navigable="false">
|
||||
<attribute id="50" name="spielerverwaltung">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="51" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="4" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="52">
|
||||
<end type="SOURCE" refId="16" navigable="false">
|
||||
<attribute id="53" name="aktuellesSpiel">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="54" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="20" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="55">
|
||||
<end type="SOURCE" refId="17" navigable="false">
|
||||
<attribute id="56" name="letztekartewert">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="57" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="12" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="58">
|
||||
<end type="SOURCE" refId="13" navigable="false">
|
||||
<attribute id="59" name="texturenpakete">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="60" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="2" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="61">
|
||||
<end type="SOURCE" refId="2" navigable="false">
|
||||
<attribute id="62" name="TexturenpaketListe">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="63" minimum="0" maximum="2147483647">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="10" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="64">
|
||||
<end type="SOURCE" refId="3" navigable="false">
|
||||
<attribute id="65" name="WERT">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="66" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="12" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="67">
|
||||
<end type="SOURCE" refId="19" navigable="false">
|
||||
<attribute id="68" name="kartensatz">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="69" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="6" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="70">
|
||||
<end type="SOURCE" refId="18" navigable="false">
|
||||
<attribute id="71" name="speicherung">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="72" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="4" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="73">
|
||||
<end type="SOURCE" refId="20" navigable="false">
|
||||
<attribute id="74" name="amZug">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="75" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="11" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="76">
|
||||
<end type="SOURCE" refId="20" navigable="false">
|
||||
<attribute id="77" name="dashboard">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="78" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="13" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="79">
|
||||
<end type="SOURCE" refId="20" navigable="false">
|
||||
<attribute id="80" name="computerGegner">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="81" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="17" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="82">
|
||||
<end type="SOURCE" refId="13" navigable="false">
|
||||
<attribute id="83" name="aktuellesSpiel">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="84" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="20" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="85">
|
||||
<association id="18">
|
||||
<end type="SOURCE" refId="6" navigable="false">
|
||||
<attribute id="86" name="kartensatz">
|
||||
<attribute id="19" name="view">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="87" minimum="0" maximum="2147483647">
|
||||
<multiplicity id="20" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="3" navigable="true"/>
|
||||
<end type="TARGET" refId="4" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="88">
|
||||
<end type="SOURCE" refId="3" navigable="false">
|
||||
<attribute id="89" name="Ablageort">
|
||||
<association id="21">
|
||||
<end type="SOURCE" refId="8" navigable="false">
|
||||
<attribute id="22" name="computerGegner">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="90" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="9" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="91">
|
||||
<end type="SOURCE" refId="20" navigable="false">
|
||||
<attribute id="92" name="spielzug">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="93" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="19" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="94">
|
||||
<end type="SOURCE" refId="3" navigable="false">
|
||||
<attribute id="95" name="FARBE">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="96" minimum="0" maximum="1">
|
||||
<multiplicity id="23" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="5" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="97">
|
||||
<end type="SOURCE" refId="15" navigable="false">
|
||||
<attribute id="98" name="pakete">
|
||||
<association id="24">
|
||||
<end type="SOURCE" refId="4" navigable="false">
|
||||
<attribute id="25" name="frame">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="99" minimum="0" maximum="1">
|
||||
<multiplicity id="26" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="2" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<association id="27">
|
||||
<end type="SOURCE" refId="1" navigable="false">
|
||||
<attribute id="28" name="aktuellesSpiel">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</attribute>
|
||||
<multiplicity id="29" minimum="0" maximum="1">
|
||||
<position height="0" width="0" x="0" y="0"/>
|
||||
</multiplicity>
|
||||
</end>
|
||||
<end type="TARGET" refId="8" navigable="true"/>
|
||||
<display labels="true" multiplicity="true"/>
|
||||
</association>
|
||||
<classifier-display autosize="true" stereotype="true" package="true" initial-value="true" signature="true"
|
||||
sort-features="false" accessors="true" visibility="true">
|
||||
<attributes public="true" package="true" protected="true" private="true" static="true"/>
|
||||
|
@@ -1,194 +0,0 @@
|
||||
package de.jaujau.daten;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.File;
|
||||
import java.io.FileReader;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
||||
/**
|
||||
* Verwaltung der Spieler und deren Highscore
|
||||
* @author Alaa Aldin
|
||||
*
|
||||
*/
|
||||
public class Spielerverwaltung {
|
||||
|
||||
|
||||
private File datei;
|
||||
private ArrayList <Spielerdaten> spielerliste = new ArrayList<Spielerdaten>();
|
||||
private String aktuellerSpielerName;
|
||||
private int aktuellerSpielerNr;
|
||||
private boolean debug;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param Datei
|
||||
*/
|
||||
public Spielerverwaltung(String Datei) {
|
||||
datei = new File(Datei);
|
||||
spielerliste = new ArrayList<Spielerdaten>();
|
||||
aktuellerSpielerName = "";
|
||||
aktuellerSpielerNr = -1;
|
||||
debug = true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Spieler Liste aus Datei einlesen
|
||||
*/
|
||||
public void lesenDatei() {
|
||||
if(datei.exists() || datei.canRead()) {
|
||||
BufferedReader reader;
|
||||
try {
|
||||
reader = new BufferedReader(new FileReader(datei));
|
||||
String line = reader.readLine();
|
||||
while (line != null) {
|
||||
String [] newline = line.split(";");
|
||||
|
||||
//Nur einlesen wenn 2 Objekte vorhanden sind
|
||||
if(newline.length == 2) {
|
||||
String name = newline[0];
|
||||
int score = Integer.parseInt(newline[1]);
|
||||
spielerliste.add(new Spielerdaten (name,score));
|
||||
}
|
||||
line = reader.readLine();
|
||||
}
|
||||
reader.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
if(debug)System.out.println("SPIELERVERWALTUN: " + spielerliste.size() + " Enträge gelesen");
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Spieler liste in datei schreiben
|
||||
*/
|
||||
public void schreibeDatei() {
|
||||
if(spielerliste.size() > 0) {
|
||||
//Spielerliste ist nicht leer
|
||||
try {
|
||||
BufferedWriter writer = new BufferedWriter(new FileWriter(datei)); //Erzeugen eines effizienten Writers für Textdateien
|
||||
for (int i = 0; i < spielerliste.size(); i++) {
|
||||
writer.write(spielerliste.get(i).getName() + ";" + Integer.toString(spielerliste.get(i).getPunktestand()));
|
||||
writer.newLine();
|
||||
}
|
||||
writer.close();
|
||||
}
|
||||
catch(IOException ioe) {
|
||||
System.err.println(ioe);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param spielername
|
||||
*/
|
||||
public void setSpieler(String spielername) {
|
||||
if(spielerVorhanden(spielername)) {
|
||||
aktuellerSpielerName = spielername;
|
||||
aktuellerSpielerNr = getSpielerNr(spielername);
|
||||
if(debug)System.out.println("SPIELERVERWALTUN: Spieler " + spielername + " gesetzt");
|
||||
}
|
||||
else {
|
||||
spielerliste.add(new Spielerdaten(spielername,0));
|
||||
aktuellerSpielerNr = getSpielerNr(spielername);
|
||||
if(debug)System.out.println("SPIELERVERWALTUN: Spieler " + spielername + " hinzugefügt");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getSpieler() {
|
||||
return aktuellerSpielerName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Highscore Liste als String Array ausgeben
|
||||
* @return
|
||||
*/
|
||||
public String[][] getHighscoreTabelle() {
|
||||
String [][] highscore = new String[spielerliste.size()][2];
|
||||
for(int i = 0; i < spielerliste.size(); i++) {
|
||||
highscore[i][0] = spielerliste.get(i).getName();
|
||||
highscore[i][1] = Integer.toString(spielerliste.get(i).getPunktestand());
|
||||
}
|
||||
|
||||
return highscore;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gibt das Level des Aktuellenspielers zurück
|
||||
* @return
|
||||
*/
|
||||
public int getLevel() {
|
||||
if(spielerliste.get(aktuellerSpielerNr).getPunktestand() > 0) {
|
||||
return (int) Math.log(spielerliste.get(aktuellerSpielerNr).getPunktestand());
|
||||
}
|
||||
else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param punkte
|
||||
*/
|
||||
public void erhoehePunkte(int punkte) {
|
||||
int punkteNeu = spielerliste.get(aktuellerSpielerNr).getPunktestand() + punkte;
|
||||
if(punkteNeu >= 0) {
|
||||
spielerliste.get(aktuellerSpielerNr).setPunktestand(punkteNeu);
|
||||
if(debug)System.out.println("SPIELERVERWALTUN: Punkte Neu: " + punkteNeu);
|
||||
}
|
||||
else {
|
||||
if(debug)System.out.println("SPIELERVERWALTUN: Punkte Neu: 0");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param name
|
||||
* @return
|
||||
*/
|
||||
private boolean spielerVorhanden(String name) {
|
||||
for(int i = 0; i < spielerliste.size(); i++) {
|
||||
if(spielerliste.get(i).getName().equals(name)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param spielername
|
||||
* @return
|
||||
*/
|
||||
private int getSpielerNr(String spielername) {
|
||||
for(int i = 0; i < spielerliste.size(); i++) {
|
||||
if(spielerliste.get(i).getName().equals(spielername)) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
@@ -213,7 +213,7 @@ public class GUI extends JFrame{
|
||||
@Override
|
||||
public void windowClosing(WindowEvent e)
|
||||
{
|
||||
System.out.println("Closed");
|
||||
System.out.println("GUI: Geschlossen");
|
||||
speicherung.schreibeDatei();
|
||||
e.getWindow().dispose();
|
||||
}
|
||||
|
@@ -1,195 +0,0 @@
|
||||
/**
|
||||
|
||||
* @author Alaa Aldin
|
||||
|
||||
* @version 1.0
|
||||
|
||||
*/
|
||||
package de.jaujau.spieler;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.FileReader;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class SpielerverwaltungOLD {
|
||||
private int local;
|
||||
private int level;
|
||||
private Spielerdaten spieler;
|
||||
private Spielerdaten aktuellerSpieler;
|
||||
private ArrayList <Spielerdaten> daten = new ArrayList<Spielerdaten>();
|
||||
private String [][] transdaten;
|
||||
public void addSpieler(String name) { //Neue Spieler hinzuf<75>gen
|
||||
//leseDaten();
|
||||
daten.add(new Spielerdaten(name, 0));
|
||||
}
|
||||
|
||||
public void setaktuellerSpieler(String name) {
|
||||
aktuellerSpieler = sucheSpieler(name);
|
||||
}
|
||||
|
||||
public Spielerdaten sucheSpieler(String name) {
|
||||
for (int i = 0; i < daten.size(); i++) {
|
||||
if (daten.get(i).getName().equals(name)) {
|
||||
System.out.println("SPIELERVERWALTUNG: Spieler gefunden");
|
||||
return daten.get(i);
|
||||
}
|
||||
}
|
||||
addSpieler(name);
|
||||
System.out.println("SPIELERVERWALTUNG: Neuer Spieler erstellt");
|
||||
return daten.get(daten.size()-1);
|
||||
|
||||
}
|
||||
|
||||
public Spielerdaten getaktuellerSpieler() {
|
||||
return aktuellerSpieler;
|
||||
}
|
||||
/**
|
||||
* Set the value of level
|
||||
*
|
||||
* @param newlevel the new value of level
|
||||
*/
|
||||
|
||||
public void setLevel(int newlevel) {
|
||||
level = newlevel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value of level
|
||||
*
|
||||
* @return the value of level
|
||||
*/
|
||||
|
||||
public int getLevel() {
|
||||
return level;
|
||||
}
|
||||
|
||||
public String [][] toArray (ArrayList <Spielerdaten> a){ //Arraylist in Array umwandeln
|
||||
String [][]neuerArray = new String [a.size()][2];
|
||||
System.out.println("TOARRAY: " + daten.size());
|
||||
for (int j = 0 ; j< a.size(); j++) {
|
||||
neuerArray[j][0] = a.get(j).getName();
|
||||
neuerArray[j][1] = Integer.toString(a.get(j).getPunktestand());
|
||||
}
|
||||
return neuerArray;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value of spieler arraylist von Spieler
|
||||
*
|
||||
* @param newSpieler the new value of spieler
|
||||
*/
|
||||
|
||||
public void setSpieler(String a) { //setze einen Spieler ein.
|
||||
leseDaten();
|
||||
transdaten = toArray(getDaten());
|
||||
System.out.println(transdaten.length);
|
||||
for (int i = 0; i < transdaten.length; i++) {
|
||||
if (transdaten[i][0].matches(a)) {
|
||||
setPlace(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
public void editName (String alt, String neu) { //Editieren des Namen des Spielers
|
||||
setSpieler(alt);
|
||||
int place = getPlace();
|
||||
transdaten[place][0] = neu;
|
||||
//daten.get(place).setName(neu);
|
||||
speichernDaten();
|
||||
}
|
||||
public void erhoehePunkte (String a) { //erhoeht die Punkten des Spielers um 1
|
||||
setSpieler(a);
|
||||
int place = getPlace();
|
||||
int neuerWert = Integer.parseInt(transdaten[place][1])+1;
|
||||
transdaten[place][1] = Integer.toString(neuerWert);
|
||||
daten.get(place).setPunktestand(neuerWert);
|
||||
speichernDaten();
|
||||
}
|
||||
|
||||
|
||||
public void setPlace(int loc) { //setzt der Ort der Daten im Array
|
||||
local = loc;
|
||||
}
|
||||
|
||||
public int getPlace() { //Ort der Daten im Array
|
||||
return local;
|
||||
}
|
||||
/**
|
||||
* Get the value of spieler arraylist von Spieler
|
||||
*
|
||||
* @return the value of spieler
|
||||
*/
|
||||
|
||||
|
||||
public ArrayList<Spielerdaten> getDaten() { // Zur<75>ckgeben der gelesenen Daten aus der Textdatei
|
||||
return daten;
|
||||
}
|
||||
|
||||
public void umsetzeDaten( String [][] neueDaten) {//Arraylist aus Array
|
||||
for (int i = 0 ; i < neueDaten.length; i++) {
|
||||
daten.add(new Spielerdaten (neueDaten[i][0], Integer.parseInt(neueDaten[i][1])));
|
||||
}
|
||||
}
|
||||
/**
|
||||
*/
|
||||
public void leseDaten() { //lese Daten aus der Textdatei und speichere die in die Arraylist
|
||||
umsetzeDaten(gethighscoreTabelle());
|
||||
/* for (Spielerdaten a : daten) { // M<>ll
|
||||
System.out.println(a.getName() + " " +a.getPunktestand());
|
||||
}*/
|
||||
}
|
||||
|
||||
public void speichernDaten() { //Speichere die bearbeiteten Daten in die Textdatei (Aus der Arraylist)
|
||||
ArrayList <Spielerdaten> newDaten = getDaten();
|
||||
String [][] umwandelteDaten = new String [newDaten.size()][2];
|
||||
int i = 0;
|
||||
if (! newDaten.isEmpty()) {
|
||||
for (Spielerdaten inhalt : newDaten ) {
|
||||
umwandelteDaten [i][0] = inhalt.getName();
|
||||
umwandelteDaten [i][1] = Integer.toString(inhalt.getPunktestand());
|
||||
i++;
|
||||
}
|
||||
try {
|
||||
BufferedWriter writer = new BufferedWriter(new FileWriter("highscore.txt")); //Erzeugen eines effizienten Writers f<>r Textdateien
|
||||
for (int j = 0; j < umwandelteDaten.length; j++) {
|
||||
writer.write(umwandelteDaten [j][0] +";"+umwandelteDaten [j][1]);
|
||||
writer.newLine();
|
||||
}
|
||||
writer.close();
|
||||
}
|
||||
catch(IOException ioe) {
|
||||
System.err.println(ioe);
|
||||
}
|
||||
}
|
||||
else
|
||||
System.err.println("Es gibt keine Dateien zum Speichern!");
|
||||
}
|
||||
|
||||
public void dateiEinlesen() {
|
||||
BufferedReader reader;
|
||||
try {
|
||||
reader = new BufferedReader(new FileReader("highscore.txt"));
|
||||
String line = reader.readLine();
|
||||
while (line != null) {
|
||||
String [] newline = line.split(";");
|
||||
String name = newline[0];
|
||||
int score = Integer.parseInt(newline[1]);
|
||||
daten.add(new Spielerdaten (name,score));
|
||||
line = reader.readLine();
|
||||
}
|
||||
reader.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// die Daten als zweidimensionales Array
|
||||
// zurueckgegeben
|
||||
public String[][] gethighscoreTabelle() {
|
||||
System.out.println(daten.size());
|
||||
return toArray(daten);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user