コード例 #1
0
 public Move(string this_name, string this_description, int this_level_learned, PokemonTypes.Types this_type, MoveCategoriesList this_category,
             ContestTypesList this_contest_type, int this_pp_cost, int this_power, float this_accuracy, bool this_recoil, float this_recoil_damage,
             bool this_high_crit_chance, bool this_flinch, bool this_makes_contact, bool this_affected_by_protect,
             bool this_affected_by_magic_coat, bool this_affected_by_snatch, bool this_affected_by_kings_rock, List <StatusEffect> this_status_effects,
             Sprite this_icon, float this_range, int this_damage, float this_cool_down, float this_cooling_down)
 {
     moveName            = this_name;
     description         = this_description;
     levelLearned        = this_level_learned;
     type                = this_type;
     category            = this_category;
     contestCategory     = this_contest_type;
     ppCost              = this_pp_cost;
     power               = this_power;
     accuracy            = this_accuracy;
     recoil              = this_recoil;
     recoilDamage        = this_recoil_damage;
     highCritChance      = this_high_crit_chance;
     flinch              = this_flinch;
     makesContact        = this_makes_contact;
     affectedByProtect   = this_affected_by_protect;
     affectedByMagicCoat = this_affected_by_magic_coat;
     affectedBySnatch    = this_affected_by_snatch;
     affectedByKingsRock = this_affected_by_kings_rock;
     StatusEffects       = this_status_effects;
     icon                = this_icon;
     range               = this_range;
     damage              = this_damage;
     coolDown            = this_cool_down;
     coolingDown         = this_cooling_down;
 }
コード例 #2
0
 public Move()
 {
     aoe                 = false;
     selfTargeting       = false;
     allyTargeting       = false;
     moveName            = "";
     description         = "";
     levelLearned        = 0;
     type                = PokemonTypes.Types.NORMAL;
     category            = MoveCategoriesList.PHYSICAL;
     contestCategory     = ContestTypesList.BEAUTY;
     ppCost              = 0;
     power               = 0;
     accuracy            = 0.0f;
     recoil              = false;
     recoilDamage        = 0.0f;
     highCritChance      = false;
     flinch              = false;
     makesContact        = false;
     affectedByProtect   = false;
     affectedByMagicCoat = false;
     affectedBySnatch    = false;
     affectedByKingsRock = false;
     StatusEffects       = new List <StatusEffect>();
     range               = 1.0f;
     coolDown            = 1.0f;
     disabled            = false;
 }