public static Ship getInstance(int code, Team team, Point loc)
	{
		switch(code)
		{
			case 0:
				return new Fighter(team, loc);
			case 1:
				return new Destroyer(team, loc);
			case 2:
				return new Mothership(team, loc);
			default:
				return null;
		}
	}