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

View File

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

View File

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

View File

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

View File

@ -5,20 +5,20 @@
* Date: 6/30/2015
* 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\plugin\Plugin;
use pocketmine\event\player\PlayerJoinEvent;
use pocketmine\event\player\PlayerQuitEvent;
use pocketmine\Player;
use pocketmine\Server;
use mineplex\plugin\bench\game\Game;
use mineplex\plugin\bench\arenas\events\ArenaCanJoinEvent;
use mineplex\plugin\bench\arenas\events\ArenaJoinEvent;
use mineplex\plugin\bench\arenas\events\ArenaQuitEvent;
use mineplex\plugin\bench\arenas\events\ArenaStartEvent;
use mineplex\plugin\gameengine\game\Game;
use mineplex\plugin\gameengine\arenas\events\ArenaCanJoinEvent;
use mineplex\plugin\gameengine\arenas\events\ArenaJoinEvent;
use mineplex\plugin\gameengine\arenas\events\ArenaQuitEvent;
use mineplex\plugin\gameengine\arenas\events\ArenaStartEvent;
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.

View File

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

View File

@ -5,10 +5,10 @@
* Date: 6/30/2015
* 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\bench\arenas\Arena;
use mineplex\plugin\gameengine\arenas\ArenaEvent;
use mineplex\plugin\gameengine\arenas\Arena;
class ArenaEndEvent extends ArenaEvent{

View File

@ -5,13 +5,13 @@
* Date: 6/30/2015
* Time: 9:22 PM
*/
namespace mineplex\plugin\bench\arenas\events;
namespace mineplex\plugin\gameengine\arenas\events;
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 {
public static $handlerList = null;

View File

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

View File

@ -5,10 +5,10 @@
* Date: 6/30/2015
* 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\bench\arenas\Arena;
use mineplex\plugin\gameengine\arenas\ArenaEvent;
use mineplex\plugin\gameengine\arenas\Arena;
class ArenaStartEvent extends ArenaEvent{
public static $handlerList = null;

View File

@ -5,9 +5,9 @@
* Date: 6/30/2015
* 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 {
public function start(Arena $arena);

View File

@ -6,18 +6,18 @@
* 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\bench\arenas\events\ArenaEndEvent;
use mineplex\plugin\bench\game\components\gamestate\GameStateComponent;
use mineplex\plugin\bench\time\BenchSchedule;
use mineplex\plugin\bench\time\BenchTask;
use mineplex\plugin\bench\time\BenchTaskData;
use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\gameengine\arenas\events\ArenaEndEvent;
use mineplex\plugin\gameengine\game\components\gamestate\GameStateComponent;
use mineplex\plugin\gameengine\time\BenchSchedule;
use mineplex\plugin\gameengine\time\BenchTask;
use mineplex\plugin\gameengine\time\BenchTaskData;
use pocketmine\event\HandlerList;
use pocketmine\event\Listener;
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 {

View File

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

View File

@ -6,13 +6,13 @@
* 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\bench\arenas\events\ArenaEndEvent;
use mineplex\plugin\bench\game\components\gamestate\events\GameStateChangeEvent;
use mineplex\plugin\bench\game\components\gamestate\GameState;
use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\gameengine\arenas\events\ArenaEndEvent;
use mineplex\plugin\gameengine\game\components\gamestate\events\GameStateChangeEvent;
use mineplex\plugin\gameengine\game\components\gamestate\GameState;
use pocketmine\event\HandlerList;
use pocketmine\event\Listener;
use pocketmine\Server;

View File

@ -6,10 +6,10 @@
* 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\bench\game\components\feature\Feature;
use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\gameengine\game\components\feature\Feature;
use pocketmine\event\block\BlockBreakEvent;
use pocketmine\event\HandlerList;
use pocketmine\event\Listener;

View File

@ -6,10 +6,10 @@
* 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\bench\game\components\feature\Feature;
use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\gameengine\game\components\feature\Feature;
use pocketmine\entity\Effect;
use pocketmine\event\block\BlockBreakEvent;
use pocketmine\event\HandlerList;

View File

@ -6,7 +6,7 @@
* 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.

View File

@ -6,12 +6,12 @@
* 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\bench\arenas\events\ArenaStartEvent;
use mineplex\plugin\bench\game\components\gamestate\events\GameStateChangeEvent;
use mineplex\plugin\bench\arenas\Arena;
use mineplex\plugin\gameengine\arenas\events\ArenaEndEvent;
use mineplex\plugin\gameengine\arenas\events\ArenaStartEvent;
use mineplex\plugin\gameengine\game\components\gamestate\events\GameStateChangeEvent;
use mineplex\plugin\gameengine\arenas\Arena;
use pocketmine\event\HandlerList;
use pocketmine\event\Listener;
use pocketmine\Server;

View File

@ -6,10 +6,10 @@
* 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\bench\arenas\Arena;
use mineplex\plugin\gameengine\arenas\ArenaEvent;
use mineplex\plugin\gameengine\arenas\Arena;
class GameStateChangeEvent extends ArenaEvent {

View File

@ -6,15 +6,15 @@
* 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\bench\arenas\events\ArenaEndEvent;
use mineplex\plugin\bench\arenas\events\ArenaJoinEvent;
use mineplex\plugin\bench\game\components\feature\Feature;
use mineplex\plugin\bench\game\components\gamestate\events\GameStateChangeEvent;
use mineplex\plugin\bench\game\components\gamestate\GameState;
use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\gameengine\arenas\events\ArenaEndEvent;
use mineplex\plugin\gameengine\arenas\events\ArenaJoinEvent;
use mineplex\plugin\gameengine\game\components\feature\Feature;
use mineplex\plugin\gameengine\game\components\gamestate\events\GameStateChangeEvent;
use mineplex\plugin\gameengine\game\components\gamestate\GameState;
use pocketmine\event\block\BlockBreakEvent;
use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\event\entity\EntityShootBowEvent;

View File

@ -6,11 +6,11 @@
* 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\bench\game\components\world\event\WorldLoadFailEvent;
use mineplex\plugin\bench\game\components\world\event\WorldLoadSuccessEvent;
use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\gameengine\game\components\world\event\WorldLoadFailEvent;
use mineplex\plugin\gameengine\game\components\world\event\WorldLoadSuccessEvent;
use mineplex\plugin\util\UtilString;
use mineplex\plugin\core\updater\UpdateEvent;
use mineplex\plugin\core\updater\UpdateType;

View File

@ -6,9 +6,9 @@
* 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 {
/**

View File

@ -6,10 +6,10 @@
* 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 {

View File

@ -5,17 +5,17 @@
* Date: 6/30/2015
* 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\bench\game\components\feature\features\NoBlockBreak;
use mineplex\plugin\bench\game\components\feature\GameStateFeatureManager;
use mineplex\plugin\bench\game\components\gamestate\GameState;
use mineplex\plugin\bench\game\components\gamestate\GameStateComponent;
use mineplex\plugin\gameengine\game\components\countdown\GameStateCountdown;
use mineplex\plugin\gameengine\game\components\feature\features\NoBlockBreak;
use mineplex\plugin\gameengine\game\components\feature\GameStateFeatureManager;
use mineplex\plugin\gameengine\game\components\gamestate\GameState;
use mineplex\plugin\gameengine\game\components\gamestate\GameStateComponent;
use pocketmine\event\Listener;
use mineplex\plugin\bench\game\Game;
use mineplex\plugin\bench\arenas\Arena;
use mineplex\plugin\bench\game\components\feature\Feature;
use mineplex\plugin\gameengine\game\Game;
use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\gameengine\game\components\feature\Feature;
use pocketmine\item\Item;
class Pvp implements Game, Listener {

View File

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

View File

@ -6,17 +6,17 @@
* 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\bench\game\components\feature\features\NoBlockBreak;
use mineplex\plugin\bench\game\components\feature\GameStateFeatureManager;
use mineplex\plugin\bench\game\components\gamestate\GameState;
use mineplex\plugin\bench\game\components\gamestate\GameStateComponent;
use mineplex\plugin\bench\game\components\lobby\LobbyComponent;
use mineplex\plugin\bench\game\Game;
use mineplex\plugin\bench\arenas\Arena;
use mineplex\plugin\bench\game\components\feature\Feature;
use mineplex\plugin\gameengine\game\components\countdown\GameStateCountdown;
use mineplex\plugin\gameengine\game\components\feature\features\NoBlockBreak;
use mineplex\plugin\gameengine\game\components\feature\GameStateFeatureManager;
use mineplex\plugin\gameengine\game\components\gamestate\GameState;
use mineplex\plugin\gameengine\game\components\gamestate\GameStateComponent;
use mineplex\plugin\gameengine\game\components\lobby\LobbyComponent;
use mineplex\plugin\gameengine\game\Game;
use mineplex\plugin\gameengine\arenas\Arena;
use mineplex\plugin\gameengine\game\components\feature\Feature;
use pocketmine\item\Item;
class SurvivalGames implements Game {

View File

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

View File

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

View File

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