Esempio n. 1
0
        public Form(Pokedex pokedex, int id, int species_id, byte value,
            LocalizedString name, String suffix, int height, int weight, int experience)
            : base(pokedex)
        {
            m_species_pair = Species.CreatePair(m_pokedex);
            m_lazy_pairs.Add(m_species_pair);

            ID = id;
            m_species_pair.Key = species_id;
            Value = value;
            Name = name;
            Suffix = suffix;
            Height = height;
            Weight = weight;
            Experience = experience;
        }
        public TrainerMemo(Pokedex.Pokedex pokedex, LocationNumbering numbering, 
            DateTime ? time_egg_obtained, DateTime ? time_encountered,
            int location_egg_obtained_id, int location_encountered_id,
            bool is_hatched, byte level_encountered)
        {
            m_pokedex = pokedex;
            m_location_egg_obtained_pair = Location.CreatePairForLocationNumbering(m_pokedex, () => Numbering);
            m_location_encountered_pair = Location.CreatePairForLocationNumbering(m_pokedex, () => Numbering);

            Numbering = numbering;
            TimeEggObtained = time_egg_obtained;
            TimeEncountered = time_encountered;
            m_location_egg_obtained_pair.Key = location_egg_obtained_id;
            m_location_encountered_pair.Key = location_encountered_id;
            IsHatched = is_hatched;
            LevelEncountered = level_encountered;
        }
Esempio n. 3
0
        public Location(Pokedex pokedex, int id, int region_id, int ? value3,
            int ? value_colo, int ? value_xd, int ? value4, int ? value5,
            int ? value6, LocalizedString name)
            : base(pokedex)
        {
            m_region_pair = Region.CreatePair(m_pokedex);
            m_lazy_pairs.Add(m_region_pair);

            ID = id;
            m_region_pair.Key = region_id;
            Value3 = value3;
            ValueColo = value_colo;
            ValueXd = value_xd;
            Value4 = value4;
            Value5 = value5;
            Value6 = value6;
            Name = name;
        }
Esempio n. 4
0
        public FormStats(Pokedex pokedex, int form_id, Generations min_generation, 
            int type1, int type2, IntStatValues base_stats, ByteStatValues reward_evs)
            : base(pokedex)
        {
            m_form_pair = Form.CreatePair(m_pokedex);
            m_type1_pair = Type.CreatePair(m_pokedex);
            m_type2_pair = Type.CreatePair(m_pokedex);
            m_lazy_pairs.Add(m_form_pair);
            m_lazy_pairs.Add(m_type1_pair);
            m_lazy_pairs.Add(m_type2_pair);

            m_form_pair.Key = form_id;
            MinGeneration = min_generation;
            m_type1_pair.Key = type1;
            m_type2_pair.Key = type2;
            BaseStats = base_stats;
            RewardEvs = reward_evs;
        }
Esempio n. 5
0
        public Move(Pokedex pokedex, int id, int type_id, LocalizedString name,
            DamageClass damage_class, int damage, int pp, int accuracy, int priority,
            BattleTargets target)
            : base(pokedex)
        {
            m_type_pair = Type.CreatePair(m_pokedex);
            m_lazy_pairs.Add(m_type_pair);

            ID = id;
            m_type_pair.Key = type_id;
            Name = name;
            DamageClass = damage_class;
            Damage = damage;
            PP = pp;
            Accuracy = accuracy;
            Priority = priority;
            Target = target;
            // todo: Nice description text
        }
Esempio n. 6
0
        public Family(Pokedex pokedex, int id, int basic_male_id, int basic_female_id,
            int baby_male_id, int baby_female_id, int incense_id, byte gender_ratio)
            : base(pokedex)
        {
            m_basic_male_pair = Species.CreatePair(m_pokedex);
            m_basic_female_pair = Species.CreatePair(m_pokedex);
            m_baby_male_pair = Species.CreatePair(m_pokedex);
            m_baby_female_pair = Species.CreatePair(m_pokedex);
            m_incense_pair = Item.CreatePair(m_pokedex);
            m_lazy_pairs.Add(m_basic_male_pair);
            m_lazy_pairs.Add(m_basic_female_pair);
            m_lazy_pairs.Add(m_baby_male_pair);
            m_lazy_pairs.Add(m_baby_female_pair);
            m_lazy_pairs.Add(m_incense_pair);

            ID = id;
            m_basic_male_pair.Key = basic_male_id;
            m_basic_female_pair.Key = basic_female_id;
            m_baby_male_pair.Key = baby_male_id;
            m_baby_female_pair.Key = baby_female_id;
            m_incense_pair.Key = incense_id;
            GenderRatio = gender_ratio;
        }
 private void Initialize()
 {
     m_species_pair = Species.CreatePair(m_pokedex);
     m_form_pair = Form.CreatePairForSpecies(m_pokedex, () => Species);
     m_item_pair = Item.CreatePairForGeneration(m_pokedex, () => Generation);
     m_ability_pair = Ability.CreatePair(m_pokedex);
 }