Renamed from dir from bench to gameengine

Signed-off-by: Aaron Brock <TheMineBench@gmail.com>
This commit is contained in:
Aaron Brock 2015-07-05 19:09:34 -04:00
parent bac505f2cd
commit 2e328520a0
29 changed files with 109 additions and 110 deletions

View File

@ -2,9 +2,9 @@
namespace mineplex\plugin; namespace mineplex\plugin;
use mineplex\plugin\bench\arenas\MultiGameArena; use mineplex\plugin\gameengine\arenas\MultiGameArena;
use mineplex\plugin\bench\game\components\world\WorldComponent; use mineplex\plugin\gameengine\game\components\world\WorldComponent;
use mineplex\plugin\bench\game\factory\TestGameFactory; use mineplex\plugin\gameengine\game\factory\TestGameFactory;
use mineplex\plugin\core\updater\Updater; use mineplex\plugin\core\updater\Updater;
use pocketmine\event\Listener; use pocketmine\event\Listener;
use pocketmine\event\player\PlayerJoinEvent; use pocketmine\event\player\PlayerJoinEvent;
@ -12,7 +12,7 @@ use pocketmine\event\player\PlayerLoginEvent;
use pocketmine\level\Position; use pocketmine\level\Position;
use pocketmine\math\Vector3; use pocketmine\math\Vector3;
use pocketmine\plugin\PluginBase; use pocketmine\plugin\PluginBase;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
use pocketmine\Server; use pocketmine\Server;
class Main extends PluginBase implements Listener class Main extends PluginBase implements Listener

View File

@ -5,7 +5,7 @@
* Date: 6/30/2015 * Date: 6/30/2015
* Time: 1:35 PM * Time: 1:35 PM
*/ */
namespace mineplex\plugin\bench\arenas; namespace mineplex\plugin\gameengine\arenas;
use pocketmine\plugin\Plugin; use pocketmine\plugin\Plugin;
use pocketmine\Player; use pocketmine\Player;

View File

@ -5,7 +5,7 @@
* Date: 6/30/2015 * Date: 6/30/2015
* Time: 9:06 PM * Time: 9:06 PM
*/ */
namespace mineplex\plugin\bench\arenas; namespace mineplex\plugin\gameengine\arenas;
use pocketmine\event\Event; use pocketmine\event\Event;

View File

@ -6,26 +6,25 @@
* Time: 12:14 PM * Time: 12:14 PM
*/ */
namespace mineplex\plugin\bench\arenas; namespace mineplex\plugin\gameengine\arenas;
use mineplex\plugin\bench\arenas\events\ArenaEndEvent; use mineplex\plugin\gameengine\arenas\events\ArenaEndEvent;
use mineplex\plugin\bench\game\factory\GameFactory; use mineplex\plugin\gameengine\game\factory\GameFactory;
use pocketmine\event\Listener; use pocketmine\event\Listener;
use pocketmine\plugin\Plugin; use pocketmine\plugin\Plugin;
use pocketmine\event\player\PlayerJoinEvent; use pocketmine\event\player\PlayerJoinEvent;
use pocketmine\event\player\PlayerQuitEvent; use pocketmine\event\player\PlayerQuitEvent;
use pocketmine\Player; use pocketmine\Player;
use pocketmine\Server; use pocketmine\Server;
use mineplex\plugin\bench\game\Game; use mineplex\plugin\gameengine\game\Game;
use mineplex\plugin\bench\arenas\events\ArenaCanJoinEvent; use mineplex\plugin\gameengine\arenas\events\ArenaCanJoinEvent;
use mineplex\plugin\bench\arenas\events\ArenaJoinEvent; use mineplex\plugin\gameengine\arenas\events\ArenaJoinEvent;
use mineplex\plugin\bench\arenas\events\ArenaQuitEvent; use mineplex\plugin\gameengine\arenas\events\ArenaQuitEvent;
use mineplex\plugin\bench\arenas\events\ArenaStartEvent; use mineplex\plugin\gameengine\arenas\events\ArenaStartEvent;
class MultiGameArena implements Arena, Listener class MultiGameArena implements Arena, Listener
{ {
/** @var Player[] */ /** @var Player[] */
private $players = array(); private $players = array();

View File

@ -5,20 +5,20 @@
* Date: 6/30/2015 * Date: 6/30/2015
* Time: 1:37 PM * Time: 1:37 PM
*/ */
namespace mineplex\plugin\bench\arenas; namespace mineplex\plugin\gameengine\arenas;
use mineplex\plugin\bench\arenas\events\ArenaEndEvent; use mineplex\plugin\gameengine\arenas\events\ArenaEndEvent;
use pocketmine\event\Listener; use pocketmine\event\Listener;
use pocketmine\plugin\Plugin; use pocketmine\plugin\Plugin;
use pocketmine\event\player\PlayerJoinEvent; use pocketmine\event\player\PlayerJoinEvent;
use pocketmine\event\player\PlayerQuitEvent; use pocketmine\event\player\PlayerQuitEvent;
use pocketmine\Player; use pocketmine\Player;
use pocketmine\Server; use pocketmine\Server;
use mineplex\plugin\bench\game\Game; use mineplex\plugin\gameengine\game\Game;
use mineplex\plugin\bench\arenas\events\ArenaCanJoinEvent; use mineplex\plugin\gameengine\arenas\events\ArenaCanJoinEvent;
use mineplex\plugin\bench\arenas\events\ArenaJoinEvent; use mineplex\plugin\gameengine\arenas\events\ArenaJoinEvent;
use mineplex\plugin\bench\arenas\events\ArenaQuitEvent; use mineplex\plugin\gameengine\arenas\events\ArenaQuitEvent;
use mineplex\plugin\bench\arenas\events\ArenaStartEvent; use mineplex\plugin\gameengine\arenas\events\ArenaStartEvent;
class SingleGameArena implements Arena, Listener { class SingleGameArena implements Arena, Listener {
//I really have no idea if there is a better way to store players... but this is what I'm using for now. //I really have no idea if there is a better way to store players... but this is what I'm using for now.

View File

@ -5,12 +5,12 @@
* Date: 6/30/2015 * Date: 6/30/2015
* Time: 9:22 PM * Time: 9:22 PM
*/ */
namespace mineplex\plugin\bench\arenas\events; namespace mineplex\plugin\gameengine\arenas\events;
use pocketmine\event\Cancellable; use pocketmine\event\Cancellable;
use pocketmine\Player; use pocketmine\Player;
use mineplex\plugin\bench\arenas\ArenaEvent; use mineplex\plugin\gameengine\arenas\ArenaEvent;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
class ArenaCanJoinEvent extends ArenaEvent implements Cancellable { class ArenaCanJoinEvent extends ArenaEvent implements Cancellable {
public static $handlerList = null; public static $handlerList = null;

View File

@ -5,10 +5,10 @@
* Date: 6/30/2015 * Date: 6/30/2015
* Time: 10:12 PM * Time: 10:12 PM
*/ */
namespace mineplex\plugin\bench\arenas\events; namespace mineplex\plugin\gameengine\arenas\events;
use mineplex\plugin\bench\arenas\ArenaEvent; use mineplex\plugin\gameengine\arenas\ArenaEvent;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
class ArenaEndEvent extends ArenaEvent{ class ArenaEndEvent extends ArenaEvent{

View File

@ -5,13 +5,13 @@
* Date: 6/30/2015 * Date: 6/30/2015
* Time: 9:22 PM * Time: 9:22 PM
*/ */
namespace mineplex\plugin\bench\arenas\events; namespace mineplex\plugin\gameengine\arenas\events;
use pocketmine\Player; use pocketmine\Player;
use mineplex\plugin\bench\arenas\ArenaEvent; use mineplex\plugin\gameengine\arenas\ArenaEvent;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
class ArenaJoinEvent extends ArenaEvent { class ArenaJoinEvent extends ArenaEvent {
public static $handlerList = null; public static $handlerList = null;

View File

@ -6,11 +6,11 @@
* Time: 9:22 PM * Time: 9:22 PM
*/ */
namespace mineplex\plugin\bench\arenas\events; namespace mineplex\plugin\gameengine\arenas\events;
use pocketmine\Player; use pocketmine\Player;
use mineplex\plugin\bench\arenas\ArenaEvent; use mineplex\plugin\gameengine\arenas\ArenaEvent;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
class ArenaQuitEvent extends ArenaEvent { class ArenaQuitEvent extends ArenaEvent {
public static $handlerList = null; public static $handlerList = null;

View File

@ -5,10 +5,10 @@
* Date: 6/30/2015 * Date: 6/30/2015
* Time: 10:12 PM * Time: 10:12 PM
*/ */
namespace mineplex\plugin\bench\arenas\events; namespace mineplex\plugin\gameengine\arenas\events;
use mineplex\plugin\bench\arenas\ArenaEvent; use mineplex\plugin\gameengine\arenas\ArenaEvent;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
class ArenaStartEvent extends ArenaEvent{ class ArenaStartEvent extends ArenaEvent{
public static $handlerList = null; public static $handlerList = null;

View File

@ -5,9 +5,9 @@
* Date: 6/30/2015 * Date: 6/30/2015
* Time: 9:04 PM * Time: 9:04 PM
*/ */
namespace mineplex\plugin\bench\game; namespace mineplex\plugin\gameengine\game;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
interface Game { interface Game {
public function start(Arena $arena); public function start(Arena $arena);

View File

@ -6,18 +6,18 @@
* Time: 5:52 PM * Time: 5:52 PM
*/ */
namespace mineplex\plugin\bench\game\components\countdown; namespace mineplex\plugin\gameengine\game\components\countdown;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\bench\arenas\events\ArenaEndEvent; use mineplex\plugin\gameengine\arenas\events\ArenaEndEvent;
use mineplex\plugin\bench\game\components\gamestate\GameStateComponent; use mineplex\plugin\gameengine\game\components\gamestate\GameStateComponent;
use mineplex\plugin\bench\time\BenchSchedule; use mineplex\plugin\gameengine\time\BenchSchedule;
use mineplex\plugin\bench\time\BenchTask; use mineplex\plugin\gameengine\time\BenchTask;
use mineplex\plugin\bench\time\BenchTaskData; use mineplex\plugin\gameengine\time\BenchTaskData;
use pocketmine\event\HandlerList; use pocketmine\event\HandlerList;
use pocketmine\event\Listener; use pocketmine\event\Listener;
use pocketmine\Server; use pocketmine\Server;
use mineplex\plugin\bench\game\components\gamestate\events\GameStateChangeEvent; use mineplex\plugin\gameengine\game\components\gamestate\events\GameStateChangeEvent;
class GameStateCountdown implements Listener, BenchTask { class GameStateCountdown implements Listener, BenchTask {

View File

@ -6,7 +6,7 @@
* Time: 10:18 PM * Time: 10:18 PM
*/ */
namespace mineplex\plugin\bench\game\components\feature; namespace mineplex\plugin\gameengine\game\components\feature;
interface Feature { interface Feature {

View File

@ -6,13 +6,13 @@
* Time: 12:44 AM * Time: 12:44 AM
*/ */
namespace mineplex\plugin\bench\game\components\feature; namespace mineplex\plugin\gameengine\game\components\feature;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\bench\arenas\events\ArenaEndEvent; use mineplex\plugin\gameengine\arenas\events\ArenaEndEvent;
use mineplex\plugin\bench\game\components\gamestate\events\GameStateChangeEvent; use mineplex\plugin\gameengine\game\components\gamestate\events\GameStateChangeEvent;
use mineplex\plugin\bench\game\components\gamestate\GameState; use mineplex\plugin\gameengine\game\components\gamestate\GameState;
use pocketmine\event\HandlerList; use pocketmine\event\HandlerList;
use pocketmine\event\Listener; use pocketmine\event\Listener;
use pocketmine\Server; use pocketmine\Server;

View File

@ -6,10 +6,10 @@
* Time: 10:20 PM * Time: 10:20 PM
*/ */
namespace mineplex\plugin\bench\game\components\feature\features; namespace mineplex\plugin\gameengine\game\components\feature\features;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\bench\game\components\feature\Feature; use mineplex\plugin\gameengine\game\components\feature\Feature;
use pocketmine\event\block\BlockBreakEvent; use pocketmine\event\block\BlockBreakEvent;
use pocketmine\event\HandlerList; use pocketmine\event\HandlerList;
use pocketmine\event\Listener; use pocketmine\event\Listener;

View File

@ -6,10 +6,10 @@
* Time: 10:20 PM * Time: 10:20 PM
*/ */
namespace mineplex\plugin\bench\game\components\feature\features; namespace mineplex\plugin\gameengine\game\components\feature\features;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\bench\game\components\feature\Feature; use mineplex\plugin\gameengine\game\components\feature\Feature;
use pocketmine\entity\Effect; use pocketmine\entity\Effect;
use pocketmine\event\block\BlockBreakEvent; use pocketmine\event\block\BlockBreakEvent;
use pocketmine\event\HandlerList; use pocketmine\event\HandlerList;

View File

@ -6,7 +6,7 @@
* Time: 10:33 AM * Time: 10:33 AM
*/ */
namespace mineplex\plugin\bench\game\components\gamestate; namespace mineplex\plugin\gameengine\game\components\gamestate;
//Yes yes I know this is a horrible way of doing things, I'm just trying to get done fast. //Yes yes I know this is a horrible way of doing things, I'm just trying to get done fast.

View File

@ -6,12 +6,12 @@
* Time: 10:26 AM * Time: 10:26 AM
*/ */
namespace mineplex\plugin\bench\game\components\gamestate; namespace mineplex\plugin\gameengine\game\components\gamestate;
use mineplex\plugin\bench\arenas\events\ArenaEndEvent; use mineplex\plugin\gameengine\arenas\events\ArenaEndEvent;
use mineplex\plugin\bench\arenas\events\ArenaStartEvent; use mineplex\plugin\gameengine\arenas\events\ArenaStartEvent;
use mineplex\plugin\bench\game\components\gamestate\events\GameStateChangeEvent; use mineplex\plugin\gameengine\game\components\gamestate\events\GameStateChangeEvent;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
use pocketmine\event\HandlerList; use pocketmine\event\HandlerList;
use pocketmine\event\Listener; use pocketmine\event\Listener;
use pocketmine\Server; use pocketmine\Server;

View File

@ -6,10 +6,10 @@
* Time: 10:49 AM * Time: 10:49 AM
*/ */
namespace mineplex\plugin\bench\game\components\gamestate\events; namespace mineplex\plugin\gameengine\game\components\gamestate\events;
use mineplex\plugin\bench\arenas\ArenaEvent; use mineplex\plugin\gameengine\arenas\ArenaEvent;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
class GameStateChangeEvent extends ArenaEvent { class GameStateChangeEvent extends ArenaEvent {

View File

@ -6,15 +6,15 @@
* Time: 11:10 PM * Time: 11:10 PM
*/ */
namespace mineplex\plugin\bench\game\components\lobby; namespace mineplex\plugin\gameengine\game\components\lobby;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\bench\arenas\events\ArenaEndEvent; use mineplex\plugin\gameengine\arenas\events\ArenaEndEvent;
use mineplex\plugin\bench\arenas\events\ArenaJoinEvent; use mineplex\plugin\gameengine\arenas\events\ArenaJoinEvent;
use mineplex\plugin\bench\game\components\feature\Feature; use mineplex\plugin\gameengine\game\components\feature\Feature;
use mineplex\plugin\bench\game\components\gamestate\events\GameStateChangeEvent; use mineplex\plugin\gameengine\game\components\gamestate\events\GameStateChangeEvent;
use mineplex\plugin\bench\game\components\gamestate\GameState; use mineplex\plugin\gameengine\game\components\gamestate\GameState;
use pocketmine\event\block\BlockBreakEvent; use pocketmine\event\block\BlockBreakEvent;
use pocketmine\event\entity\EntityDamageEvent; use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\event\entity\EntityShootBowEvent; use pocketmine\event\entity\EntityShootBowEvent;

View File

@ -6,11 +6,11 @@
* Time: 12:27 PM * Time: 12:27 PM
*/ */
namespace mineplex\plugin\bench\game\components\world; namespace mineplex\plugin\gameengine\game\components\world;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\bench\game\components\world\event\WorldLoadFailEvent; use mineplex\plugin\gameengine\game\components\world\event\WorldLoadFailEvent;
use mineplex\plugin\bench\game\components\world\event\WorldLoadSuccessEvent; use mineplex\plugin\gameengine\game\components\world\event\WorldLoadSuccessEvent;
use mineplex\plugin\util\UtilString; use mineplex\plugin\util\UtilString;
use mineplex\plugin\core\updater\UpdateEvent; use mineplex\plugin\core\updater\UpdateEvent;
use mineplex\plugin\core\updater\UpdateType; use mineplex\plugin\core\updater\UpdateType;

View File

@ -6,9 +6,9 @@
* Time: 1:12 PM * Time: 1:12 PM
*/ */
namespace mineplex\plugin\bench\game\factory; namespace mineplex\plugin\gameengine\game\factory;
use mineplex\plugin\bench\game\Game; use mineplex\plugin\gameengine\game\Game;
interface GameFactory { interface GameFactory {
/** /**

View File

@ -6,10 +6,10 @@
* Time: 3:03 PM * Time: 3:03 PM
*/ */
namespace mineplex\plugin\bench\game\factory; namespace mineplex\plugin\gameengine\game\factory;
use mineplex\plugin\bench\game\games\sg\SurvivalGames; use mineplex\plugin\gameengine\game\games\sg\SurvivalGames;
class TestGameFactory implements GameFactory { class TestGameFactory implements GameFactory {

View File

@ -5,17 +5,17 @@
* Date: 6/30/2015 * Date: 6/30/2015
* Time: 9:18 PM * Time: 9:18 PM
*/ */
namespace mineplex\plugin\bench\game\games\pvp; namespace mineplex\plugin\gameengine\game\games\pvp;
use mineplex\plugin\bench\game\components\countdown\GameStateCountdown; use mineplex\plugin\gameengine\game\components\countdown\GameStateCountdown;
use mineplex\plugin\bench\game\components\feature\features\NoBlockBreak; use mineplex\plugin\gameengine\game\components\feature\features\NoBlockBreak;
use mineplex\plugin\bench\game\components\feature\GameStateFeatureManager; use mineplex\plugin\gameengine\game\components\feature\GameStateFeatureManager;
use mineplex\plugin\bench\game\components\gamestate\GameState; use mineplex\plugin\gameengine\game\components\gamestate\GameState;
use mineplex\plugin\bench\game\components\gamestate\GameStateComponent; use mineplex\plugin\gameengine\game\components\gamestate\GameStateComponent;
use pocketmine\event\Listener; use pocketmine\event\Listener;
use mineplex\plugin\bench\game\Game; use mineplex\plugin\gameengine\game\Game;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\bench\game\components\feature\Feature; use mineplex\plugin\gameengine\game\components\feature\Feature;
use pocketmine\item\Item; use pocketmine\item\Item;
class Pvp implements Game, Listener { class Pvp implements Game, Listener {

View File

@ -6,16 +6,16 @@
* Time: 10:15 PM * Time: 10:15 PM
*/ */
namespace mineplex\plugin\bench\game\games\pvp; namespace mineplex\plugin\gameengine\game\games\pvp;
use pocketmine\event\Listener; use pocketmine\event\Listener;
use pocketmine\Server; use pocketmine\Server;
use pocketmine\event\HandlerList; use pocketmine\event\HandlerList;
use pocketmine\event\player\PlayerDeathEvent; use pocketmine\event\player\PlayerDeathEvent;
use mineplex\plugin\bench\arenas\events\ArenaQuitEvent; use mineplex\plugin\gameengine\arenas\events\ArenaQuitEvent;
use mineplex\plugin\bench\arenas\events\ArenaJoinEvent; use mineplex\plugin\gameengine\arenas\events\ArenaJoinEvent;
use mineplex\plugin\bench\arenas\events\ArenaEndEvent; use mineplex\plugin\gameengine\arenas\events\ArenaEndEvent;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;

View File

@ -6,17 +6,17 @@
* Time: 3:09 PM * Time: 3:09 PM
*/ */
namespace mineplex\plugin\bench\game\games\sg; namespace mineplex\plugin\gameengine\game\games\sg;
use mineplex\plugin\bench\game\components\countdown\GameStateCountdown; use mineplex\plugin\gameengine\game\components\countdown\GameStateCountdown;
use mineplex\plugin\bench\game\components\feature\features\NoBlockBreak; use mineplex\plugin\gameengine\game\components\feature\features\NoBlockBreak;
use mineplex\plugin\bench\game\components\feature\GameStateFeatureManager; use mineplex\plugin\gameengine\game\components\feature\GameStateFeatureManager;
use mineplex\plugin\bench\game\components\gamestate\GameState; use mineplex\plugin\gameengine\game\components\gamestate\GameState;
use mineplex\plugin\bench\game\components\gamestate\GameStateComponent; use mineplex\plugin\gameengine\game\components\gamestate\GameStateComponent;
use mineplex\plugin\bench\game\components\lobby\LobbyComponent; use mineplex\plugin\gameengine\game\components\lobby\LobbyComponent;
use mineplex\plugin\bench\game\Game; use mineplex\plugin\gameengine\game\Game;
use mineplex\plugin\bench\arenas\Arena; use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\bench\game\components\feature\Feature; use mineplex\plugin\gameengine\game\components\feature\Feature;
use pocketmine\item\Item; use pocketmine\item\Item;
class SurvivalGames implements Game { class SurvivalGames implements Game {

View File

@ -6,7 +6,7 @@
* Time: 1:53 PM * Time: 1:53 PM
*/ */
namespace mineplex\plugin\bench\time; namespace mineplex\plugin\gameengine\time;
use pocketmine\scheduler\Task; use pocketmine\scheduler\Task;
use pocketmine\Server; use pocketmine\Server;

View File

@ -6,7 +6,7 @@
* Time: 2:01 PM * Time: 2:01 PM
*/ */
namespace mineplex\plugin\bench\time; namespace mineplex\plugin\gameengine\time;
use SplObjectStorage; use SplObjectStorage;

View File

@ -6,7 +6,7 @@
* Time: 2:03 PM * Time: 2:03 PM
*/ */
namespace mineplex\plugin\bench\time; namespace mineplex\plugin\gameengine\time;