Skip to content

Commit

Permalink
Renamed phais library imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlukeh committed Dec 27, 2014
1 parent 7822b38 commit dc47294
Show file tree
Hide file tree
Showing 43 changed files with 122 additions and 122 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package core;
package com.ausinformatics.phais.core;

import java.util.HashMap;
import java.util.Map;

import core.commander.commands.Command;
import com.ausinformatics.phais.core.commander.commands.Command;

public class Config {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package core;
package com.ausinformatics.phais.core;

import java.util.Collection;
import java.util.HashMap;
Expand All @@ -7,23 +7,23 @@
import java.util.Map;
import java.util.Set;

import core.Config.Mode;
import core.commander.Commander;
import core.commander.ShellCommander;
import core.interfaces.GameBuilder;
import core.interfaces.GameInstance;
import core.interfaces.PersistentPlayer;
import core.interfaces.PlayerBuilder;
import core.runner.GameRunner;
import core.runner.RunnerFactory;
import core.scheduler.GameScheduler;
import core.scheduler.PauseScheduler;
import core.scheduler.RandomScheduler;
import core.scheduler.RoundRobinScheduler;
import core.scorer.ScoreKeeper;
import core.scorer.StandardScoreKeeper;
import core.server.ClientConnection;
import core.server.Server;
import com.ausinformatics.phais.core.Config.Mode;
import com.ausinformatics.phais.core.commander.Commander;
import com.ausinformatics.phais.core.commander.ShellCommander;
import com.ausinformatics.phais.core.interfaces.GameBuilder;
import com.ausinformatics.phais.core.interfaces.GameInstance;
import com.ausinformatics.phais.core.interfaces.PersistentPlayer;
import com.ausinformatics.phais.core.interfaces.PlayerBuilder;
import com.ausinformatics.phais.core.runner.GameRunner;
import com.ausinformatics.phais.core.runner.RunnerFactory;
import com.ausinformatics.phais.core.scheduler.GameScheduler;
import com.ausinformatics.phais.core.scheduler.PauseScheduler;
import com.ausinformatics.phais.core.scheduler.RandomScheduler;
import com.ausinformatics.phais.core.scheduler.RoundRobinScheduler;
import com.ausinformatics.phais.core.scorer.ScoreKeeper;
import com.ausinformatics.phais.core.scorer.StandardScoreKeeper;
import com.ausinformatics.phais.core.server.ClientConnection;
import com.ausinformatics.phais.core.server.Server;

// The game maker should create one of these, with the specified things.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package core.commander;
package com.ausinformatics.phais.core.commander;

public interface Commander extends Runnable {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
package core.commander;
package com.ausinformatics.phais.core.commander;

import java.io.PrintStream;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

import core.Director;
import core.commander.commands.Command;
import core.commander.commands.DisplayScores;
import core.commander.commands.HelpDisplayer;
import core.commander.commands.KickPlayers;
import core.commander.commands.Kill;
import core.commander.commands.ListPlayers;
import core.commander.commands.ScheduleGame;
import core.commander.commands.SchedulePause;
import core.commander.commands.ScheduleRandom;
import core.commander.commands.ScheduleRoundRobin;
import core.commander.commands.SetVisualiser;
import com.ausinformatics.phais.core.Director;
import com.ausinformatics.phais.core.commander.commands.Command;
import com.ausinformatics.phais.core.commander.commands.DisplayScores;
import com.ausinformatics.phais.core.commander.commands.HelpDisplayer;
import com.ausinformatics.phais.core.commander.commands.KickPlayers;
import com.ausinformatics.phais.core.commander.commands.Kill;
import com.ausinformatics.phais.core.commander.commands.ListPlayers;
import com.ausinformatics.phais.core.commander.commands.ScheduleGame;
import com.ausinformatics.phais.core.commander.commands.SchedulePause;
import com.ausinformatics.phais.core.commander.commands.ScheduleRandom;
import com.ausinformatics.phais.core.commander.commands.ScheduleRoundRobin;
import com.ausinformatics.phais.core.commander.commands.SetVisualiser;

public class ShellCommander implements Commander {
private Director reportTo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package core.commander.commands;
package com.ausinformatics.phais.core.commander.commands;

import java.io.PrintStream;

import core.Director;
import com.ausinformatics.phais.core.Director;

public interface Command {
public void execute(Director reportTo, PrintStream out, String[] args);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package core.commander.commands;
package com.ausinformatics.phais.core.commander.commands;

import java.io.PrintStream;
import java.util.Map;

import core.Director;
import core.interfaces.PersistentPlayer;
import com.ausinformatics.phais.core.Director;
import com.ausinformatics.phais.core.interfaces.PersistentPlayer;

public class DisplayScores implements Command {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package core.commander.commands;
package com.ausinformatics.phais.core.commander.commands;

import java.io.PrintStream;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

import core.Director;
import com.ausinformatics.phais.core.Director;

public class HelpDisplayer implements Command {
Map<String, Command> commands;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package core.commander.commands;
package com.ausinformatics.phais.core.commander.commands;

import java.io.PrintStream;

import core.Director;
import core.interfaces.PersistentPlayer;
import com.ausinformatics.phais.core.Director;
import com.ausinformatics.phais.core.interfaces.PersistentPlayer;

public class KickPlayers implements Command {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package core.commander.commands;
package com.ausinformatics.phais.core.commander.commands;

import java.io.PrintStream;

import core.Director;
import com.ausinformatics.phais.core.Director;

public class Kill implements Command {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package core.commander.commands;
package com.ausinformatics.phais.core.commander.commands;

import java.io.PrintStream;
import java.util.Collection;

import core.Director;
import core.interfaces.PersistentPlayer;
import com.ausinformatics.phais.core.Director;
import com.ausinformatics.phais.core.interfaces.PersistentPlayer;

public class ListPlayers implements Command {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package core.commander.commands;
package com.ausinformatics.phais.core.commander.commands;

import java.io.PrintStream;
import java.util.LinkedList;
import java.util.List;

import core.Director;
import core.interfaces.PersistentPlayer;
import com.ausinformatics.phais.core.Director;
import com.ausinformatics.phais.core.interfaces.PersistentPlayer;

public class ScheduleGame implements Command {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package core.commander.commands;
package com.ausinformatics.phais.core.commander.commands;

import java.io.PrintStream;

import core.Config;
import core.Config.Mode;
import core.Director;
import com.ausinformatics.phais.core.Config;
import com.ausinformatics.phais.core.Director;
import com.ausinformatics.phais.core.Config.Mode;

public class SchedulePause implements Command {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package core.commander.commands;
package com.ausinformatics.phais.core.commander.commands;

import java.io.PrintStream;

import core.Config;
import core.Config.Mode;
import core.Director;
import com.ausinformatics.phais.core.Config;
import com.ausinformatics.phais.core.Director;
import com.ausinformatics.phais.core.Config.Mode;

public class ScheduleRandom implements Command {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package core.commander.commands;
package com.ausinformatics.phais.core.commander.commands;

import java.io.PrintStream;

import core.Config;
import core.Config.Mode;
import core.Director;
import com.ausinformatics.phais.core.Config;
import com.ausinformatics.phais.core.Director;
import com.ausinformatics.phais.core.Config.Mode;

public class ScheduleRoundRobin implements Command {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package core.commander.commands;
package com.ausinformatics.phais.core.commander.commands;

import java.io.PrintStream;

import core.Config;
import core.Director;
import com.ausinformatics.phais.core.Config;
import com.ausinformatics.phais.core.Director;

public class SetVisualiser implements Command {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package core.interfaces;
package com.ausinformatics.phais.core.interfaces;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package core.interfaces;
package com.ausinformatics.phais.core.interfaces;

import java.awt.Graphics;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package core.interfaces;
package com.ausinformatics.phais.core.interfaces;

import core.server.ClientConnection;
import com.ausinformatics.phais.core.server.ClientConnection;

/**
* This interface needs to be implemented by the game maker.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package core.interfaces;
package com.ausinformatics.phais.core.interfaces;

import core.server.ClientConnection;
import com.ausinformatics.phais.core.server.ClientConnection;

/**
* This interface needs to be implemented by the game maker.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package core.runner;
package com.ausinformatics.phais.core.runner;

import java.util.List;
import java.util.Map;

import core.interfaces.GameInstance;
import core.interfaces.PersistentPlayer;
import com.ausinformatics.phais.core.interfaces.GameInstance;
import com.ausinformatics.phais.core.interfaces.PersistentPlayer;

public interface GameRunner extends Runnable {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package core.runner;
package com.ausinformatics.phais.core.runner;

import java.awt.Color;
import java.awt.Frame;
Expand All @@ -14,7 +14,7 @@
import javax.swing.JFrame;
import javax.swing.JPanel;

import core.interfaces.GameInstance;
import com.ausinformatics.phais.core.interfaces.GameInstance;

public class GameVisualisation extends JPanel {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package core.runner;
package com.ausinformatics.phais.core.runner;

import java.util.ArrayList;
import java.util.List;

import core.interfaces.GameInstance;
import core.interfaces.PersistentPlayer;
import com.ausinformatics.phais.core.interfaces.GameInstance;
import com.ausinformatics.phais.core.interfaces.PersistentPlayer;

public class RunnerFactory {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package core.runner;
package com.ausinformatics.phais.core.runner;

import java.util.List;
import java.util.Map;

import core.interfaces.GameInstance;
import core.interfaces.PersistentPlayer;
import com.ausinformatics.phais.core.interfaces.GameInstance;
import com.ausinformatics.phais.core.interfaces.PersistentPlayer;

/**
* Runs a game, allowing you to query its state.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package core.runner;
package com.ausinformatics.phais.core.runner;

import java.util.List;

import core.interfaces.GameInstance;
import core.interfaces.PersistentPlayer;
import com.ausinformatics.phais.core.interfaces.GameInstance;
import com.ausinformatics.phais.core.interfaces.PersistentPlayer;

/*
* Runs a game, allowing you to query its state. Also handles visualisation.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package core.scheduler;
package com.ausinformatics.phais.core.scheduler;

import java.util.List;

import core.Config.Mode;
import core.interfaces.PersistentPlayer;
import com.ausinformatics.phais.core.Config.Mode;
import com.ausinformatics.phais.core.interfaces.PersistentPlayer;

/**
* Handles the scheduling of new games
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package core.scheduler;
package com.ausinformatics.phais.core.scheduler;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import core.Config.Mode;
import core.interfaces.PersistentPlayer;
import com.ausinformatics.phais.core.Config.Mode;
import com.ausinformatics.phais.core.interfaces.PersistentPlayer;

public class PauseScheduler implements GameScheduler {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package core.scheduler;
package com.ausinformatics.phais.core.scheduler;

import core.interfaces.PersistentPlayer;
import com.ausinformatics.phais.core.interfaces.PersistentPlayer;

public class PrioritisedPlayer implements Comparable<PrioritisedPlayer> {
private PersistentPlayer player;
Expand Down
Loading

0 comments on commit dc47294

Please sign in to comment.