Ä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">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.billenius</groupId>
|
||||
<groupId>com.limone</groupId>
|
||||
<artifactId>Schack</artifactId>
|
||||
<version>1</version>
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
<resource>
|
||||
<directory>src/main/java/</directory>
|
||||
<includes>
|
||||
<include>com/billenius/img/</include>
|
||||
<include>com/limone/img/</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
@ -97,7 +97,7 @@
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>com.billenius.schack.Schack</mainClass>
|
||||
<mainClass>com.limone.schack.Schack</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
<descriptorRefs>
|
||||
@ -114,7 +114,7 @@
|
||||
<archive>
|
||||
<manifest>
|
||||
<addClasspath>true</addClasspath>
|
||||
<mainClass>com.billenius.schack.Schack</mainClass>
|
||||
<mainClass>com.limone.schack.Schack</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
</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.io.Serializable;
|
@ -1,8 +1,8 @@
|
||||
package com.billenius.schack;
|
||||
package com.limone.schack;
|
||||
|
||||
import java.awt.Point;
|
||||
|
||||
import com.billenius.schack.pieces.Piece;
|
||||
import com.limone.schack.pieces.Piece;
|
||||
|
||||
public class Move extends BasicMove {
|
||||
public Piece movedPiece;
|
@ -1,4 +1,4 @@
|
||||
package com.billenius.schack;
|
||||
package com.limone.schack;
|
||||
|
||||
import java.awt.Component;
|
||||
import java.awt.image.BufferedImage;
|
@ -1,4 +1,4 @@
|
||||
package com.billenius.schack;
|
||||
package com.limone.schack;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Dimension;
|
||||
@ -25,10 +25,10 @@ import javax.swing.JScrollPane;
|
||||
import javax.swing.JSplitPane;
|
||||
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.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.Dimension;
|
||||
@ -14,15 +14,15 @@ import java.util.List;
|
||||
import javax.swing.DefaultListModel;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
import com.billenius.schack.Move;
|
||||
import com.billenius.schack.SchackState;
|
||||
import com.billenius.schack.pieces.Bishop;
|
||||
import com.billenius.schack.pieces.Horse;
|
||||
import com.billenius.schack.pieces.King;
|
||||
import com.billenius.schack.pieces.Pawn;
|
||||
import com.billenius.schack.pieces.Piece;
|
||||
import com.billenius.schack.pieces.Queen;
|
||||
import com.billenius.schack.pieces.Rook;
|
||||
import com.limone.schack.Move;
|
||||
import com.limone.schack.SchackState;
|
||||
import com.limone.schack.pieces.Bishop;
|
||||
import com.limone.schack.pieces.Horse;
|
||||
import com.limone.schack.pieces.King;
|
||||
import com.limone.schack.pieces.Pawn;
|
||||
import com.limone.schack.pieces.Piece;
|
||||
import com.limone.schack.pieces.Queen;
|
||||
import com.limone.schack.pieces.Rook;
|
||||
|
||||
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.Dimension;
|
||||
@ -18,10 +18,10 @@ import javax.swing.JLabel;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
import com.billenius.schack.BasicMove;
|
||||
import com.billenius.schack.Move;
|
||||
import com.billenius.schack.SchackState;
|
||||
import com.billenius.schack.pieces.Piece;
|
||||
import com.limone.schack.BasicMove;
|
||||
import com.limone.schack.Move;
|
||||
import com.limone.schack.SchackState;
|
||||
import com.limone.schack.pieces.Piece;
|
||||
|
||||
public final class NetworkBoard extends Board implements Runnable {
|
||||
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.util.ArrayList;
|
||||
@ -6,9 +6,9 @@ import java.util.ArrayList;
|
||||
import javax.swing.DefaultListModel;
|
||||
import javax.swing.JOptionPane;
|
||||
|
||||
import com.billenius.schack.Move;
|
||||
import com.billenius.schack.SchackState;
|
||||
import com.billenius.schack.pieces.Piece;
|
||||
import com.limone.schack.Move;
|
||||
import com.limone.schack.SchackState;
|
||||
import com.limone.schack.pieces.Piece;
|
||||
|
||||
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.io.IOException;
|
@ -1,4 +1,4 @@
|
||||
package com.billenius.schack.pieces;
|
||||
package com.limone.schack.pieces;
|
||||
|
||||
import java.awt.Point;
|
||||
import java.io.IOException;
|
@ -1,4 +1,4 @@
|
||||
package com.billenius.schack.pieces;
|
||||
package com.limone.schack.pieces;
|
||||
|
||||
import java.awt.Point;
|
||||
import java.io.IOException;
|
@ -1,4 +1,4 @@
|
||||
package com.billenius.schack.pieces;
|
||||
package com.limone.schack.pieces;
|
||||
|
||||
import java.awt.Point;
|
||||
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.Point;
|
@ -1,4 +1,4 @@
|
||||
package com.billenius.schack.pieces;
|
||||
package com.limone.schack.pieces;
|
||||
|
||||
import java.awt.Graphics2D;
|
||||
import java.awt.Point;
|
||||
@ -9,7 +9,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.imageio.ImageIO;
|
||||
|
||||
import com.billenius.schack.boards.Board;
|
||||
import com.limone.schack.boards.Board;
|
||||
|
||||
public abstract class Piece {
|
||||
|
||||
@ -67,7 +67,7 @@ public abstract class Piece {
|
||||
|
||||
private BufferedImage getPieceIcon() throws IOException {
|
||||
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);
|
||||
return ImageIO.read(inputStream);
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.billenius.schack.pieces;
|
||||
package com.limone.schack.pieces;
|
||||
|
||||
import java.awt.Point;
|
||||
import java.io.IOException;
|
@ -1,4 +1,4 @@
|
||||
package com.billenius.schack.pieces;
|
||||
package com.limone.schack.pieces;
|
||||
|
||||
import java.awt.Point;
|
||||
import java.io.IOException;
|