Ändra från egotripp till egodipp
							
								
								
									
										8
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						@@ -4,7 +4,7 @@
 | 
				
			|||||||
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 | 
					  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 | 
				
			||||||
  <modelVersion>4.0.0</modelVersion>
 | 
					  <modelVersion>4.0.0</modelVersion>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <groupId>com.billenius</groupId>
 | 
					  <groupId>com.limone</groupId>
 | 
				
			||||||
  <artifactId>Schack</artifactId>
 | 
					  <artifactId>Schack</artifactId>
 | 
				
			||||||
  <version>1</version>
 | 
					  <version>1</version>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -39,7 +39,7 @@
 | 
				
			|||||||
      <resource>
 | 
					      <resource>
 | 
				
			||||||
        <directory>src/main/java/</directory>
 | 
					        <directory>src/main/java/</directory>
 | 
				
			||||||
        <includes>
 | 
					        <includes>
 | 
				
			||||||
          <include>com/billenius/img/</include>
 | 
					          <include>com/limone/img/</include>
 | 
				
			||||||
        </includes>
 | 
					        </includes>
 | 
				
			||||||
      </resource>
 | 
					      </resource>
 | 
				
			||||||
    </resources>
 | 
					    </resources>
 | 
				
			||||||
@@ -97,7 +97,7 @@
 | 
				
			|||||||
            <configuration>
 | 
					            <configuration>
 | 
				
			||||||
              <archive>
 | 
					              <archive>
 | 
				
			||||||
                <manifest>
 | 
					                <manifest>
 | 
				
			||||||
                  <mainClass>com.billenius.schack.Schack</mainClass>
 | 
					                  <mainClass>com.limone.schack.Schack</mainClass>
 | 
				
			||||||
                </manifest>
 | 
					                </manifest>
 | 
				
			||||||
              </archive>
 | 
					              </archive>
 | 
				
			||||||
              <descriptorRefs>
 | 
					              <descriptorRefs>
 | 
				
			||||||
@@ -114,7 +114,7 @@
 | 
				
			|||||||
          <archive>
 | 
					          <archive>
 | 
				
			||||||
            <manifest>
 | 
					            <manifest>
 | 
				
			||||||
              <addClasspath>true</addClasspath>
 | 
					              <addClasspath>true</addClasspath>
 | 
				
			||||||
              <mainClass>com.billenius.schack.Schack</mainClass>
 | 
					              <mainClass>com.limone.schack.Schack</mainClass>
 | 
				
			||||||
            </manifest>
 | 
					            </manifest>
 | 
				
			||||||
          </archive>
 | 
					          </archive>
 | 
				
			||||||
        </configuration>
 | 
					        </configuration>
 | 
				
			||||||
 
 | 
				
			|||||||
| 
		 Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB  | 
| 
		 Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB  | 
| 
		 Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB  | 
| 
		 Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB  | 
| 
		 Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB  | 
| 
		 Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB  | 
| 
		 Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB  | 
| 
		 Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB  | 
| 
		 Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB  | 
| 
		 Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB  | 
| 
		 Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB  | 
| 
		 Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB  | 
| 
		 Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 132 KiB  | 
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package com.billenius.schack;
 | 
					package com.limone.schack;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.awt.Point;
 | 
					import java.awt.Point;
 | 
				
			||||||
import java.io.Serializable;
 | 
					import java.io.Serializable;
 | 
				
			||||||
@@ -1,8 +1,8 @@
 | 
				
			|||||||
package com.billenius.schack;
 | 
					package com.limone.schack;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.awt.Point;
 | 
					import java.awt.Point;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.billenius.schack.pieces.Piece;
 | 
					import com.limone.schack.pieces.Piece;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class Move extends BasicMove {
 | 
					public class Move extends BasicMove {
 | 
				
			||||||
    public Piece movedPiece;
 | 
					    public Piece movedPiece;
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package com.billenius.schack;
 | 
					package com.limone.schack;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.awt.Component;
 | 
					import java.awt.Component;
 | 
				
			||||||
import java.awt.image.BufferedImage;
 | 
					import java.awt.image.BufferedImage;
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package com.billenius.schack;
 | 
					package com.limone.schack;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.awt.BorderLayout;
 | 
					import java.awt.BorderLayout;
 | 
				
			||||||
import java.awt.Dimension;
 | 
					import java.awt.Dimension;
 | 
				
			||||||
@@ -25,10 +25,10 @@ import javax.swing.JScrollPane;
 | 
				
			|||||||
import javax.swing.JSplitPane;
 | 
					import javax.swing.JSplitPane;
 | 
				
			||||||
import javax.swing.UIManager;
 | 
					import javax.swing.UIManager;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.billenius.schack.boards.Board;
 | 
					 | 
				
			||||||
import com.billenius.schack.boards.NetworkBoard;
 | 
					 | 
				
			||||||
import com.billenius.schack.boards.SameBoard;
 | 
					 | 
				
			||||||
import com.formdev.flatlaf.FlatLightLaf;
 | 
					import com.formdev.flatlaf.FlatLightLaf;
 | 
				
			||||||
 | 
					import com.limone.schack.boards.Board;
 | 
				
			||||||
 | 
					import com.limone.schack.boards.NetworkBoard;
 | 
				
			||||||
 | 
					import com.limone.schack.boards.SameBoard;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package com.billenius.schack;
 | 
					package com.limone.schack;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package com.billenius.schack.boards;
 | 
					package com.limone.schack.boards;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.awt.Color;
 | 
					import java.awt.Color;
 | 
				
			||||||
import java.awt.Dimension;
 | 
					import java.awt.Dimension;
 | 
				
			||||||
@@ -14,15 +14,15 @@ import java.util.List;
 | 
				
			|||||||
import javax.swing.DefaultListModel;
 | 
					import javax.swing.DefaultListModel;
 | 
				
			||||||
import javax.swing.JPanel;
 | 
					import javax.swing.JPanel;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.billenius.schack.Move;
 | 
					import com.limone.schack.Move;
 | 
				
			||||||
import com.billenius.schack.SchackState;
 | 
					import com.limone.schack.SchackState;
 | 
				
			||||||
import com.billenius.schack.pieces.Bishop;
 | 
					import com.limone.schack.pieces.Bishop;
 | 
				
			||||||
import com.billenius.schack.pieces.Horse;
 | 
					import com.limone.schack.pieces.Horse;
 | 
				
			||||||
import com.billenius.schack.pieces.King;
 | 
					import com.limone.schack.pieces.King;
 | 
				
			||||||
import com.billenius.schack.pieces.Pawn;
 | 
					import com.limone.schack.pieces.Pawn;
 | 
				
			||||||
import com.billenius.schack.pieces.Piece;
 | 
					import com.limone.schack.pieces.Piece;
 | 
				
			||||||
import com.billenius.schack.pieces.Queen;
 | 
					import com.limone.schack.pieces.Queen;
 | 
				
			||||||
import com.billenius.schack.pieces.Rook;
 | 
					import com.limone.schack.pieces.Rook;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public abstract class Board extends JPanel implements MouseListener {
 | 
					public abstract class Board extends JPanel implements MouseListener {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package com.billenius.schack.boards;
 | 
					package com.limone.schack.boards;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.awt.BorderLayout;
 | 
					import java.awt.BorderLayout;
 | 
				
			||||||
import java.awt.Dimension;
 | 
					import java.awt.Dimension;
 | 
				
			||||||
@@ -18,10 +18,10 @@ import javax.swing.JLabel;
 | 
				
			|||||||
import javax.swing.JOptionPane;
 | 
					import javax.swing.JOptionPane;
 | 
				
			||||||
import javax.swing.JPanel;
 | 
					import javax.swing.JPanel;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.billenius.schack.BasicMove;
 | 
					import com.limone.schack.BasicMove;
 | 
				
			||||||
import com.billenius.schack.Move;
 | 
					import com.limone.schack.Move;
 | 
				
			||||||
import com.billenius.schack.SchackState;
 | 
					import com.limone.schack.SchackState;
 | 
				
			||||||
import com.billenius.schack.pieces.Piece;
 | 
					import com.limone.schack.pieces.Piece;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public final class NetworkBoard extends Board implements Runnable {
 | 
					public final class NetworkBoard extends Board implements Runnable {
 | 
				
			||||||
    public final static int PORT = 1339;
 | 
					    public final static int PORT = 1339;
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package com.billenius.schack.boards;
 | 
					package com.limone.schack.boards;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.io.IOException;
 | 
					import java.io.IOException;
 | 
				
			||||||
import java.util.ArrayList;
 | 
					import java.util.ArrayList;
 | 
				
			||||||
@@ -6,9 +6,9 @@ import java.util.ArrayList;
 | 
				
			|||||||
import javax.swing.DefaultListModel;
 | 
					import javax.swing.DefaultListModel;
 | 
				
			||||||
import javax.swing.JOptionPane;
 | 
					import javax.swing.JOptionPane;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.billenius.schack.Move;
 | 
					import com.limone.schack.Move;
 | 
				
			||||||
import com.billenius.schack.SchackState;
 | 
					import com.limone.schack.SchackState;
 | 
				
			||||||
import com.billenius.schack.pieces.Piece;
 | 
					import com.limone.schack.pieces.Piece;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public final class SameBoard extends Board {
 | 
					public final class SameBoard extends Board {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package com.billenius.schack.pieces;
 | 
					package com.limone.schack.pieces;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.awt.Point;
 | 
					import java.awt.Point;
 | 
				
			||||||
import java.io.IOException;
 | 
					import java.io.IOException;
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package com.billenius.schack.pieces;
 | 
					package com.limone.schack.pieces;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.awt.Point;
 | 
					import java.awt.Point;
 | 
				
			||||||
import java.io.IOException;
 | 
					import java.io.IOException;
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package com.billenius.schack.pieces;
 | 
					package com.limone.schack.pieces;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.awt.Point;
 | 
					import java.awt.Point;
 | 
				
			||||||
import java.io.IOException;
 | 
					import java.io.IOException;
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package com.billenius.schack.pieces;
 | 
					package com.limone.schack.pieces;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.awt.Point;
 | 
					import java.awt.Point;
 | 
				
			||||||
import java.io.IOException;
 | 
					import java.io.IOException;
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package com.billenius.schack.pieces;
 | 
					package com.limone.schack.pieces;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.awt.HeadlessException;
 | 
					import java.awt.HeadlessException;
 | 
				
			||||||
import java.awt.Point;
 | 
					import java.awt.Point;
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package com.billenius.schack.pieces;
 | 
					package com.limone.schack.pieces;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.awt.Graphics2D;
 | 
					import java.awt.Graphics2D;
 | 
				
			||||||
import java.awt.Point;
 | 
					import java.awt.Point;
 | 
				
			||||||
@@ -9,7 +9,7 @@ import java.util.ArrayList;
 | 
				
			|||||||
import java.util.List;
 | 
					import java.util.List;
 | 
				
			||||||
import javax.imageio.ImageIO;
 | 
					import javax.imageio.ImageIO;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.billenius.schack.boards.Board;
 | 
					import com.limone.schack.boards.Board;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public abstract class Piece {
 | 
					public abstract class Piece {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -67,7 +67,7 @@ public abstract class Piece {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    private BufferedImage getPieceIcon() throws IOException {
 | 
					    private BufferedImage getPieceIcon() throws IOException {
 | 
				
			||||||
        String colorName = isWhite() ? "White" : "Black";
 | 
					        String colorName = isWhite() ? "White" : "Black";
 | 
				
			||||||
        String path = "/com/billenius/img/" + colorName + getClass().getSimpleName() + ".png";
 | 
					        String path = "/com/limone/img/" + colorName + getClass().getSimpleName() + ".png";
 | 
				
			||||||
        InputStream inputStream = getClass().getResourceAsStream(path);
 | 
					        InputStream inputStream = getClass().getResourceAsStream(path);
 | 
				
			||||||
        return ImageIO.read(inputStream);
 | 
					        return ImageIO.read(inputStream);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package com.billenius.schack.pieces;
 | 
					package com.limone.schack.pieces;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.awt.Point;
 | 
					import java.awt.Point;
 | 
				
			||||||
import java.io.IOException;
 | 
					import java.io.IOException;
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
package com.billenius.schack.pieces;
 | 
					package com.limone.schack.pieces;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.awt.Point;
 | 
					import java.awt.Point;
 | 
				
			||||||
import java.io.IOException;
 | 
					import java.io.IOException;
 | 
				
			||||||