for (int i = 0; i < size; ++i) {
try {
String name = (String)stream.readObject();
PokemonType type = (PokemonType)stream.readObject();
int power = stream.readInt();
double accuracy = stream.readDouble();
int pp = stream.readInt();
m_moves.add(new MoveListEntry(name,
new PokemonMove(type, power, accuracy, pp)));
} catch (ClassNotFoundException e) {
throw new InternalError();