startGames(ctx);
}
public static void startGames(AbstractApplicationContext ctx)
{
World world = ctx.getBean(World.class);
GameRoom room1 = (GameRoom)ctx.getBean("Zombie_ROOM_1");
GameRoom room2 = (GameRoom)ctx.getBean("Zombie_ROOM_2");
Task monitor1 = new WorldMonitor(world,room1);
Task monitor2 = new WorldMonitor(world,room2);
TaskManagerService taskManager = ctx.getBean(TaskManagerService.class);