2013-08-27 17:14:08 +02:00
|
|
|
package nautilus.game.arcade;
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
2014-05-28 03:38:22 +02:00
|
|
|
import nautilus.game.arcade.game.games.sneakyassassins.*;
|
2014-11-25 10:00:49 +01:00
|
|
|
|
2013-08-27 17:14:08 +02:00
|
|
|
import org.bukkit.ChatColor;
|
|
|
|
|
|
|
|
import nautilus.game.arcade.game.Game;
|
2013-09-23 07:48:35 +02:00
|
|
|
import nautilus.game.arcade.game.games.baconbrawl.BaconBrawl;
|
2013-09-11 04:22:55 +02:00
|
|
|
import nautilus.game.arcade.game.games.barbarians.Barbarians;
|
2013-09-09 23:56:55 +02:00
|
|
|
import nautilus.game.arcade.game.games.bridge.Bridge;
|
|
|
|
import nautilus.game.arcade.game.games.castlesiege.CastleSiege;
|
2014-04-11 07:33:31 +02:00
|
|
|
import nautilus.game.arcade.game.games.champions.ChampionsDominate;
|
|
|
|
import nautilus.game.arcade.game.games.champions.ChampionsTDM;
|
2013-12-04 02:45:17 +01:00
|
|
|
import nautilus.game.arcade.game.games.christmas.Christmas;
|
2013-09-11 04:22:55 +02:00
|
|
|
import nautilus.game.arcade.game.games.deathtag.DeathTag;
|
|
|
|
import nautilus.game.arcade.game.games.dragonescape.DragonEscape;
|
2014-04-23 02:21:01 +02:00
|
|
|
import nautilus.game.arcade.game.games.dragonescape.DragonEscapeTeams;
|
2013-10-14 01:29:20 +02:00
|
|
|
import nautilus.game.arcade.game.games.dragonriders.DragonRiders;
|
2013-09-09 23:56:55 +02:00
|
|
|
import nautilus.game.arcade.game.games.dragons.Dragons;
|
2014-04-23 02:21:01 +02:00
|
|
|
import nautilus.game.arcade.game.games.dragons.DragonsTeams;
|
2013-11-29 13:38:38 +01:00
|
|
|
import nautilus.game.arcade.game.games.draw.Draw;
|
2015-03-06 09:11:26 +01:00
|
|
|
import nautilus.game.arcade.game.games.event.EventGame;
|
2013-09-09 23:56:55 +02:00
|
|
|
import nautilus.game.arcade.game.games.evolution.Evolution;
|
2014-01-18 02:34:24 +01:00
|
|
|
import nautilus.game.arcade.game.games.gravity.Gravity;
|
2013-10-22 06:46:31 +02:00
|
|
|
import nautilus.game.arcade.game.games.halloween.Halloween;
|
2013-11-03 22:59:29 +01:00
|
|
|
import nautilus.game.arcade.game.games.hideseek.HideSeek;
|
2014-08-06 09:14:07 +02:00
|
|
|
import nautilus.game.arcade.game.games.micro.Micro;
|
2013-09-12 00:57:51 +02:00
|
|
|
import nautilus.game.arcade.game.games.milkcow.MilkCow;
|
2014-09-01 13:37:39 +02:00
|
|
|
import nautilus.game.arcade.game.games.minestrike.MineStrike;
|
2013-09-09 23:56:55 +02:00
|
|
|
import nautilus.game.arcade.game.games.mineware.MineWare;
|
|
|
|
import nautilus.game.arcade.game.games.quiver.Quiver;
|
2014-04-28 01:41:00 +02:00
|
|
|
import nautilus.game.arcade.game.games.quiver.QuiverTeams;
|
2013-09-09 23:56:55 +02:00
|
|
|
import nautilus.game.arcade.game.games.runner.Runner;
|
2014-11-25 10:00:49 +01:00
|
|
|
import nautilus.game.arcade.game.games.searchanddestroy.SearchAndDestroy;
|
2014-03-01 00:35:06 +01:00
|
|
|
import nautilus.game.arcade.game.games.sheep.SheepGame;
|
2013-09-09 23:56:55 +02:00
|
|
|
import nautilus.game.arcade.game.games.smash.SuperSmash;
|
2014-04-11 07:33:31 +02:00
|
|
|
import nautilus.game.arcade.game.games.smash.SuperSmashDominate;
|
2014-03-16 00:28:46 +01:00
|
|
|
import nautilus.game.arcade.game.games.smash.SuperSmashTeam;
|
2013-10-12 00:34:46 +02:00
|
|
|
import nautilus.game.arcade.game.games.snake.Snake;
|
2013-09-09 23:56:55 +02:00
|
|
|
import nautilus.game.arcade.game.games.snowfight.SnowFight;
|
|
|
|
import nautilus.game.arcade.game.games.spleef.Spleef;
|
2014-04-23 02:21:01 +02:00
|
|
|
import nautilus.game.arcade.game.games.spleef.SpleefTeams;
|
2013-09-23 07:48:35 +02:00
|
|
|
import nautilus.game.arcade.game.games.squidshooter.SquidShooter;
|
2013-10-12 00:34:46 +02:00
|
|
|
import nautilus.game.arcade.game.games.stacker.Stacker;
|
2015-03-17 12:20:40 +01:00
|
|
|
import nautilus.game.arcade.game.games.survivalgames.SurvivalGames;
|
2014-04-23 02:21:01 +02:00
|
|
|
import nautilus.game.arcade.game.games.survivalgames.SurvivalGamesTeams;
|
2013-10-04 23:49:05 +02:00
|
|
|
import nautilus.game.arcade.game.games.paintball.Paintball;
|
2014-07-02 03:30:04 +02:00
|
|
|
import nautilus.game.arcade.game.games.tug.Tug;
|
2013-09-09 23:56:55 +02:00
|
|
|
import nautilus.game.arcade.game.games.turfforts.TurfForts;
|
|
|
|
import nautilus.game.arcade.game.games.uhc.UHC;
|
2014-11-14 04:14:31 +01:00
|
|
|
import nautilus.game.arcade.game.games.wither.WitherGame;
|
2015-01-25 06:50:45 +01:00
|
|
|
import nautilus.game.arcade.game.games.wizards.Wizards;
|
2013-09-09 23:56:55 +02:00
|
|
|
import nautilus.game.arcade.game.games.zombiesurvival.ZombieSurvival;
|
2013-08-27 17:14:08 +02:00
|
|
|
|
|
|
|
public class GameFactory
|
|
|
|
{
|
|
|
|
private ArcadeManager _manager;
|
|
|
|
|
2013-12-12 11:19:58 +01:00
|
|
|
public GameFactory(ArcadeManager gameManager)
|
2013-08-27 17:14:08 +02:00
|
|
|
{
|
2014-06-10 04:51:47 +02:00
|
|
|
_manager = gameManager;
|
2013-08-27 17:14:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public Game CreateGame(GameType gameType, HashMap<String, ChatColor> pastTeams)
|
|
|
|
{
|
2014-04-11 07:33:31 +02:00
|
|
|
if (gameType == GameType.Barbarians) return new Barbarians(_manager);
|
|
|
|
else if (gameType == GameType.BaconBrawl) return new BaconBrawl(_manager);
|
|
|
|
else if (gameType == GameType.Bridge) return new Bridge(_manager);
|
|
|
|
else if (gameType == GameType.CastleSiege) return new CastleSiege(_manager);
|
|
|
|
else if (gameType == GameType.Christmas) return new Christmas(_manager);
|
|
|
|
else if (gameType == GameType.DeathTag) return new DeathTag(_manager);
|
|
|
|
else if (gameType == GameType.ChampionsDominate) return new ChampionsDominate(_manager);
|
|
|
|
else if (gameType == GameType.ChampionsTDM) return new ChampionsTDM(_manager);
|
|
|
|
else if (gameType == GameType.Dragons) return new Dragons(_manager);
|
2014-04-23 02:21:01 +02:00
|
|
|
else if (gameType == GameType.DragonsTeams) return new DragonsTeams(_manager);
|
2014-04-11 07:33:31 +02:00
|
|
|
else if (gameType == GameType.DragonEscape) return new DragonEscape(_manager);
|
2014-04-23 02:21:01 +02:00
|
|
|
else if (gameType == GameType.DragonEscapeTeams) return new DragonEscapeTeams(_manager);
|
2014-04-11 07:33:31 +02:00
|
|
|
else if (gameType == GameType.DragonRiders) return new DragonRiders(_manager);
|
|
|
|
else if (gameType == GameType.Draw) return new Draw(_manager);
|
2015-03-06 09:11:26 +01:00
|
|
|
else if (gameType == GameType.Event) return new EventGame(_manager);
|
2014-04-11 07:33:31 +02:00
|
|
|
else if (gameType == GameType.Evolution) return new Evolution(_manager);
|
|
|
|
else if (gameType == GameType.Gravity) return new Gravity(_manager);
|
|
|
|
else if (gameType == GameType.Halloween) return new Halloween(_manager);
|
|
|
|
else if (gameType == GameType.HideSeek) return new HideSeek(_manager);
|
2014-08-06 09:14:07 +02:00
|
|
|
else if (gameType == GameType.Micro) return new Micro(_manager);
|
2014-09-01 13:37:39 +02:00
|
|
|
else if (gameType == GameType.MineStrike) return new MineStrike(_manager);
|
2014-04-11 07:33:31 +02:00
|
|
|
else if (gameType == GameType.MineWare) return new MineWare(_manager);
|
|
|
|
else if (gameType == GameType.MilkCow) return new MilkCow(_manager);
|
|
|
|
else if (gameType == GameType.Paintball) return new Paintball(_manager);
|
|
|
|
else if (gameType == GameType.Quiver) return new Quiver(_manager);
|
2014-04-28 01:41:00 +02:00
|
|
|
else if (gameType == GameType.QuiverTeams) return new QuiverTeams(_manager);
|
2014-04-11 07:33:31 +02:00
|
|
|
else if (gameType == GameType.Runner) return new Runner(_manager);
|
2014-11-25 10:00:49 +01:00
|
|
|
else if (gameType == GameType.SearchAndDestroy) return new SearchAndDestroy(_manager);
|
2014-04-11 07:33:31 +02:00
|
|
|
else if (gameType == GameType.SnowFight) return new SnowFight(_manager);
|
|
|
|
else if (gameType == GameType.Sheep) return new SheepGame(_manager);
|
|
|
|
else if (gameType == GameType.Smash) return new SuperSmash(_manager);
|
|
|
|
else if (gameType == GameType.SmashTeams) return new SuperSmashTeam(_manager);
|
|
|
|
else if (gameType == GameType.SmashDomination) return new SuperSmashDominate(_manager);
|
2014-05-28 03:38:22 +02:00
|
|
|
else if (gameType == GameType.Snake) return new Snake(_manager);
|
|
|
|
else if (gameType == GameType.SneakyAssassins) return new SneakyAssassins(_manager);
|
2014-04-11 07:33:31 +02:00
|
|
|
else if (gameType == GameType.Spleef) return new Spleef(_manager);
|
2014-04-23 02:21:01 +02:00
|
|
|
else if (gameType == GameType.SpleefTeams) return new SpleefTeams(_manager);
|
2014-04-11 07:33:31 +02:00
|
|
|
else if (gameType == GameType.SquidShooter) return new SquidShooter(_manager);
|
|
|
|
else if (gameType == GameType.Stacker) return new Stacker(_manager);
|
2015-03-17 12:20:40 +01:00
|
|
|
else if (gameType == GameType.SurvivalGames) return new SurvivalGames(_manager);
|
2014-04-23 02:21:01 +02:00
|
|
|
else if (gameType == GameType.SurvivalGamesTeams) return new SurvivalGamesTeams(_manager);
|
2014-07-02 03:30:04 +02:00
|
|
|
else if (gameType == GameType.Tug) return new Tug(_manager);
|
2014-04-11 07:33:31 +02:00
|
|
|
else if (gameType == GameType.TurfWars) return new TurfForts(_manager);
|
|
|
|
else if (gameType == GameType.UHC) return new UHC(_manager);
|
2014-11-14 04:14:31 +01:00
|
|
|
else if (gameType == GameType.WitherAssault) return new WitherGame(_manager);
|
2015-01-29 01:54:59 +01:00
|
|
|
else if (gameType == GameType.Wizards) return new Wizards(_manager);
|
2014-04-11 07:33:31 +02:00
|
|
|
else if (gameType == GameType.ZombieSurvival) return new ZombieSurvival(_manager);
|
|
|
|
else return null;
|
2013-08-27 17:14:08 +02:00
|
|
|
}
|
|
|
|
}
|