Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
renamed packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Juknum committed May 3, 2021
1 parent 92d9f3c commit a76fd36
Show file tree
Hide file tree
Showing 23 changed files with 68 additions and 68 deletions.
Binary file added src/LudoBoard.jar
Binary file not shown.
10 changes: 5 additions & 5 deletions src/Main.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import static gameBase.Constants.DEBUG;

import java.awt.BorderLayout;

import javax.swing.JFrame;

import game.Manager;
import panel.BoardPanel;
import panel.MainRightPanel;

import static game.Constants.DEBUG;
import gameBase.Manager;
import gamePanel.BoardPanel;
import gamePanel.MainRightPanel;

public class Main extends JFrame {
private static final long serialVersionUID = 1L;
Expand Down
4 changes: 2 additions & 2 deletions src/game/ActionLog.java → src/gameBase/ActionLog.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package game;
package gameBase;

import static game.Constants.TEXT_COLOR;
import static gameBase.Constants.TEXT_COLOR;

import java.awt.Color;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package game;
package gameBase;

import java.util.Comparator;

Expand Down
2 changes: 1 addition & 1 deletion src/game/CONSTANTS.java → src/gameBase/Constants.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package game;
package gameBase;

import java.awt.Color;

Expand Down
18 changes: 9 additions & 9 deletions src/game/Manager.java → src/gameBase/Manager.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package game;
package gameBase;

import static game.Constants.*;
import static game.AvailableActions.actions.*;
import static gameBase.AvailableActions.actions.*;
import static gameBase.Constants.*;

import java.awt.Component;
import java.util.ArrayList;
Expand All @@ -10,12 +10,12 @@
import javax.swing.JButton;
import javax.swing.JOptionPane;

import panel.BoardPanel;
import panel.DicePanel;
import panel.MainRightPanel;
import player.AIPlayer;
import player.Player;
import player.RealPlayer;
import gamePanel.BoardPanel;
import gamePanel.DicePanel;
import gamePanel.MainRightPanel;
import gamePlayer.AIPlayer;
import gamePlayer.Player;
import gamePlayer.RealPlayer;

public class Manager {
@SuppressWarnings("unused")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package game;
package gameBase;

public interface RollListener {
void onRollEnded(int v);
Expand Down
4 changes: 2 additions & 2 deletions src/game/StatsLogs.java → src/gameBase/StatsLogs.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package game;
package gameBase;

import static game.Constants.TEXT_COLOR;
import static gameBase.Constants.TEXT_COLOR;

import java.awt.Color;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package designer;
package gameDesigner;

import java.awt.Graphics;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package designer;
package gameDesigner;

import java.awt.Color;
import java.awt.Graphics;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package designer;
package gameDesigner;

public class DirectionSetupper {
public enum Direction {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package designer;
package gameDesigner;

import java.awt.Graphics;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package designer;
package gameDesigner;

import java.awt.Color;
import java.awt.Font;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package designer;
package gameDesigner;

import java.awt.Graphics;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package designer;
package gameDesigner;

import java.awt.Graphics;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package designer;
package gameDesigner;

import java.awt.Color;
import java.awt.Font;
Expand Down
22 changes: 11 additions & 11 deletions src/panel/BoardPanel.java → src/gamePanel/BoardPanel.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package panel;
package gamePanel;

import static game.Constants.*;
import static gameBase.Constants.*;

import java.awt.Color;
import java.awt.Dimension;
Expand All @@ -13,15 +13,15 @@

import javax.swing.JPanel;

import designer.DirectionSetupper;
import designer.DiscDesigner;
import designer.PawnDesigner;
import designer.RectDesigner;
import designer.StarDesigner;
import designer.TextDesigner;
import game.Manager;
import player.Horse;
import player.Player;
import gameBase.Manager;
import gameDesigner.DirectionSetupper;
import gameDesigner.DiscDesigner;
import gameDesigner.PawnDesigner;
import gameDesigner.RectDesigner;
import gameDesigner.StarDesigner;
import gameDesigner.TextDesigner;
import gamePlayer.Horse;
import gamePlayer.Player;

public class BoardPanel extends JPanel {
private static final long serialVersionUID = 1L;
Expand Down
12 changes: 6 additions & 6 deletions src/panel/DicePanel.java → src/gamePanel/DicePanel.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package panel;
package gamePanel;

import static game.Constants.DEBUG;
import static game.Constants.darkColors;
import static gameBase.Constants.DEBUG;
import static gameBase.Constants.darkColors;

import java.awt.Graphics;
import java.awt.event.MouseEvent;
Expand All @@ -13,9 +13,9 @@
import javax.swing.SwingConstants;
import javax.swing.Timer;

import designer.DiceDesigner;
import game.Manager;
import game.RollListener;
import gameBase.Manager;
import gameBase.RollListener;
import gameDesigner.DiceDesigner;

public class DicePanel extends JLabel {
private static final long serialVersionUID = 1L;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package panel;
package gamePanel;

import static game.Constants.MAX_PLAYER;
import static game.Constants.NB_BOT_PLAYERS;
import static game.Constants.NB_REAL_PLAYERS;
import static gameBase.Constants.MAX_PLAYER;
import static gameBase.Constants.NB_BOT_PLAYERS;
import static gameBase.Constants.NB_REAL_PLAYERS;

import java.awt.Color;
import java.awt.Dimension;
Expand All @@ -16,9 +16,9 @@
import javax.swing.JScrollPane;
import javax.swing.SwingConstants;

import game.ActionLog;
import game.Manager;
import game.StatsLogs;
import gameBase.ActionLog;
import gameBase.Manager;
import gameBase.StatsLogs;

public class MainRightPanel extends JPanel {
private static JButton diceButton;
Expand Down
2 changes: 1 addition & 1 deletion src/player/AIPlayer.java → src/gamePlayer/AIPlayer.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package player;
package gamePlayer;

import java.awt.Color;

Expand Down
6 changes: 3 additions & 3 deletions src/player/Horse.java → src/gamePlayer/Horse.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package player;
package gamePlayer;

import static game.Constants.MAX_LENGTH;
import static gameBase.Constants.MAX_LENGTH;

import panel.DicePanel;
import gamePanel.DicePanel;

public class Horse {
private boolean inBarns = true;
Expand Down
20 changes: 10 additions & 10 deletions src/player/Player.java → src/gamePlayer/Player.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package player;
package gamePlayer;

import static game.AvailableActions.actions.*;
import static game.Constants.MAX_LENGTH;
import static game.Constants.NB_HORSES;
import static game.Constants.SHIFT;
import static gameBase.AvailableActions.actions.*;
import static gameBase.Constants.MAX_LENGTH;
import static gameBase.Constants.NB_HORSES;
import static gameBase.Constants.SHIFT;

import java.awt.Color;
import java.util.ArrayList;

import game.ActionLog;
import game.AvailableActions;
import game.Manager;
import panel.DicePanel;
import panel.MainRightPanel;
import gameBase.ActionLog;
import gameBase.AvailableActions;
import gameBase.Manager;
import gamePanel.DicePanel;
import gamePanel.MainRightPanel;

public abstract class Player {
private final String name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package player;
package gamePlayer;

import java.awt.Color;

Expand Down

0 comments on commit a76fd36

Please sign in to comment.