114 lines
6.5 KiB
Java
114 lines
6.5 KiB
Java
package nautilus.game.arcade;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import nautilus.game.arcade.game.games.sneakyassassins.*;
|
|
|
|
import org.bukkit.ChatColor;
|
|
|
|
import nautilus.game.arcade.game.Game;
|
|
import nautilus.game.arcade.game.games.baconbrawl.BaconBrawl;
|
|
import nautilus.game.arcade.game.games.barbarians.Barbarians;
|
|
import nautilus.game.arcade.game.games.bridge.Bridge;
|
|
import nautilus.game.arcade.game.games.castlesiege.CastleSiege;
|
|
import nautilus.game.arcade.game.games.champions.ChampionsDominate;
|
|
import nautilus.game.arcade.game.games.champions.ChampionsTDM;
|
|
import nautilus.game.arcade.game.games.christmas.Christmas;
|
|
import nautilus.game.arcade.game.games.deathtag.DeathTag;
|
|
import nautilus.game.arcade.game.games.dragonescape.DragonEscape;
|
|
import nautilus.game.arcade.game.games.dragonescape.DragonEscapeTeams;
|
|
import nautilus.game.arcade.game.games.dragonriders.DragonRiders;
|
|
import nautilus.game.arcade.game.games.dragons.Dragons;
|
|
import nautilus.game.arcade.game.games.dragons.DragonsTeams;
|
|
import nautilus.game.arcade.game.games.draw.Draw;
|
|
import nautilus.game.arcade.game.games.evolution.Evolution;
|
|
import nautilus.game.arcade.game.games.gravity.Gravity;
|
|
import nautilus.game.arcade.game.games.halloween.Halloween;
|
|
import nautilus.game.arcade.game.games.hideseek.HideSeek;
|
|
import nautilus.game.arcade.game.games.micro.Micro;
|
|
import nautilus.game.arcade.game.games.milkcow.MilkCow;
|
|
import nautilus.game.arcade.game.games.minestrike.MineStrike;
|
|
import nautilus.game.arcade.game.games.mineware.MineWare;
|
|
import nautilus.game.arcade.game.games.quiver.Quiver;
|
|
import nautilus.game.arcade.game.games.quiver.QuiverTeams;
|
|
import nautilus.game.arcade.game.games.runner.Runner;
|
|
import nautilus.game.arcade.game.games.searchanddestroy.SearchAndDestroy;
|
|
import nautilus.game.arcade.game.games.sheep.SheepGame;
|
|
import nautilus.game.arcade.game.games.smash.SuperSmash;
|
|
import nautilus.game.arcade.game.games.smash.SuperSmashDominate;
|
|
import nautilus.game.arcade.game.games.smash.SuperSmashTeam;
|
|
import nautilus.game.arcade.game.games.snake.Snake;
|
|
import nautilus.game.arcade.game.games.snowfight.SnowFight;
|
|
import nautilus.game.arcade.game.games.spleef.Spleef;
|
|
import nautilus.game.arcade.game.games.spleef.SpleefTeams;
|
|
import nautilus.game.arcade.game.games.squidshooter.SquidShooter;
|
|
import nautilus.game.arcade.game.games.stacker.Stacker;
|
|
import nautilus.game.arcade.game.games.survivalgames.SurvivalGames;
|
|
import nautilus.game.arcade.game.games.survivalgames.SurvivalGamesTeams;
|
|
import nautilus.game.arcade.game.games.paintball.Paintball;
|
|
import nautilus.game.arcade.game.games.tug.Tug;
|
|
import nautilus.game.arcade.game.games.turfforts.TurfForts;
|
|
import nautilus.game.arcade.game.games.uhc.UHC;
|
|
import nautilus.game.arcade.game.games.wither.WitherGame;
|
|
import nautilus.game.arcade.game.games.zombiesurvival.ZombieSurvival;
|
|
|
|
public class GameFactory
|
|
{
|
|
private ArcadeManager _manager;
|
|
|
|
public GameFactory(ArcadeManager gameManager)
|
|
{
|
|
_manager = gameManager;
|
|
}
|
|
|
|
public Game CreateGame(GameType gameType, HashMap<String, ChatColor> pastTeams)
|
|
{
|
|
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);
|
|
else if (gameType == GameType.DragonsTeams) return new DragonsTeams(_manager);
|
|
else if (gameType == GameType.DragonEscape) return new DragonEscape(_manager);
|
|
else if (gameType == GameType.DragonEscapeTeams) return new DragonEscapeTeams(_manager);
|
|
else if (gameType == GameType.DragonRiders) return new DragonRiders(_manager);
|
|
else if (gameType == GameType.Draw) return new Draw(_manager);
|
|
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);
|
|
else if (gameType == GameType.Micro) return new Micro(_manager);
|
|
else if (gameType == GameType.MineStrike) return new MineStrike(_manager);
|
|
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);
|
|
else if (gameType == GameType.QuiverTeams) return new QuiverTeams(_manager);
|
|
else if (gameType == GameType.Runner) return new Runner(_manager);
|
|
else if (gameType == GameType.SearchAndDestroy) return new SearchAndDestroy(_manager);
|
|
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);
|
|
else if (gameType == GameType.Snake) return new Snake(_manager);
|
|
else if (gameType == GameType.SneakyAssassins) return new SneakyAssassins(_manager);
|
|
else if (gameType == GameType.Spleef) return new Spleef(_manager);
|
|
else if (gameType == GameType.SpleefTeams) return new SpleefTeams(_manager);
|
|
else if (gameType == GameType.SquidShooter) return new SquidShooter(_manager);
|
|
else if (gameType == GameType.Stacker) return new Stacker(_manager);
|
|
else if (gameType == GameType.SurvivalGames) return new SurvivalGames(_manager);
|
|
else if (gameType == GameType.SurvivalGamesTeams) return new SurvivalGamesTeams(_manager);
|
|
else if (gameType == GameType.Tug) return new Tug(_manager);
|
|
else if (gameType == GameType.TurfWars) return new TurfForts(_manager);
|
|
else if (gameType == GameType.UHC) return new UHC(_manager);
|
|
else if (gameType == GameType.WitherAssault) return new WitherGame(_manager);
|
|
else if (gameType == GameType.ZombieSurvival) return new ZombieSurvival(_manager);
|
|
else return null;
|
|
}
|
|
}
|