/**
* Handle the moves from a mod data line.
*/
private void handleMoves(int species, ArrayList<String> moves, int category) {
MoveSet set = m_moveSets.getMoveSet(species);
ArrayList<String> removals = new ArrayList<String>();
ArrayList<String> additions = new ArrayList<String>();
Iterator<String> i = moves.iterator();
while (i.hasNext()) {
String item = (String)i.next();
char c = item.charAt(0);
if (c == '-') {
removals.add(item.substring(1).trim());
} else {
String move;
if (c == '+') {
move = item.substring(1);
} else {
move = item;
}
additions.add(move.trim());
}
}
String[][] arr = set.getMoves();
removeMoves(arr, (String[])removals.toArray(new String[removals.size()]));
ArrayList<String> update = new ArrayList<String>(Arrays.asList(arr[category]));
update.addAll(additions);
arr[category] = (String[])update.toArray(new String[update.size()]);
}