public static ArrayList<DBInfluenceAreaHeader> GetInfluenceAreaHeaders(RoFParser.Mission mission)
{
ArrayList<DBInfluenceAreaHeader> iaHeaders = new ArrayList<DBInfluenceAreaHeader>();
ArrayList<InfluenceAreaHeader> iahs = mission.getInfluenceAreaHeaders();
InfluenceAreaHeader iah;
int[] tmpCP;
Iterator<InfluenceAreaHeader> it = iahs.iterator();
while (it.hasNext())
{
iah = it.next();
tmpCP = iah.getCoalitionsPresent();
//add header
DBInfluenceAreaHeader tmpIAH = new DBInfluenceAreaHeader(
iah.getAreaID(), mission.getMissionID(), iah.getTick(), iah.getCountry(), iah.getEnabled(),
tmpCP[0], tmpCP[1], tmpCP[2], tmpCP[3], tmpCP[4], tmpCP[5], tmpCP[6], tmpCP[7]);
iaHeaders.add(tmpIAH);
}
return iaHeaders;