forked from IF-LK-2020/wordle
umlet
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
public class WordleServer extends Server {
|
public class WordleServer extends Server {
|
||||||
|
|
||||||
publib static final int DEFAULT_PORT = 1000;
|
public static final int DEFAULT_PORT = 1000;
|
||||||
|
|
||||||
public static void main( String[] args ) {
|
public static void main( String[] args ) {
|
||||||
new WordleServer();
|
new WordleServer();
|
||||||
@@ -26,17 +26,17 @@ public class WordleServer extends Server {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void processNewConnection( String pClientIP, int pClientPort ) {
|
public void processNewConnection( String pClientIP, int pClientPort ) {
|
||||||
|
System.out.println("New connection: " + pClientPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void processClosingConnection( String pClientIP, int pClientPort ) {
|
public void processClosingConnection( String pClientIP, int pClientPort ) {
|
||||||
|
System.out.println("Closed connection: " + pClientPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void processMessage( String pClientIP, int pClientPort, String pMessage ) {
|
public void processMessage( String pClientIP, int pClientPort, String pMessage ) {
|
||||||
|
System.out.println("Message: " + pMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
105
umlet.uxf
Normal file
105
umlet.uxf
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<diagram program="umlet" version="14.3.0">
|
||||||
|
<zoom_level>9</zoom_level>
|
||||||
|
<element>
|
||||||
|
<id>UMLClass</id>
|
||||||
|
<coordinates>
|
||||||
|
<x>612</x>
|
||||||
|
<y>234</y>
|
||||||
|
<w>90</w>
|
||||||
|
<h>27</h>
|
||||||
|
</coordinates>
|
||||||
|
<panel_attributes>Server</panel_attributes>
|
||||||
|
<additional_attributes/>
|
||||||
|
</element>
|
||||||
|
<element>
|
||||||
|
<id>UMLClass</id>
|
||||||
|
<coordinates>
|
||||||
|
<x>612</x>
|
||||||
|
<y>351</y>
|
||||||
|
<w>90</w>
|
||||||
|
<h>27</h>
|
||||||
|
</coordinates>
|
||||||
|
<panel_attributes>WordleServer</panel_attributes>
|
||||||
|
<additional_attributes/>
|
||||||
|
</element>
|
||||||
|
<element>
|
||||||
|
<id>Relation</id>
|
||||||
|
<coordinates>
|
||||||
|
<x>648</x>
|
||||||
|
<y>252</y>
|
||||||
|
<w>27</w>
|
||||||
|
<h>117</h>
|
||||||
|
</coordinates>
|
||||||
|
<panel_attributes>lt=<<-</panel_attributes>
|
||||||
|
<additional_attributes>10.0;10.0;10.0;110.0</additional_attributes>
|
||||||
|
</element>
|
||||||
|
<element>
|
||||||
|
<id>UMLClass</id>
|
||||||
|
<coordinates>
|
||||||
|
<x>387</x>
|
||||||
|
<y>441</y>
|
||||||
|
<w>90</w>
|
||||||
|
<h>27</h>
|
||||||
|
</coordinates>
|
||||||
|
<panel_attributes>User</panel_attributes>
|
||||||
|
<additional_attributes/>
|
||||||
|
</element>
|
||||||
|
<element>
|
||||||
|
<id>UMLClass</id>
|
||||||
|
<coordinates>
|
||||||
|
<x>351</x>
|
||||||
|
<y>351</y>
|
||||||
|
<w>126</w>
|
||||||
|
<h>27</h>
|
||||||
|
</coordinates>
|
||||||
|
<panel_attributes>DatabaseConnector</panel_attributes>
|
||||||
|
<additional_attributes/>
|
||||||
|
</element>
|
||||||
|
<element>
|
||||||
|
<id>Relation</id>
|
||||||
|
<coordinates>
|
||||||
|
<x>648</x>
|
||||||
|
<y>369</y>
|
||||||
|
<w>27</w>
|
||||||
|
<h>90</h>
|
||||||
|
</coordinates>
|
||||||
|
<panel_attributes>lt=<.
|
||||||
|
</panel_attributes>
|
||||||
|
<additional_attributes>10.0;80.0;10.0;10.0</additional_attributes>
|
||||||
|
</element>
|
||||||
|
<element>
|
||||||
|
<id>UMLClass</id>
|
||||||
|
<coordinates>
|
||||||
|
<x>567</x>
|
||||||
|
<y>441</y>
|
||||||
|
<w>189</w>
|
||||||
|
<h>171</h>
|
||||||
|
</coordinates>
|
||||||
|
<panel_attributes>Game
|
||||||
|
--
|
||||||
|
-wordleServer: WordleServer
|
||||||
|
-wordle: String
|
||||||
|
-timesPlayed: int
|
||||||
|
-winPercentage: int
|
||||||
|
-currentStreak: int
|
||||||
|
-maxStreak: int
|
||||||
|
-wonInTurn: int[]
|
||||||
|
|
||||||
|
-words: String[]
|
||||||
|
-wordCount: int
|
||||||
|
</panel_attributes>
|
||||||
|
<additional_attributes/>
|
||||||
|
</element>
|
||||||
|
<element>
|
||||||
|
<id>UMLClass</id>
|
||||||
|
<coordinates>
|
||||||
|
<x>819</x>
|
||||||
|
<y>441</y>
|
||||||
|
<w>90</w>
|
||||||
|
<h>27</h>
|
||||||
|
</coordinates>
|
||||||
|
<panel_attributes>GUI</panel_attributes>
|
||||||
|
<additional_attributes/>
|
||||||
|
</element>
|
||||||
|
</diagram>
|
||||||
Reference in New Issue
Block a user