* @param species
* @return
*/
public MoveListEntry[] getBabyMoves(int species) {
MoveListEntry[] moves = new MoveListEntry[4];
MoveList moveList = MoveList.getDefaultData();
ArrayList<MoveListEntry> possibleMoves = new ArrayList<MoveListEntry>();
PokemonSpecies s = PokemonSpecies.getDefaultData().getSpecies(species);
// List of moves by level 5
for (int i = 1; i <= 5; i++) {
if (s.getLevelMoves().containsKey(i)) {
possibleMoves.add(moveList.getMove(s.getLevelMoves().get(i)));
}
}
int moveNum = possibleMoves.size();
if (possibleMoves.size() <= 4) {
for (int i = 0; i < possibleMoves.size(); i++) {
moves[i] = possibleMoves.get(i);
}
} else {
for (int i = 0; i < moves.length; i++) {
if (possibleMoves.size() == 0)
moves[i] = null;
moves[i] = possibleMoves.get(moveNum);
moveNum--;
if (moveNum == 0)
break;
}
}
// Moves that both parents know
// List of egg moves
possibleMoves.clear();
for (int i = 0; i < s.getEggMoves().length; i++) {
for (int x = 0; i < 4; i++) {
if (malePoke.getMove(x) == moveList.getMove(s.getEggMoves()[i])) {
possibleMoves.add(moveList.getMove(s.getEggMoves()[i]));
}
}
}
for (int i = 0; i < 4; i++) {
if (moves[i] == null && possibleMoves.size() < i) {