// Path: server/brownshome/scriptwars/server/Server.java
// public class Server {
// 	public static final Logger LOG = Logger.getLogger("brownshome.scriptwars.server");
// 	
// 	private static volatile boolean stop = false;
// 	
// 	public static void initialize() {
// 		try {
// 			GameType.addType(TankGame.class, Difficulty.EASY);
// 		} catch (GameCreationException gce) {
// 			Server.LOG.log(Level.SEVERE, "Improperly built game files.", gce);
// 		}
// 	}
// 	
// 	public static Collection<GameType> getGames() {
// 		return GameType.getGameTypes();
// 	}
// 
// 	public static void shutdown() {
// 		stop = true;
// 		UDPConnectionHandler.instance().closeConnectionHandler();
// 		TCPConnectionHandler.instance().closeConnectionHandler();
// 		MemoryConnectionHandler.instance().closeConnectionHandler();
// 	}
// 	
// 	public static boolean shouldStop() {
// 		return stop;
// 	}
// }


import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
import brownshome.scriptwars.server.Server;
package brownshome.scriptwars.site;



@WebListener
public class StartupHooks implements ServletContextListener {
	@Override
	public void contextInitialized(ServletContextEvent sce) {
// Path: server/brownshome/scriptwars/server/Server.java
// public class Server {
// 	public static final Logger LOG = Logger.getLogger("brownshome.scriptwars.server");
// 	
// 	private static volatile boolean stop = false;
// 	
// 	public static void initialize() {
// 		try {
// 			GameType.addType(TankGame.class, Difficulty.EASY);
// 		} catch (GameCreationException gce) {
// 			Server.LOG.log(Level.SEVERE, "Improperly built game files.", gce);
// 		}
// 	}
// 	
// 	public static Collection<GameType> getGames() {
// 		return GameType.getGameTypes();
// 	}
// 
// 	public static void shutdown() {
// 		stop = true;
// 		UDPConnectionHandler.instance().closeConnectionHandler();
// 		TCPConnectionHandler.instance().closeConnectionHandler();
// 		MemoryConnectionHandler.instance().closeConnectionHandler();
// 	}
// 	
// 	public static boolean shouldStop() {
// 		return stop;
// 	}
// }


// Path: server/brownshome/scriptwars/site/StartupHooks.java
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
import brownshome.scriptwars.server.Server;

package brownshome.scriptwars.site;



@WebListener
public class StartupHooks implements ServletContextListener {
	@Override
	public void contextInitialized(ServletContextEvent sce) {
		Server.initialize();