//create pokemon with no moves public Pokemon(int dexNum, int level) { this.level = level; this.dexnum = dexNum; //grab name from dictionary this.name = dictionary_pokemon[dexNum]; //grabs base and current stats, calculated from base_stats for this pokemon calculate_stats(); //get learnset added to learnset_dictionary for this pokemon this.learnset = Learnset.get_learnset(this.dexnum, this.learnset); //creates Pokedex Object for this pokemon this.pokedex_entry = new Pokedex(dexNum); //gets type for this pokemon from pokedex and creates type object //TODO need to turn back to type object this.type1 = Type.get_type(this.pokedex_entry.get_type1()); if (this.pokedex_entry.get_type2() != "-") { //TODO need to turn back to type object this.type2 = Type.get_type(this.pokedex_entry.get_type2()); } else { this.type2 = null; } }
public static void load_moves() { for (var i = 0; i < all_moves.Count; i++) { //creates a new move object in dictionary to access later Moves move = new Moves( all_moves[i]["Name"].ToString(), Type.get_type(all_moves[i]["Type"].ToString()), int.Parse(all_moves[i]["PP"].ToString()), int.Parse(all_moves[i]["Att."].ToString()), int.Parse(all_moves[i]["Acc."].ToString()), all_moves[i]["Effect"].ToString()); move_dictionary.Add(move.move, move); } }